· 6 years ago · Jun 27, 2019, 08:32 AM
1ValueError at /api/v1/write-us/create/
2Cannot assign "<django.contrib.auth.models.AnonymousUser object at 0x7ff279466e48>": "WriteUs.user" must be a "User" instance.
3
4Request Method: POST
5Request URL: https://feodal.webcase-dev.site/api/v1/write-us/create/
6Django Version: 2.1
7Python Executable: /home/feodal/feodal/feodal/server/.venv/bin/python3.7
8Python Version: 3.7.3
9Python Path: ['/home/feodal/feodal/feodal/server', '/home/feodal/feodal/feodal/server/.venv/bin', '/home/feodal/feodal/feodal/server/.venv/lib/python37.zip', '/home/feodal/feodal/feodal/server/.venv/lib/python3.7', '/home/feodal/feodal/feodal/server/.venv/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7', '/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages']
10Server time: Чт, 27 Чер 2019 07:55:15 +0000
11Installed Applications:
12['markup',
13 'shared',
14 'apps.advertisement',
15 'apps.chat',
16 'apps.handling',
17 'apps.services',
18 'apps.organization',
19 'apps.pages',
20 'apps.staff',
21 'adminsortable2',
22 'ckeditor',
23 'des',
24 'django_filters',
25 'django_jinja',
26 'jet',
27 'modeltranslation',
28 'parler',
29 'postie',
30 'seo',
31 'rest_framework',
32 'rest_framework.authtoken',
33 'rest_framework_recaptcha',
34 'robots',
35 'rosetta',
36 'script_pattern',
37 'solo',
38 'vuejs_translate',
39 'django.contrib.admin',
40 'django.contrib.auth',
41 'django.contrib.contenttypes',
42 'django.contrib.sessions',
43 'django.contrib.messages',
44 'django.contrib.staticfiles',
45 'django.contrib.sites',
46 'allauth',
47 'allauth.account',
48 'allauth.socialaccount',
49 'allauth.socialaccount.providers.google',
50 'allauth.socialaccount.providers.facebook',
51 'rest_auth',
52 'rest_auth.registration',
53 'mptt']
54Installed Middleware:
55['django.middleware.security.SecurityMiddleware',
56 'django.contrib.sessions.middleware.SessionMiddleware',
57 'django.middleware.common.CommonMiddleware',
58 'django.middleware.csrf.CsrfViewMiddleware',
59 'django.contrib.auth.middleware.AuthenticationMiddleware',
60 'django.contrib.messages.middleware.MessageMiddleware',
61 'django.middleware.clickjacking.XFrameOptionsMiddleware']
62
63
64Traceback:
65
66File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
67 34. response = get_response(request)
68
69File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
70 126. response = self.process_exception_by_middleware(e, request)
71
72File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
73 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
74
75File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
76 54. return view_func(*args, **kwargs)
77
78File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py" in view
79 68. return self.dispatch(request, *args, **kwargs)
80
81File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
82 495. response = self.handle_exception(exc)
83
84File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
85 455. self.raise_uncaught_exception(exc)
86
87File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
88 492. response = handler(request, *args, **kwargs)
89
90File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py" in post
91 192. return self.create(request, *args, **kwargs)
92
93File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py" in create
94 21. self.perform_create(serializer)
95
96File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py" in perform_create
97 26. serializer.save()
98
99File "/home/feodal/feodal/feodal/server/apps/handling/serializers.py" in save
100 44. obj = super().save(**kwargs)
101
102File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py" in save
103 214. self.instance = self.create(validated_data)
104
105File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py" in create
106 943. instance = ModelClass._default_manager.create(**validated_data)
107
108File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/db/models/manager.py" in manager_method
109 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
110
111File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/db/models/query.py" in create
112 411. obj = self.model(**kwargs)
113
114File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/db/models/base.py" in __init__
115 466. _setattr(self, field.name, rel_obj)
116
117File "/home/feodal/feodal/feodal/server/.venv/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py" in __set__
118 210. self.field.remote_field.model._meta.object_name,
119
120Exception Type: ValueError at /api/v1/write-us/create/
121Exception Value: Cannot assign "<django.contrib.auth.models.AnonymousUser object at 0x7ff279466e48>": "WriteUs.user" must be a "User" instance.
122Request information:
123USER: AnonymousUser
124
125GET: No GET data
126
127POST: No POST data
128
129FILES: No FILES data
130
131COOKIES: No cookie data
132
133META:
134CONTENT_LENGTH = '116'
135CONTENT_TYPE = 'application/json;charset=UTF-8'
136HTTP_ACCEPT = 'application/json, text/plain, */*'
137HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
138HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.9,ru;q=0.8,ar;q=0.7'
139HTTP_CONNECTION = 'close'
140HTTP_HOST = 'feodal.webcase-dev.site'
141HTTP_ORIGIN = 'https://feodal.webcase-dev.site'
142HTTP_REFERER = 'https://feodal.webcase-dev.site/'
143HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36'
144HTTP_X_CSRFTOKEN = 'undefined'
145HTTP_X_FORWARDED_FOR = '185.248.130.27'
146HTTP_X_FORWARDED_PROTO = 'https'
147HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
148PATH_INFO = '/api/v1/write-us/create/'
149QUERY_STRING = ''
150RAW_URI = '/api/v1/write-us/create/'
151REMOTE_ADDR = ''
152REQUEST_METHOD = 'POST'
153SCRIPT_NAME = ''
154SERVER_NAME = 'feodal.webcase-dev.site'
155SERVER_PORT = '443'
156SERVER_PROTOCOL = 'HTTP/1.0'
157SERVER_SOFTWARE = 'gunicorn/19.9.0'
158gunicorn.socket = <gevent._socket3.socket object, fd=9, family=1, type=1, proto=0>
159wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7ff27960a278>
160wsgi.file_wrapper = ''
161wsgi.input = <gunicorn.http.body.Body object at 0x7ff27960a7f0>
162wsgi.multiprocess = True
163wsgi.multithread = True
164wsgi.run_once = False
165wsgi.url_scheme = 'https'
166wsgi.version = '(1, 0)'
167
168Settings:
169Using settings module app.settings
170ABSOLUTE_URL_OVERRIDES = {}
171ACCOUNT_ADAPTER = 'apps.staff.adapters.MAccountAdapter'
172ACCOUNT_AUTHENTICATION_METHOD = 'email'
173ACCOUNT_CONFIRM_EMAIL_ON_GET = True
174ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
175ACCOUNT_EMAIL_REQUIRED = True
176ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
177ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
178ACCOUNT_USERNAME_REQUIRED = False
179ADMINS = []
180ALLOWED_HOSTS = ['feodal.webcase-dev.site', '142.93.108.98']
181APPEND_SLASH = True
182AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')"
183AUTH_PASSWORD_VALIDATORS = '********************'
184AUTH_USER_MODEL = 'auth.User'
185BASE_DIR = PosixPath('/home/feodal/feodal/feodal/server/app/settings/default.py')
186BASE_ROOT = PosixPath('/home/feodal/feodal/feodal/server/app')
187CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
188CACHE_MIDDLEWARE_ALIAS = 'default'
189CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
190CACHE_MIDDLEWARE_SECONDS = 600
191CELERY_ACCEPT_CONTENT = ['json']
192CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
193CELERY_RESULT_SERIALIZER = 'json'
194CELERY_TASK_SERIALIZER = 'json'
195CKEDITOR_CONFIGS = {'default': {'skin': 'moono', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'name': 'document', 'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates']}, {'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']}, {'name': 'forms', 'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField']}, '/', {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']}, '/', {'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, {'name': 'tools', 'items': ['Maximize', 'ShowBlocks']}, {'name': 'about', 'items': ['About']}, '/', {'name': 'yourcustomtools', 'items': ['Preview', 'Maximize']}], 'toolbar': 'YourCustomToolbarConfig', 'tabSpaces': 4, 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,widget,lineutils,clipboard,dialog,dialogui,elementspath'}}
196CKEDITOR_UPLOAD_PATH = PosixPath('/home/feodal/feodal/feodal/server/app/uploads')
197CSRF_COOKIE_AGE = 31449600
198CSRF_COOKIE_DOMAIN = None
199CSRF_COOKIE_HTTPONLY = False
200CSRF_COOKIE_NAME = 'csrftoken'
201CSRF_COOKIE_PATH = '/'
202CSRF_COOKIE_SAMESITE = 'Lax'
203CSRF_COOKIE_SECURE = False
204CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
205CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
206CSRF_TRUSTED_ORIGINS = []
207CSRF_USE_SESSIONS = False
208DATABASES = {'default': {'NAME': 'feodal_db', 'USER': 'feodal_db', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
209DATABASE_ROUTERS = []
210DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
211DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
212DATETIME_FORMAT = 'N j, Y, P'
213DATETIME_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']
214DATE_FORMAT = 'N j, Y'
215DATE_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']
216DEBUG = 'True'
217DEBUG_PROPAGATE_EXCEPTIONS = False
218DECIMAL_SEPARATOR = '.'
219DEFAULT_CHARSET = 'utf-8'
220DEFAULT_CONTENT_TYPE = 'text/html'
221DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
222DEFAULT_EXTENSIONS = ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension']
223DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
224DEFAULT_FROM_EMAIL = 'admin@admin.admin'
225DEFAULT_INDEX_TABLESPACE = ''
226DEFAULT_TABLESPACE = ''
227DISALLOWED_USER_AGENTS = []
228DRF_RECAPTCHA_PUBLIC_KEY = '********************'
229DRF_RECAPTCHA_SECRET_KEY = '********************'
230DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
231EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
232EMAIL_CONFIG = {'EMAIL_FILE_PATH': '', 'EMAIL_HOST_USER': None, 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST': '127.0.0.1', 'EMAIL_PORT': None, 'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend'}
233EMAIL_FILE_PATH = ''
234EMAIL_HOST = '127.0.0.1'
235EMAIL_HOST_PASSWORD = '********************'
236EMAIL_HOST_USER = None
237EMAIL_PORT = None
238EMAIL_SSL_CERTFILE = None
239EMAIL_SSL_KEYFILE = '********************'
240EMAIL_SUBJECT_PREFIX = '[Django] '
241EMAIL_TIMEOUT = None
242EMAIL_USE_LOCALTIME = False
243EMAIL_USE_SSL = False
244EMAIL_USE_TLS = False
245FILE_CHARSET = 'utf-8'
246FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
247FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
248FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
249FILE_UPLOAD_PERMISSIONS = None
250FILE_UPLOAD_TEMP_DIR = None
251FIRST_DAY_OF_WEEK = 0
252FIXTURE_DIRS = []
253FORCE_SCRIPT_NAME = None
254FORMAT_MODULE_PATH = None
255FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
256IGNORABLE_404_URLS = []
257INSTALLED_APPS = ['markup', 'shared', 'apps.advertisement', 'apps.chat', 'apps.handling', 'apps.services', 'apps.organization', 'apps.pages', 'apps.staff', 'adminsortable2', 'ckeditor', 'des', 'django_filters', 'django_jinja', 'jet', 'modeltranslation', 'parler', 'postie', 'seo', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_recaptcha', 'robots', 'rosetta', 'script_pattern', 'solo', 'vuejs_translate', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'rest_auth', 'rest_auth.registration', 'mptt']
258INTERNAL_IPS = []
259LANGUAGES = "(('uk', 'Ukrainian'), ('ru', 'Russian'))"
260LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
261LANGUAGE_CODE = 'uk'
262LANGUAGE_COOKIE_AGE = None
263LANGUAGE_COOKIE_DOMAIN = None
264LANGUAGE_COOKIE_NAME = 'django_language'
265LANGUAGE_COOKIE_PATH = '/'
266LOCALE_PATHS = "(PosixPath('/home/feodal/feodal/feodal/server/app/locale'),)"
267LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/feodal/feodal/feodal/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
268LOGGING_CONFIG = 'logging.config.dictConfig'
269LOGIN_REDIRECT_URL = '/'
270LOGIN_URL = '/'
271LOGOUT_REDIRECT_URL = None
272MANAGERS = []
273MEDIA_ROOT = PosixPath('/home/feodal/feodal/feodal/server/app/uploads')
274MEDIA_URL = '/uploads/'
275MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
276MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
277MIGRATION_MODULES = {}
278MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'uk'
279MONTH_DAY_FORMAT = 'F j'
280NUMBER_GROUPING = 0
281OLD_PASSWORD_FIELD_ENABLED = '********************'
282PARLER_ENABLE_CACHING = False
283PARLER_LANGUAGES = {None: ({'code': 'uk', 'hide_untranslated': False, 'fallbacks': ['uk']}, {'code': 'ru', 'hide_untranslated': False, 'fallbacks': ['uk']}), 'default': {'hide_untranslated': False, 'code': 'uk', 'fallbacks': ['uk']}}
284PASSWORD_HASHERS = '********************'
285PASSWORD_RESET_TIMEOUT_DAYS = '********************'
286POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets', 'attrs': {}}
287POSTIE_INSTANT_SEND = False
288POSTIE_TEMPLATE_CHOICES = Choices(('confirm_email__user', 'confirm_email__user', 'Confirm email (user)'), ('password_reset_confirm__user', 'password_reset_confirm__user', 'Confirm password reset (user)'), ('social_registration__user', 'social_registration__user', 'Social registration (user)'), ('write_us__admin', 'write_us__admin', 'Write us (admin)'), ('advertisement_created__user', 'advertisement_created__user', 'Advertisement created (user)'), ('advertisement_created__admin', 'advertisement_created__admin', 'Advertisement created (admin)'), ('advertisement_updated__admin', 'advertisement_updated__admin', 'Advertisement updated (admin)'))
289POSTIE_TEMPLATE_CONTEXTS = {'confirm_email__user': {'login': 'Login', 'name': 'Назва', 'link': 'Confirmation link'}, 'password_reset_confirm__user': '********************', 'social_registration__user': {'name': 'Назва', 'login': 'Login', 'password': '********************'}, 'write_us__admin': {'link': 'Admin link'}, 'advertisement_created__user': {'name': 'Назва', 'nomber': 'Nomber', 'link': 'Link'}, 'advertisement_created__admin': {'nomber': 'Nomber', 'link': 'Admin link'}, 'advertisement_updated__admin': {'nomber': 'Nomber', 'link': 'Admin link'}}
290PREPEND_WWW = False
291PROJECT_APPS = ['markup', 'shared', 'apps.advertisement', 'apps.chat', 'apps.handling', 'apps.services', 'apps.organization', 'apps.pages', 'apps.staff']
292REST_FRAMEWORK = {'SEARCH_PARAM': 's', 'DEFAULT_METADATA_CLASS': 'shared.models.metadata.FieldsetMetadata', 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.TokenAuthentication')}
293ROOT_URLCONF = 'app.urls'
294ROSETTA_SHOW_AT_ADMIN_PANEL = True
295SECRET_KEY = '********************'
296SECURE_BROWSER_XSS_FILTER = False
297SECURE_CONTENT_TYPE_NOSNIFF = False
298SECURE_HSTS_INCLUDE_SUBDOMAINS = False
299SECURE_HSTS_PRELOAD = False
300SECURE_HSTS_SECONDS = 0
301SECURE_PROXY_SSL_HEADER = None
302SECURE_REDIRECT_EXEMPT = []
303SECURE_SSL_HOST = None
304SECURE_SSL_REDIRECT = False
305SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_path': 'ckeditor.widgets'}
306SEO_MODELS = ['templatepage', 'category']
307SEO_USE_URL_FULL_PATH = True
308SEO_USE_URL_SEO = True
309SERVER_EMAIL = 'root@localhost'
310SESSION_CACHE_ALIAS = 'default'
311SESSION_COOKIE_AGE = 1209600
312SESSION_COOKIE_DOMAIN = None
313SESSION_COOKIE_HTTPONLY = True
314SESSION_COOKIE_NAME = 'sessionid'
315SESSION_COOKIE_PATH = '/'
316SESSION_COOKIE_SAMESITE = 'Lax'
317SESSION_COOKIE_SECURE = False
318SESSION_ENGINE = 'django.contrib.sessions.backends.db'
319SESSION_EXPIRE_AT_BROWSER_CLOSE = False
320SESSION_FILE_PATH = None
321SESSION_SAVE_EVERY_REQUEST = False
322SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
323SETTINGS_MODULE = 'app.settings'
324SHORT_DATETIME_FORMAT = 'm/d/Y P'
325SHORT_DATE_FORMAT = 'm/d/Y'
326SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
327SILENCED_SYSTEM_CHECKS = []
328SITE_ID = 1
329SOCIALACCOUNT_ADAPTER = 'apps.staff.adapters.MSocialAccountAdapter'
330SOCIALACCOUNT_EMAIL_VERIFICATION = False
331SOCIALACCOUNT_PROVIDERS = {'google': {'SCOPE': ['profile', 'email'], 'AUTH_PARAMS': {'access_type': 'online'}}, 'facebook': {'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile'], 'AUTH_PARAMS': {}, 'FIELDS': ['id', 'email', 'name', 'first_name', 'last_name', 'verified', 'locale', 'timezone', 'link'], 'EXCHANGE_TOKEN': '********************', 'LOCALE_FUNC': <function <lambda> at 0x7ff28379f0d0>, 'VERIFIED_EMAIL': True, 'VERSION': 'v3.3'}}
332STATICFILES_DIRS = []
333STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
334STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
335STATIC_ROOT = PosixPath('/home/feodal/feodal/feodal/server/app/static')
336STATIC_URL = '/static/'
337TEMPLATES = [{'BACKEND': 'django_jinja.backend.Jinja2', 'NAME': 'jinja2', 'APP_DIRS': True, 'DIRS': [], 'OPTIONS': {'environment': 'shared.env.jinja2.environment', 'match_extension': '.jinja', 'newstyle_gettext': True, 'auto_reload': True, 'undefined': <class 'jinja2.runtime.Undefined'>, 'debug': True, 'filters': {}, 'globals': {}, 'context_processors': ['seo.context_processors.seo', '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.contrib.messages.context_processors.messages'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension'], 'bytecode_cache': {'name': 'default', 'backend': 'django_jinja.cache.BytecodeCache', 'enabled': True}}}, {'DIRS': [], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth']}}]
338TEST_NON_SERIALIZED_APPS = []
339TEST_RUNNER = 'django.test.runner.DiscoverRunner'
340THOUSAND_SEPARATOR = ','
341TIME_FORMAT = 'P'
342TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
343TIME_ZONE = 'UTC'
344USE_I18N = True
345USE_L10N = True
346USE_THOUSAND_SEPARATOR = False
347USE_TZ = True
348USE_X_FORWARDED_HOST = False
349USE_X_FORWARDED_PORT = False
350WSGI_APPLICATION = 'app.wsgi.application'
351X_FRAME_OPTIONS = 'SAMEORIGIN'
352YEAR_MONTH_FORMAT = 'F Y'
353
354
355You're seeing this error because you have DEBUG = True in your
356Django settings file. Change that to False, and Django will
357display a standard page generated by the handler for this status code.