SHARE
TWEET

Untitled

a guest Sep 4th, 2018 184 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AssertionError at /api/context/75/
  2. The `.update()` method does not support writable nested fields by default.
  3. Write an explicit `.update()` method for serializer `main.api.serializers.ContextSerializer`, or set `read_only=True` on nested serializer fields.
  4.  
  5. Request Method: PUT
  6. Request URL: http://localhost:8080/api/context/75/
  7. Django Version: 1.11.7
  8. Python Executable: /home/damian/.virtualenvs/sigular/bin/python
  9. Python Version: 3.6.3
  10. Python Path: ['/home/damian/projekty/singular-center-django', '/home/damian/.virtualenvs/sigular/lib/python36.zip', '/home/damian/.virtualenvs/sigular/lib/python3.6', '/home/damian/.virtualenvs/sigular/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages']
  11. Server time: Tue, 4 Sep 2018 11:59:39 +0200
  12. Installed Applications:
  13. ['django.contrib.admin',
  14.  'django.contrib.auth',
  15.  'django.contrib.contenttypes',
  16.  'django.contrib.sessions',
  17.  'django.contrib.messages',
  18.  'django.contrib.staticfiles',
  19.  'rest_framework',
  20.  'django_filters',
  21.  'debug_toolbar',
  22.  'model_revision',
  23.  'user',
  24.  'main',
  25.  'oidc_provider',
  26.  'social_django',
  27.  'corsheaders',
  28.  'connector_manager',
  29.  'clickhouse',
  30.  'anymail']
  31. Installed Middleware:
  32. ['django.middleware.security.SecurityMiddleware',
  33.  'django.contrib.sessions.middleware.SessionMiddleware',
  34.  'corsheaders.middleware.CorsMiddleware',
  35.  'django.middleware.common.CommonMiddleware',
  36.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  37.  'django.contrib.messages.middleware.MessageMiddleware',
  38.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  39.  'debug_toolbar.middleware.DebugToolbarMiddleware',
  40.  'social_django.middleware.SocialAuthExceptionMiddleware',
  41.  'django_statsd.middleware.GraphiteRequestTimingMiddleware',
  42.  'django_statsd.middleware.GraphiteMiddleware',
  43.  'model_revision.revisions.middleware',
  44.  'core.middleware.load_request',
  45.  'clickhouse.logger.middleware']
  46.  
  47.  
  48. Traceback:  
  49.  
  50. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  51.   41.             response = get_response(request)
  52.  
  53. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  54.   187.                 response = self.process_exception_by_middleware(e, request)
  55.  
  56. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  57.   185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  58.  
  59. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  60.   58.         return view_func(*args, **kwargs)
  61.  
  62. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  63.   90.             return self.dispatch(request, *args, **kwargs)
  64.  
  65. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  66.   489.             response = self.handle_exception(exc)
  67.  
  68. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  69.   449.             self.raise_uncaught_exception(exc)
  70.  
  71. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  72.   486.             response = handler(request, *args, **kwargs)
  73.  
  74. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/mixins.py" in update
  75.   70.         self.perform_update(serializer)
  76.  
  77. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/mixins.py" in perform_update
  78.   80.         serializer.save()
  79.  
  80. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/serializers.py" in save
  81.   209.             self.instance = self.update(self.instance, validated_data)
  82.  
  83. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/serializers.py" in update
  84.   941.         raise_errors_on_nested_writes('update', self, validated_data)
  85.  
  86. File "/home/damian/.virtualenvs/sigular/lib/python3.6/site-packages/rest_framework/serializers.py" in raise_errors_on_nested_writes
  87.   793.             class_name=serializer.__class__.__name__
  88.  
  89. Exception Type: AssertionError at /api/context/75/
  90. Exception Value: The `.update()` method does not support writable nested fields by default.
  91. Write an explicit `.update()` method for serializer `main.api.serializers.ContextSerializer`, or set `read_only=True` on nested serializer fields.
  92. Request information:
  93. USER: damian.rutkiewicz@websensa.com
  94.  
  95. GET: No GET data
  96.  
  97. POST: No POST data
  98.  
  99. FILES: No FILES data
  100.  
  101. COOKIES: No cookie data
  102.  
  103. META:
  104. CLUTTER_IM_MODULE = 'xim'
  105. COLORTERM = 'truecolor'
  106. CONTENT_LENGTH = '262'
  107. CONTENT_TYPE = 'application/json;charset=UTF-8'
  108. DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
  109. DESKTOP_SESSION = 'ubuntu'
  110. DISPLAY = ':0'
  111. DJANGO_SETTINGS_MODULE = 'app.settings'
  112. GATEWAY_INTERFACE = 'CGI/1.1'
  113. GDMSESSION = 'ubuntu'
  114. GIO_LAUNCHED_DESKTOP_FILE = '/usr/share/applications/terminator.desktop'
  115. GIO_LAUNCHED_DESKTOP_FILE_PID = '4200'
  116. GJS_DEBUG_OUTPUT = 'stderr'
  117. GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG'
  118. GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
  119. GNOME_SHELL_SESSION_MODE = 'ubuntu'
  120. GTK_IM_MODULE = 'ibus'
  121. HOME = '/home/damian'
  122. HTTP_ACCEPT = 'application/json, text/plain, */*'
  123. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  124. HTTP_ACCEPT_LANGUAGE = 'pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7'
  125. HTTP_AUTHORIZATION = 'Bearer 5e8fb996cc0443819f6e1e78bee8bea5'
  126. HTTP_CONNECTION = 'keep-alive'
  127. HTTP_HOST = 'localhost:8080'
  128. HTTP_ORIGIN = 'http://localhost:3333'
  129. HTTP_REFERER = 'http://localhost:3333/organize'
  130. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
  131. IM_CONFIG_PHASE = '2'
  132. JOURNAL_STREAM = '9:31738'
  133. LANG = 'pl_PL.UTF-8'
  134. LESSCLOSE = '/usr/bin/lesspipe %s %s'
  135. LESSOPEN = '| /usr/bin/lesspipe %s'
  136. LOGNAME = 'damian'
  137. LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
  138. OLDPWD = '/home/damian/projekty'
  139. PATH = '/home/damian/.virtualenvs/sigular/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
  140. PATH_INFO = '/api/context/75/'
  141. PROJECT_HOME = '/home/damian/Devel'
  142. PS1 = '(sigular) \\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ '
  143. PWD = '/home/damian/projekty/singular-center-django'
  144. QT4_IM_MODULE = 'xim'
  145. QT_IM_MODULE = 'ibus'
  146. QUERY_STRING = ''
  147. REMOTE_ADDR = '127.0.0.1'
  148. REMOTE_HOST = ''
  149. REQUEST_METHOD = 'PUT'
  150. RUN_MAIN = 'true'
  151. SCRIPT_NAME = ''
  152. SERVER_NAME = 'damian-SATELLITE-L50-B'
  153. SERVER_PORT = '8080'
  154. SERVER_PROTOCOL = 'HTTP/1.1'
  155. SERVER_SOFTWARE = 'WSGIServer/0.2'
  156. SESSION_MANAGER = 'local/damian-SATELLITE-L50-B:@/tmp/.ICE-unix/3326,unix/damian-SATELLITE-L50-B:/tmp/.ICE-unix/3326'
  157. SHELL = '/bin/bash'
  158. SHLVL = '2'
  159. SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
  160. S_COLORS = 'auto'
  161. TERM = 'xterm-256color'
  162. TERMINATOR_DBUS_NAME = 'net.tenshu.Terminator20x20309d54defed5d4'
  163. TERMINATOR_DBUS_PATH = '/net/tenshu/Terminator2'
  164. TERMINATOR_UUID = 'urn:uuid:48e67bdc-a3ee-4e57-8b3b-f7bff427b95f'
  165. TEXTDOMAIN = 'im-config'
  166. TEXTDOMAINDIR = '/usr/share/locale/'
  167. TZ = 'Europe/Warsaw'
  168. USER = 'damian'
  169. USERNAME = 'damian'
  170. VIRTUALENVWRAPPER_HOOK_DIR = '/home/damian/.virtualenvs'
  171. VIRTUALENVWRAPPER_PROJECT_FILENAME = '.project'
  172. VIRTUALENVWRAPPER_SCRIPT = '/usr/local/bin/virtualenvwrapper.sh'
  173. VIRTUALENVWRAPPER_WORKON_CD = '1'
  174. VIRTUAL_ENV = '/home/damian/.virtualenvs/sigular'
  175. VTE_VERSION = '4804'
  176. WAYLAND_DISPLAY = 'wayland-0'
  177. WORKON_HOME = '/home/damian/.virtualenvs'
  178. XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
  179. XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
  180. XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
  181. XDG_MENU_PREFIX = 'gnome-'
  182. XDG_RUNTIME_DIR = '/run/user/1000'
  183. XDG_SEAT = 'seat0'
  184. XDG_SESSION_DESKTOP = 'ubuntu'
  185. XDG_SESSION_ID = '3'
  186. XDG_SESSION_TYPE = 'wayland'
  187. XDG_VTNR = '2'
  188. XMODIFIERS = '@im=ibus'
  189. _ = '/home/damian/.virtualenvs/sigular/bin/python'
  190. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  191. wsgi.file_wrapper = ''
  192. wsgi.input = <_io.BufferedReader name=7>
  193. wsgi.multiprocess = False
  194. wsgi.multithread = True
  195. wsgi.run_once = False
  196. wsgi.url_scheme = 'http'
  197. wsgi.version = '(1, 0)'
  198.  
  199. Settings:
  200. Using settings module app.settings
  201. ABSOLUTE_URL_OVERRIDES = {}
  202. ADMINS = []
  203. ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '0.0.0.0']
  204. ANYMAIL = {'MAILGUN_API_KEY': '********************', 'MAILGUN_SENDER_DOMAIN': 'sandboxb0070a2485704e3e8c40adc4028cff8b.mailgun.org'}
  205. APPEND_SLASH = True
  206. AUTHENTICATION_BACKENDS = ['main.social.Facebook', 'social_core.backends.google.GoogleOAuth2', 'core.auth.DjangoAuth', 'django.contrib.auth.backends.ModelBackend']
  207. AUTHORIZED_APPS = []
  208. AUTH_PASSWORD_VALIDATORS = '********************'
  209. AUTH_USER_MODEL = 'user.User'
  210. BASE_DIR = '/home/damian/projekty/singular-center-django/app'
  211. CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/3', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
  212. CACHE_MIDDLEWARE_ALIAS = 'default'
  213. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  214. CACHE_MIDDLEWARE_SECONDS = 600
  215. CLICKHOUSE = {'default': {'NAME': 'tasks', 'HOST': '37.233.101.129'}}
  216. CORS_ORIGIN_ALLOW_ALL = True
  217. CSRF_COOKIE_AGE = 31449600
  218. CSRF_COOKIE_DOMAIN = None
  219. CSRF_COOKIE_HTTPONLY = False
  220. CSRF_COOKIE_NAME = 'csrftoken'
  221. CSRF_COOKIE_PATH = '/'
  222. CSRF_COOKIE_SECURE = False
  223. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  224. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  225. CSRF_TRUSTED_ORIGINS = []
  226. CSRF_USE_SESSIONS = False
  227. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'tasks', 'USER': 'tasks_user', 'PASSWORD': '********************', 'HOST': 'localhost', 'PORT': '', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  228. DATABASE_ROUTERS = []
  229. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  230. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  231. DATETIME_FORMAT = 'N j, Y, P'
  232. DATETIME_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']
  233. DATE_FORMAT = 'N j, Y'
  234. DATE_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']
  235. DEBUG = True
  236. DEBUG_PROPAGATE_EXCEPTIONS = False
  237. DEBUG_TOOLBAR_PANELS = ['debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.staticfiles.StaticFilesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel']
  238. DECIMAL_SEPARATOR = '.'
  239. DEFAULT_CHARSET = 'utf-8'
  240. DEFAULT_CONTENT_TYPE = 'text/html'
  241. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  242. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  243. DEFAULT_FROM_EMAIL = 'postmaster@sandboxb0070a2485704e3e8c40adc4028cff8b.mailgun.org'
  244. DEFAULT_INDEX_TABLESPACE = ''
  245. DEFAULT_TABLESPACE = ''
  246. DISALLOWED_USER_AGENTS = []
  247. EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
  248. EMAIL_HOST = 'smtp.mailgun.org'
  249. EMAIL_HOST_PASSWORD = '********************'
  250. EMAIL_HOST_USER = 'postmaster@sandboxb0070a2485704e3e8c40adc4028cff8b.mailgun.org'
  251. EMAIL_PORT = 587
  252. EMAIL_SSL_CERTFILE = None
  253. EMAIL_SSL_KEYFILE = '********************'
  254. EMAIL_SUBJECT_PREFIX = '[Django] '
  255. EMAIL_TIMEOUT = None
  256. EMAIL_USE_LOCALTIME = False
  257. EMAIL_USE_SSL = False
  258. EMAIL_USE_TLS = True
  259. FILE_CHARSET = 'utf-8'
  260. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  261. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  262. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  263. FILE_UPLOAD_PERMISSIONS = None
  264. FILE_UPLOAD_TEMP_DIR = None
  265. FIRST_DAY_OF_WEEK = 0
  266. FIXTURE_DIRS = []
  267. FORCE_SCRIPT_NAME = None
  268. FORMAT_MODULE_PATH = None
  269. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  270. IGNORABLE_404_URLS = []
  271. INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_filters', 'debug_toolbar', 'model_revision', 'user', 'main', 'oidc_provider', 'social_django', 'corsheaders', 'connector_manager', 'clickhouse', 'anymail']
  272. INTERNAL_IPS = ['localhost', '127.0.0.1']
  273. LANGUAGES = [('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'), ('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')]
  274. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  275. LANGUAGE_CODE = 'en-us'
  276. LANGUAGE_COOKIE_AGE = None
  277. LANGUAGE_COOKIE_DOMAIN = None
  278. LANGUAGE_COOKIE_NAME = 'django_language'
  279. LANGUAGE_COOKIE_PATH = '/'
  280. LOCALE_PATHS = []
  281. LOGGING = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}, 'simple': {'format': '%(levelname)s %(message)s'}}, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}, 'mail_admins': {'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler'}, 'file': {'level': 'DEBUG', 'class': 'core.logger.GroupWriteRotatingFileHandler', 'filename': '/home/damian/projekty/singular-center-django/app/../logs/tasks.log', 'formatter': 'verbose', 'when': 'midnight', 'backupCount': 30}}, 'loggers': {'django': {'handlers': ['console', 'file'], 'propagate': True, 'level': 'INFO'}, 'model_revision': {'handlers': ['console'], 'propagate': True, 'level': 'INFO'}}}
  282. LOGGING_CONFIG = 'logging.config.dictConfig'
  283. LOGIN_REDIRECT_URL = '/panel/'
  284. LOGIN_URL = '/panel/login/'
  285. LOGOUT_REDIRECT_URL = None
  286. LOGOUT_URL = '/panel/logout/'
  287. LOG_PATH = '/home/damian/projekty/singular-center-django/app/../logs'
  288. LOG_TO_CLICKHOUSE = False
  289. MANAGERS = []
  290. MEDIA_ROOT = '/home/damian/projekty/singular-center-django/app/../media'
  291. MEDIA_URL = '/media/'
  292. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  293. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'social_django.middleware.SocialAuthExceptionMiddleware', 'django_statsd.middleware.GraphiteRequestTimingMiddleware', 'django_statsd.middleware.GraphiteMiddleware', 'model_revision.revisions.middleware', 'core.middleware.load_request', 'clickhouse.logger.middleware']
  294. MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
  295. MIGRATION_MODULES = {}
  296. MOCK_USER = 'karolina@gmail.com'
  297. MONTH_DAY_FORMAT = 'F j'
  298. NUMBER_GROUPING = 0
  299. OAUTH = 'localhost:7000'
  300. OIDC_EXTRA_SCOPE_CLAIMS = 'core.auth.CustomScopeClaims'
  301. OIDC_TOKEN_EXPIRE = '********************'
  302. PASSWORD_HASHERS = '********************'
  303. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  304. PREPEND_WWW = False
  305. REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ('core.auth.CustomIsAuth',), 'DEFAULT_AUTHENTICATION_CLASSES': ('core.auth.RestFrameworkAuth',)}
  306. ROOT_URLCONF = 'app.urls'
  307. SECRET_KEY = '********************'
  308. SECURE_BROWSER_XSS_FILTER = False
  309. SECURE_CONTENT_TYPE_NOSNIFF = False
  310. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  311. SECURE_HSTS_PRELOAD = False
  312. SECURE_HSTS_SECONDS = 0
  313. SECURE_PROXY_SSL_HEADER = None
  314. SECURE_REDIRECT_EXEMPT = []
  315. SECURE_SSL_HOST = None
  316. SECURE_SSL_REDIRECT = False
  317. SERVER_EMAIL = 'root@localhost'
  318. SESSION_CACHE_ALIAS = 'default'
  319. SESSION_COOKIE_AGE = 1209600
  320. SESSION_COOKIE_DOMAIN = None
  321. SESSION_COOKIE_HTTPONLY = True
  322. SESSION_COOKIE_NAME = 'sessionid'
  323. SESSION_COOKIE_PATH = '/'
  324. SESSION_COOKIE_SECURE = False
  325. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  326. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  327. SESSION_FILE_PATH = None
  328. SESSION_SAVE_EVERY_REQUEST = False
  329. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  330. SETTINGS_MODULE = 'app.settings'
  331. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  332. SHORT_DATE_FORMAT = 'm/d/Y'
  333. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  334. SILENCED_SYSTEM_CHECKS = []
  335. SOCIAL_AUTH_FACEBOOK_KEY = '********************'
  336. SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id,email,name'}
  337. SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
  338. SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
  339. SOCIAL_AUTH_FIELDS_STORED_IN_SESSION = ['next']
  340. SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '********************'
  341. SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '********************'
  342. SOCIAL_AUTH_RAISE_EXCEPTIONS = False
  343. SOCIAL_AUTH_SANITIZE_REDIRECTS = False
  344. STATICFILES_DIRS = ['main/static']
  345. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  346. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  347. STATIC_ROOT = '/home/damian/projekty/singular-center-django/app/../static'
  348. STATIC_URL = '/static/'
  349. STATSD_CLIENT = 'django_statsd.clients.null'
  350. STATSD_HOST = 'localhost'
  351. STATSD_PORT = 8125
  352. STATSD_PREFIX = 'sc'
  353. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}]
  354. TEST_NON_SERIALIZED_APPS = []
  355. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  356. THOUSAND_SEPARATOR = ','
  357. TIME_FORMAT = 'P'
  358. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  359. TIME_ZONE = 'Europe/Warsaw'
  360. USE_ETAGS = False
  361. USE_I18N = True
  362. USE_L10N = True
  363. USE_THOUSAND_SEPARATOR = False
  364. USE_TZ = True
  365. USE_X_FORWARDED_HOST = False
  366. USE_X_FORWARDED_PORT = False
  367. WSGI_APPLICATION = 'app.wsgi.application'
  368. X_FRAME_OPTIONS = 'SAMEORIGIN'
  369. YEAR_MONTH_FORMAT = 'F Y'
  370.  
  371.  
  372. You're seeing this error because you have DEBUG = True in your
  373. Django settings file. Change that to False, and Django will
  374. display a standard page generated by the handler for this status code.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top