· 7 years ago · Nov 17, 2018, 12:08 PM
1AttributeError at /api/payments/final_payment/
2'NoneType' object has no attribute 'title'
3
4Request Method: POST
5Request URL: http://95.163.210.46/api/payments/final_payment/
6Django Version: 2.0.4
7Python Executable: /usr/local/bin/python
8Python Version: 3.6.4
9Python Path: ['/skynet', '/usr/local/bin', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/skynet']
10Server time: Sat, 17 Nov 2018 15:04:27 +0300
11Installed Applications:
12('django.contrib.admin',
13 'django.contrib.admindocs',
14 'django.contrib.auth',
15 'django.contrib.contenttypes',
16 'django.contrib.sessions',
17 'django.contrib.messages',
18 'django.contrib.staticfiles',
19 'django.contrib.humanize',
20 'django_extensions',
21 'nested_admin',
22 'rest_framework',
23 'drf_yasg',
24 'dynamic_rest',
25 'rest_framework_jwt',
26 'corsheaders',
27 'django_celery_results',
28 'django_celery_beat',
29 'djoser',
30 'cacheops',
31 'web.apps.swagger',
32 'web.apps.users',
33 'web.apps.area',
34 'web.apps.catalog',
35 'web.apps.timetable',
36 'web.apps.motivation',
37 'health_check',
38 'health_check.db',
39 'health_check.cache',
40 'health_check.storage',
41 'health_check.contrib.psutil',
42 'debug_toolbar')
43Installed Middleware:
44('django.middleware.security.SecurityMiddleware',
45 'django.contrib.sessions.middleware.SessionMiddleware',
46 'corsheaders.middleware.CorsMiddleware',
47 'django.middleware.common.CommonMiddleware',
48 'django.middleware.csrf.CsrfViewMiddleware',
49 'django.contrib.auth.middleware.AuthenticationMiddleware',
50 'django.contrib.messages.middleware.MessageMiddleware',
51 'django.middleware.clickjacking.XFrameOptionsMiddleware',
52 'debug_toolbar.middleware.DebugToolbarMiddleware')
53
54
55Traceback:
56
57File "/skynet/web/apps/motivation/models.py" in create_final_payment
58 1499. final_payment = FinalPayment.objects.get(payment=self)
59
60File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
61 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
62
63File "/usr/local/lib/python3.6/site-packages/cacheops/query.py" in get
64 354. return qs._no_monkey.get(qs, *args, **kwargs)
65
66File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in get
67 403. self.model._meta.object_name
68
69During handling of the above exception (FinalPayment matching query does not exist.), another exception occurred:
70
71File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
72 35. response = get_response(request)
73
74File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
75 128. response = self.process_exception_by_middleware(e, request)
76
77File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
78 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
79
80File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
81 54. return view_func(*args, **kwargs)
82
83File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view
84 69. return self.dispatch(request, *args, **kwargs)
85
86File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
87 494. response = self.handle_exception(exc)
88
89File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
90 454. self.raise_uncaught_exception(exc)
91
92File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
93 491. response = handler(request, *args, **kwargs)
94
95File "/skynet/web/apps/motivation/views.py" in post
96 213. final_payment_id = payment.create_final_payment()
97
98File "/skynet/web/apps/motivation/models.py" in create_final_payment
99 1521. motivation_scheme=self.position_model.user.motivation_scheme.title,
100
101Exception Type: AttributeError at /api/payments/final_payment/
102Exception Value: 'NoneType' object has no attribute 'title'
103Request information:
104USER: jimik961@gmail.com
105
106GET: No GET data
107
108POST: No POST data
109
110FILES: No FILES data
111
112COOKIES: No cookie data
113
114META:
115CONTENT_LENGTH = '27'
116CONTENT_TYPE = 'application/json'
117HTTP_ACCEPT = 'application/json, text/plain, */*'
118HTTP_ACCEPT_ENCODING = 'gzip, deflate'
119HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
120HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxOSwidXNlcm5hbWUiOiJqaW1pazk2MUBnbWFpbC5jb20iLCJleHAiOjE1NDI0NjE1NDh9.pKbHEuiYme3WODJbDb3OH3fLouF3Az-lkhcTef8hM4o'
121HTTP_CONNECTION = 'close'
122HTTP_HOST = '95.163.210.46'
123HTTP_ORIGIN = 'http://localhost:4200'
124HTTP_REFERER = 'http://localhost:4200/table/payment'
125HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36'
126HTTP_X_FORWARDED_FOR = '158.255.177.137'
127HTTP_X_REAL_IP = '158.255.177.137'
128PATH_INFO = '/api/payments/final_payment/'
129QUERY_STRING = ''
130RAW_URI = '/api/payments/final_payment/'
131REMOTE_ADDR = '10.42.232.36'
132REMOTE_PORT = '59118'
133REQUEST_METHOD = 'POST'
134SCRIPT_NAME = ''
135SERVER_NAME = '0.0.0.0'
136SERVER_PORT = '8000'
137SERVER_PROTOCOL = 'HTTP/1.0'
138SERVER_SOFTWARE = 'gunicorn/19.7.1'
139gunicorn.socket = <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.42.181.176', 8000), raddr=('10.42.232.36', 59118)>
140wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f857dfa2a58>
141wsgi.file_wrapper = ''
142wsgi.input = <gunicorn.http.body.Body object at 0x7f857dfa2160>
143wsgi.multiprocess = True
144wsgi.multithread = False
145wsgi.run_once = False
146wsgi.url_scheme = 'http'
147wsgi.version = '(1, 0)'
148
149Settings:
150Using settings module web.settings
151ABSOLUTE_URL_OVERRIDES = {}
152ADMINS = []
153ALLOWED_HOSTS = ['127.0.0.1', '185.224.215.63', '95.163.210.46']
154APPEND_SLASH = True
155AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
156AUTH_PASSWORD_VALIDATORS = '********************'
157AUTH_USER_MODEL = 'users.User'
158BASE_DIR = '/skynet'
159CACHEOPS = {}
160CACHEOPS_REDIS = {'host': 'localhost', 'port': 6379}
161CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
162CACHE_MIDDLEWARE_ALIAS = 'default'
163CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
164CACHE_MIDDLEWARE_SECONDS = 600
165CELERY_ACCEPT_CONTENT = ['application/json']
166CELERY_BEAT_SCHEDULE = {'create_sales_plans_for_new_mount': {'task': 'motivation.tasks.create_sales_plans_for_new_mount', 'schedule': <crontab: * 1 * 15 * (m/h/d/dM/MY)>}}
167CELERY_BROKER_URL = 'redis://localhost:6379'
168CELERY_RESULT_BACKEND = 'redis://localhost:6379'
169CELERY_RESULT_SERIALIZER = 'json'
170CELERY_TASK_SERIALIZER = 'json'
171CORS_ORIGIN_ALLOW_ALL = True
172CSRF_COOKIE_AGE = 31449600
173CSRF_COOKIE_DOMAIN = None
174CSRF_COOKIE_HTTPONLY = False
175CSRF_COOKIE_NAME = 'csrftoken'
176CSRF_COOKIE_PATH = '/'
177CSRF_COOKIE_SECURE = False
178CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
179CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
180CSRF_TRUSTED_ORIGINS = []
181CSRF_USE_SESSIONS = False
182DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'skynet', 'USER': 'postgres', 'PASSWORD': '********************', 'PORT': '5432', 'HOST': 'postgres', 'CONN_MAX_AGE': 900, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
183DATABASE_ROUTERS = []
184DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
185DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
186DATETIME_FORMAT = 'N j, Y, P'
187DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
188DATE_FORMAT = 'N j, Y'
189DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
190DEBUG = True
191DEBUG_PROPAGATE_EXCEPTIONS = False
192DEBUG_TOOLBAR_CONFIG = {'SHOW_TEMPLATE_CONTEXT': True, 'ENABLE_STACKTRACES': True}
193DECIMAL_SEPARATOR = '.'
194DEFAULT_CHARSET = 'utf-8'
195DEFAULT_CONTENT_TYPE = 'text/html'
196DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
197DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
198DEFAULT_FROM_EMAIL = 'webmaster@localhost'
199DEFAULT_INDEX_TABLESPACE = ''
200DEFAULT_TABLESPACE = ''
201DISALLOWED_USER_AGENTS = []
202DJOSER = {'SERIALIZERS': {'user': 'web.apps.users.serializers.UserProfileSerializer'}}
203DYNAMIC_REST = {'DEBUG': True, 'ENABLE_BULK_PARTIAL_CREATION': True, 'ENABLE_BULK_UPDATE': True}
204EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
205EMAIL_FROM = 'sayhello@picasel.agency'
206EMAIL_HOST = 'smtp.sendgrid.net'
207EMAIL_HOST_PASSWORD = '********************'
208EMAIL_HOST_USER = 'chongkal'
209EMAIL_PORT = 587
210EMAIL_SSL_CERTFILE = None
211EMAIL_SSL_KEYFILE = '********************'
212EMAIL_SUBJECT_PREFIX = '[Django] '
213EMAIL_TIMEOUT = None
214EMAIL_USE_LOCALTIME = False
215EMAIL_USE_SSL = False
216EMAIL_USE_TLS = True
217FILE_CHARSET = 'utf-8'
218FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
219FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
220FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
221FILE_UPLOAD_PERMISSIONS = None
222FILE_UPLOAD_TEMP_DIR = None
223FIRST_DAY_OF_WEEK = 0
224FIXTURE_DIRS = []
225FORCE_SCRIPT_NAME = None
226FORMAT_MODULE_PATH = None
227FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
228IGNORABLE_404_URLS = "(re.compile('/favicon.ico'), re.compile('/robots.txt'))"
229INSTALLED_APPS = "('django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django_extensions', 'nested_admin', 'rest_framework', 'drf_yasg', 'dynamic_rest', 'rest_framework_jwt', 'corsheaders', 'django_celery_results', 'django_celery_beat', 'djoser', 'cacheops', 'web.apps.swagger', 'web.apps.users', 'web.apps.area', 'web.apps.catalog', 'web.apps.timetable', 'web.apps.motivation', 'health_check', 'health_check.db', 'health_check.cache', 'health_check.storage', 'health_check.contrib.psutil', 'debug_toolbar')"
230INTERNAL_IPS = '127.0.0.1:8000'
231JWT_AUTH = {'JWT_EXPIRATION_DELTA': datetime.timedelta(0, 10000)}
232LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian BokmГÒl'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
233LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
234LANGUAGE_CODE = 'en'
235LANGUAGE_COOKIE_AGE = None
236LANGUAGE_COOKIE_DOMAIN = None
237LANGUAGE_COOKIE_NAME = 'django_language'
238LANGUAGE_COOKIE_PATH = '/'
239LOCALE_PATHS = "('/skynet/web/conf/locale',)"
240LOGGING = {'version': 1, 'disable_existing_loggers': True, 'root': {'level': 'WARNING', 'handlers': ['console']}, 'formatters': {'verbose': {'format': '%(asctime)s %(levelname)s %(message)s'}}, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose'}}, 'loggers': {'django.db.backends': {'level': 'INFO', 'handlers': ['console'], 'propagate': False}, 'django.request': {'level': 'ERROR', 'handlers': ['console'], 'propagate': False}, 'django.server': {'level': 'INFO', 'handlers': ['console'], 'propagate': False}, 'django.security': {'level': 'INFO', 'handlers': ['console'], 'propagate': False}}}
241LOGGING_CONFIG = 'logging.config.dictConfig'
242LOGIN_REDIRECT_URL = '/accounts/profile/'
243LOGIN_URL = '/accounts/login/'
244LOGOUT_REDIRECT_URL = None
245MANAGERS = []
246MEDIA_ROOT = '/skynet/web/media'
247MEDIA_URL = '/media/'
248MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
249MIDDLEWARE = "('django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware')"
250MIGRATION_MODULES = {}
251MONTH_DAY_FORMAT = 'F j'
252NUMBER_GROUPING = 0
253PASSWORD_HASHERS = '********************'
254PASSWORD_RESET_TIMEOUT_DAYS = '********************'
255PREPEND_WWW = False
256PRODUCTION = False
257PROJECT_DIR = '/skynet/web'
258RAVEN_CONFIG = {'dsn': 'https://715e5801fb954856a8ad4b6eac5962c7:7333b166cf644414bb5f6422fa3ca2c0@sentry.io/1262720', 'release': 'd63427d40f0e546e14197042e2097d9dfc435b92'}
259REMOTE_DB = {'NAME': 'PhilipsCRM', 'USER': 'user', 'PASSWORD': '********************', 'HOST': 'host:port'}
260REST_FRAMEWORK = {'DEFAULT_RENDERER_CLASSES': ['rest_framework.renderers.JSONRenderer', 'dynamic_rest.renderers.DynamicBrowsableAPIRenderer'], 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.AllowAny',), 'DEFAULT_AUTHENTICATION_CLASSES': ('web.utils.CsrfExemptSessionAuthentication', 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', 'rest_framework.authentication.BasicAuthentication')}
261ROOT_URLCONF = 'web.urls'
262SECRET_KEY = '********************'
263SECURE_BROWSER_XSS_FILTER = False
264SECURE_CONTENT_TYPE_NOSNIFF = False
265SECURE_HSTS_INCLUDE_SUBDOMAINS = False
266SECURE_HSTS_PRELOAD = False
267SECURE_HSTS_SECONDS = 0
268SECURE_PROXY_SSL_HEADER = None
269SECURE_REDIRECT_EXEMPT = []
270SECURE_SSL_HOST = None
271SECURE_SSL_REDIRECT = False
272SERVER_EMAIL = 'root@localhost'
273SESSION_CACHE_ALIAS = 'default'
274SESSION_COOKIE_AGE = 5184000
275SESSION_COOKIE_DOMAIN = None
276SESSION_COOKIE_HTTPONLY = True
277SESSION_COOKIE_NAME = 'sid'
278SESSION_COOKIE_PATH = '/'
279SESSION_COOKIE_SECURE = False
280SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
281SESSION_EXPIRE_AT_BROWSER_CLOSE = False
282SESSION_FILE_PATH = None
283SESSION_SAVE_EVERY_REQUEST = False
284SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
285SETTINGS_MODULE = 'web.settings'
286SHORT_DATETIME_FORMAT = 'm/d/Y P'
287SHORT_DATE_FORMAT = 'm/d/Y'
288SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
289SILENCED_SYSTEM_CHECKS = []
290STATICFILES_DIRS = []
291STATICFILES_FINDERS = "('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')"
292STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
293STATIC_ROOT = '/skynet/web/static'
294STATIC_URL = '/static/'
295TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/skynet/web/templates'], 'OPTIONS': {'debug': True, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages'], 'loaders': ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')}}]
296TEST_NON_SERIALIZED_APPS = []
297TEST_RUNNER = 'django.test.runner.DiscoverRunner'
298THOUSAND_SEPARATOR = ','
299TIME_FORMAT = 'P'
300TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
301TIME_ZONE = 'Europe/Moscow'
302USE_ETAGS = False
303USE_I18N = True
304USE_L10N = True
305USE_THOUSAND_SEPARATOR = False
306USE_TZ = True
307USE_X_FORWARDED_HOST = False
308USE_X_FORWARDED_PORT = False
309WSGI_APPLICATION = 'web.wsgi.application'
310X_FRAME_OPTIONS = 'SAMEORIGIN'
311YEAR_MONTH_FORMAT = 'F Y'
312_DEBUG_ENV = 'true'
313_PRODUCTION_ENV = None
314
315
316You're seeing this error because you have DEBUG = True in your
317Django settings file. Change that to False, and Django will
318display a standard page generated by the handler for this status code.