Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.03 KB | None | 0 0
  1. AttributeError at /packs/
  2. 'NoneType' object has no attribute 'strftime'
  3.  
  4. Request Method: GET
  5. Request URL: https://stg.api.royalsapp.com/packs/?type=special
  6. Django Version: 1.11.10
  7. Python Executable: /webapps/royals/bin/python3.6
  8. Python Version: 3.6.2
  9. Python Path: ['/webapps/royals/royals', '/webapps/royals/bin', '/webapps/royals/lib/python36.zip', '/webapps/royals/lib/python3.6', '/webapps/royals/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/webapps/royals/lib/python3.6/site-packages', '/webapps/royals/royals']
  10. Server time: Mon, 23 Apr 2018 13:49:32 +0200
  11. Installed Applications:
  12. ['liststyle',
  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. 'django.contrib.gis',
  20. 'rest_framework',
  21. 'rest_framework.authtoken',
  22. 'rest_framework_swagger',
  23. 'rest_framework_tracking',
  24. 'drf_yasg',
  25. 'rangefilter',
  26. 'django_extensions',
  27. 'social_django',
  28. 'itunesiap',
  29. 'mapwidgets',
  30. 'storages',
  31. 'push_notifications',
  32. 'positions',
  33. 'django_slack',
  34. 'users',
  35. 'events',
  36. 'packs',
  37. 'brands',
  38. 'iap',
  39. 'matches',
  40. 'chat',
  41. 'notifications',
  42. 'rankings',
  43. 'codes',
  44. 'common.celery_tasks',
  45. 'analysis',
  46. 'advertisements',
  47. 'raven.contrib.django.raven_compat',
  48. 'django_admin_listfilter_dropdown',
  49. 'common.admin_list_filters',
  50. 'common.admin_rangefilter',
  51. 'common.textcomplete',
  52. 'drf_multiple_model']
  53. Installed Middleware:
  54. ['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware',
  55. 'raven.contrib.django.middleware.SentryMiddleware',
  56. 'django.middleware.security.SecurityMiddleware',
  57. 'django.contrib.sessions.middleware.SessionMiddleware',
  58. 'django.middleware.locale.LocaleMiddleware',
  59. 'django.middleware.common.CommonMiddleware',
  60. 'django.middleware.csrf.CsrfViewMiddleware',
  61. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  62. 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  63. 'django.contrib.messages.middleware.MessageMiddleware',
  64. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  65. 'social_django.middleware.SocialAuthExceptionMiddleware',
  66. 'users.middleware.LastActivityMiddleware']
  67.  
  68.  
  69. Traceback:
  70.  
  71. File "/webapps/royals/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  72. 41. response = get_response(request)
  73.  
  74. File "/webapps/royals/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
  75. 249. response = self._get_response(request)
  76.  
  77. File "/webapps/royals/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  78. 187. response = self.process_exception_by_middleware(e, request)
  79.  
  80. File "/webapps/royals/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  81. 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  82.  
  83. File "/webapps/royals/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  84. 58. return view_func(*args, **kwargs)
  85.  
  86. File "/webapps/royals/lib/python3.6/site-packages/django/views/generic/base.py" in view
  87. 68. return self.dispatch(request, *args, **kwargs)
  88.  
  89. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  90. 494. response = self.handle_exception(exc)
  91.  
  92. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  93. 454. self.raise_uncaught_exception(exc)
  94.  
  95. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  96. 491. response = handler(request, *args, **kwargs)
  97.  
  98. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/decorators.py" in handler
  99. 53. return func(*args, **kwargs)
  100.  
  101. File "/webapps/royals/royals/packs/views.py" in view_packs
  102. 49. return Response(data=serializer.data)
  103.  
  104. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  105. 537. ret = super(Serializer, self).data
  106.  
  107. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  108. 262. self._data = self.to_representation(self.instance)
  109.  
  110. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  111. 504. ret[field.field_name] = field.to_representation(attribute)
  112.  
  113. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  114. 660. self.child.to_representation(item) for item in iterable
  115.  
  116. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in <listcomp>
  117. 660. self.child.to_representation(item) for item in iterable
  118.  
  119. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  120. 504. ret[field.field_name] = field.to_representation(attribute)
  121.  
  122. File "/webapps/royals/lib/python3.6/site-packages/rest_framework/fields.py" in to_representation
  123. 1816. return method(value)
  124.  
  125. File "/webapps/royals/royals/packs/serializers.py" in get_available_until
  126. 71. return pack.available_until_datetime.strftime('%Y-%m-%d %H:%M:%S')
  127.  
  128. Exception Type: AttributeError at /packs/
  129. Exception Value: 'NoneType' object has no attribute 'strftime'
  130. Request information:
  131. USER: Piotr Kostecki
  132.  
  133. GET:
  134. type = 'special'
  135.  
  136. POST: No POST data
  137.  
  138. FILES: No FILES data
  139.  
  140. COOKIES: No cookie data
  141.  
  142. META:
  143. HTTP_ACCEPT = '*/*'
  144. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  145. HTTP_AUTHORIZATION = 'Token f8722769e72cd6ef56a00861827f89baa16c0175'
  146. HTTP_CACHE_CONTROL = 'no-cache'
  147. HTTP_CONNECTION = 'close'
  148. HTTP_HOST = 'stg.api.royalsapp.com'
  149. HTTP_POSTMAN_TOKEN = '4554f250-267e-4f6d-a67c-64e7640ba7de'
  150. HTTP_USER_AGENT = 'PostmanRuntime/7.1.1'
  151. HTTP_X_FORWARDED_FOR = '109.173.155.255'
  152. HTTP_X_FORWARDED_PROTO = 'https'
  153. PATH_INFO = '/packs/'
  154. QUERY_STRING = 'type=special'
  155. RAW_URI = '/packs/?type=special'
  156. REMOTE_ADDR = ''
  157. REQUEST_METHOD = 'GET'
  158. SCRIPT_NAME = ''
  159. SERVER_NAME = 'stg.api.royalsapp.com'
  160. SERVER_PORT = '443'
  161. SERVER_PROTOCOL = 'HTTP/1.0'
  162. SERVER_SOFTWARE = 'gunicorn/19.7.1'
  163. gunicorn.socket = <socket.socket fd=11, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/webapps/royals/run/gunicorn.sock>
  164. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f1e75a7f1d0>
  165. wsgi.file_wrapper = ''
  166. wsgi.input = <gunicorn.http.body.Body object at 0x7f1e75a7f128>
  167. wsgi.multiprocess = True
  168. wsgi.multithread = False
  169. wsgi.run_once = False
  170. wsgi.url_scheme = 'https'
  171. wsgi.version = '(1, 0)'
  172.  
  173. Settings:
  174. Using settings module royals.settings.staging
  175. ABSOLUTE_URL_OVERRIDES = {}
  176. ADMINS = []
  177. ALLOWED_HOSTS = ['35.176.156.43', 'stg.api.royalsapp.com']
  178. APPEND_SLASH = True
  179. AUTHENTICATION_BACKENDS = "('social_core.backends.facebook.FacebookOAuth2', 'django.contrib.auth.backends.ModelBackend')"
  180. AUTH_PASSWORD_VALIDATORS = '********************'
  181. AUTH_USER_MODEL = 'users.User'
  182. AWS_ACCESS_KEY_ID = '********************'
  183. AWS_DEFAULT_ACL = 'private'
  184. AWS_LOCATION = 'media'
  185. AWS_QUERYSTRING_EXPIRE = 86400
  186. AWS_S3_FILE_OVERWRITE = False
  187. AWS_S3_HOST = 's3.eu-west-2.amazonaws.com'
  188. AWS_SECRET_ACCESS_KEY = '********************'
  189. AWS_STORAGE_BUCKET_NAME = 'royals-files'
  190. BASE_DIR = '/webapps/royals/royals/royals'
  191. BONUS_FOR_LEVEL_UP = [90, 90, 90, 90, 90, 90, 90, 90, 500]
  192. BRANDS_MAX = 3
  193. BRANDS_MIN = 0
  194. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
  195. CACHE_MIDDLEWARE_ALIAS = 'default'
  196. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  197. CACHE_MIDDLEWARE_SECONDS = 600
  198. CELERY_ACCEPT_CONTENT = ['json']
  199. CELERY_BROKER_URL = 'amqp://royals:b3Md6ugwHkSHDUeY44qFH4pP5g9twj8MsbLG@localhost:5672/royals'
  200. CELERY_RESULT_BACKEND = 'amqp://royals:b3Md6ugwHkSHDUeY44qFH4pP5g9twj8MsbLG@localhost:5672/royals'
  201. CELERY_RESULT_SERIALIZER = 'json'
  202. CELERY_TASK_SERIALIZER = 'json'
  203. CSRF_COOKIE_AGE = 31449600
  204. CSRF_COOKIE_DOMAIN = None
  205. CSRF_COOKIE_HTTPONLY = False
  206. CSRF_COOKIE_NAME = 'csrftoken'
  207. CSRF_COOKIE_PATH = '/'
  208. CSRF_COOKIE_SECURE = False
  209. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  210. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  211. CSRF_TRUSTED_ORIGINS = []
  212. CSRF_USE_SESSIONS = False
  213. DATABASES = {'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'royals-staging', 'USER': 'db_admin', 'PASSWORD': '********************', 'HOST': 'royals-staging.c45efoz9gwow.eu-west-2.rds.amazonaws.com', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  214. DATABASE_ROUTERS = []
  215. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  216. DATA_UPLOAD_MAX_NUMBER_FIELDS = None
  217. DATETIME_FORMAT = 'N j, Y, P'
  218. 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']
  219. DATE_FORMAT = 'N j, Y'
  220. 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']
  221. DEBUG = True
  222. DEBUG_PROPAGATE_EXCEPTIONS = False
  223. DECIMAL_SEPARATOR = '.'
  224. DEFAULT_CHARSET = 'utf-8'
  225. DEFAULT_CONTENT_TYPE = 'text/html'
  226. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  227. DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
  228. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  229. DEFAULT_INDEX_TABLESPACE = ''
  230. DEFAULT_TABLESPACE = ''
  231. DISALLOWED_USER_AGENTS = []
  232. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  233. EMAIL_HOST = 'localhost'
  234. EMAIL_HOST_PASSWORD = '********************'
  235. EMAIL_HOST_USER = ''
  236. EMAIL_PORT = 25
  237. EMAIL_SSL_CERTFILE = None
  238. EMAIL_SSL_KEYFILE = '********************'
  239. EMAIL_SUBJECT_PREFIX = '[Django] '
  240. EMAIL_TIMEOUT = None
  241. EMAIL_USE_LOCALTIME = False
  242. EMAIL_USE_SSL = False
  243. EMAIL_USE_TLS = False
  244. FILE_CHARSET = 'utf-8'
  245. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  246. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.TemporaryFileUploadHandler']
  247. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  248. FILE_UPLOAD_PERMISSIONS = None
  249. FILE_UPLOAD_TEMP_DIR = None
  250. FIRST_DAY_OF_WEEK = 0
  251. FIXTURE_DIRS = []
  252. FORCE_SCRIPT_NAME = None
  253. FORMAT_MODULE_PATH = None
  254. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  255. FREE_PACKAGE_CODE = 'free'
  256. FREE_START_COINS = 100
  257. GOOGLE_SERVICE_ACCOUNT = {'auth_provider_x509_cert_url': 'https://www.googleapis.com/oauth2/v1/certs', 'auth_uri': 'https://accounts.google.com/o/oauth2/auth', 'private_key': '********************', 'client_email': 'service-account-google-play@api-8152246798553305834-452549.iam.gserviceaccount.com', 'private_key_id': '********************', 'client_id': '111418087021111754424', 'token_uri': '********************', 'project_id': 'api-8152246798553305834-452549', 'type': 'service_account', 'client_x509_cert_url': 'https://www.googleapis.com/robot/v1/metadata/x509/service-account-google-play%40api-8152246798553305834-452549.iam.gserviceaccount.com'}
  258. IGNORABLE_404_URLS = []
  259. INSTALLED_APPS = ['liststyle', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_swagger', 'rest_framework_tracking', 'drf_yasg', 'rangefilter', 'django_extensions', 'social_django', 'itunesiap', 'mapwidgets', 'storages', 'push_notifications', 'positions', 'django_slack', 'users', 'events', 'packs', 'brands', 'iap', 'matches', 'chat', 'notifications', 'rankings', 'codes', 'common.celery_tasks', 'analysis', 'advertisements', 'raven.contrib.django.raven_compat', 'django_admin_listfilter_dropdown', 'common.admin_list_filters', 'common.admin_rangefilter', 'common.textcomplete', 'drf_multiple_model']
  260. INTERNAL_IPS = ['127.0.0.1', '0.0.0.0', 'localhost']
  261. ITUNESIAP_ENV = <Environment use_production=False use_sandbox=True timeout=30.0 exclude_old_transactions=False verify_ssl=True>
  262. LANGUAGES = "(('en', 'English'), ('pl', 'Polish'))"
  263. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  264. LANGUAGE_CODE = 'en-us'
  265. LANGUAGE_COOKIE_AGE = None
  266. LANGUAGE_COOKIE_DOMAIN = None
  267. LANGUAGE_COOKIE_NAME = 'django_language'
  268. LANGUAGE_COOKIE_PATH = '/'
  269. LEVEL_FOR_NEW_USER = 7
  270. LOCALE_PATHS = "('/webapps/royals/royals/royals/locale',)"
  271. LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler'}}}
  272. LOGGING_CONFIG = 'logging.config.dictConfig'
  273. LOGIN_REDIRECT_URL = '/accounts/profile/'
  274. LOGIN_URL = '/accounts/login/'
  275. LOGOUT_REDIRECT_URL = None
  276. MANAGERS = []
  277. MAP_WIDGETS = {'GOOGLE_MAP_API_KEY': '********************'}
  278. MAX_PHOTOS_NUMBER = 7
  279. MAX_USERS_SEEN = 20
  280. MAX_WAITING_MATCH = 6
  281. MEDIA_ROOT = ''
  282. MEDIA_URL = ''
  283. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  284. MIDDLEWARE = None
  285. MIDDLEWARE_CLASSES = ['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', 'raven.contrib.django.middleware.SentryMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'social_django.middleware.SocialAuthExceptionMiddleware', 'users.middleware.LastActivityMiddleware']
  286. MIGRATION_MODULES = {}
  287. MONTH_DAY_FORMAT = 'F j'
  288. NUMBER_GROUPING = 0
  289. PACK_PRICE_DECAY_INTERVAL = datetime.timedelta(0, 360)
  290. PACK_PRICE_DECAY_VALUE = 1
  291. PASSWORD_HASHERS = '********************'
  292. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  293. PREPEND_WWW = False
  294. PROJECT_DIR = '/webapps/royals/royals'
  295. PUSH_NOTIFICATIONS_SETTINGS = {'APNS_CERTIFICATE': '/home/royals/pushcert.pem', 'APNS_TOPIC': 'com.Royalsapp.Stage', 'APNS_USE_SANDBOX': False, 'FCM_API_KEY': '********************', 'UPDATE_ON_DUPLICATE_REG_ID': True, 'CONFIG': 'push_notifications.conf.LegacyConfig', 'GCM_POST_URL': 'https://android.googleapis.com/gcm/send', 'GCM_MAX_RECIPIENTS': 1000, 'GCM_ERROR_TIMEOUT': None, 'FCM_POST_URL': 'https://fcm.googleapis.com/fcm/send', 'FCM_MAX_RECIPIENTS': 1000, 'FCM_ERROR_TIMEOUT': None, 'APNS_USE_ALTERNATIVE_PORT': False, 'WNS_PACKAGE_SECURITY_ID': None, 'WNS_SECRET_KEY': '********************', 'WNS_ACCESS_URL': 'https://login.live.com/accesstoken.srf', 'WP_POST_URL': {'CHROME': 'https://fcm.googleapis.com/fcm/send', 'OPERA': 'https://fcm.googleapis.com/fcm/send', 'FIREFOX': 'https://updates.push.services.mozilla.com/wpush/v2'}, 'WP_PRIVATE_KEY': '********************', 'WP_CLAIMS': None, 'WP_ERROR_TIMEOUT': None, 'USER_MODEL': 'users.User'}
  296. RAVEN_CONFIG = {'dsn': 'https://d47b828ea786480b9e0ed66da56e23c0:f62d6e3f2d844c578b36c0bd5b16270b@sentry.royalsapp.com/6', 'release': 'c7b8dd0047c7a039067f0a29950d776c1a9532af'}
  297. REFERRAL_COINS = 100
  298. REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated', 'users.permissions.IsCompleted'), 'EXCEPTION_HANDLER': 'royals.utils.custom_exception_handler'}
  299. ROOT_URLCONF = 'royals.urls'
  300. SCORE_FOR_BEING_SELECTED_IN_MATCH = 1
  301. SCORE_TO_LEVEL_UP = [10, 25, 50, 85, 135, 270, 500, 900, 1500]
  302. SECRET_KEY = '********************'
  303. SECURE_BROWSER_XSS_FILTER = False
  304. SECURE_CONTENT_TYPE_NOSNIFF = False
  305. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  306. SECURE_HSTS_PRELOAD = False
  307. SECURE_HSTS_SECONDS = 0
  308. SECURE_PROXY_SSL_HEADER = None
  309. SECURE_REDIRECT_EXEMPT = []
  310. SECURE_SSL_HOST = None
  311. SECURE_SSL_REDIRECT = False
  312. SEND_INFO_MATCH_AFTER_SECOND = 600
  313. SERVER_EMAIL = 'root@localhost'
  314. SESSION_CACHE_ALIAS = 'default'
  315. SESSION_COOKIE_AGE = 1209600
  316. SESSION_COOKIE_DOMAIN = None
  317. SESSION_COOKIE_HTTPONLY = True
  318. SESSION_COOKIE_NAME = 'sessionid'
  319. SESSION_COOKIE_PATH = '/'
  320. SESSION_COOKIE_SECURE = False
  321. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  322. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  323. SESSION_FILE_PATH = None
  324. SESSION_SAVE_EVERY_REQUEST = False
  325. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  326. SETTINGS_MODULE = 'royals.settings.staging'
  327. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  328. SHORT_DATE_FORMAT = 'm/d/Y'
  329. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  330. SILENCED_SYSTEM_CHECKS = []
  331. SLACK_CHANNEL = '#alerty_małe'
  332. SLACK_TOKEN = '********************'
  333. SLACK_USERNAME = 'backend'
  334. SOCIAL_AUTH_FACEBOOK_KEY = '********************'
  335. SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id, name'}
  336. SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
  337. STATICFILES_DIRS = []
  338. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  339. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  340. STATIC_ROOT = '/webapps/royals/static'
  341. STATIC_URL = '/static/'
  342. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/webapps/royals/royals/royals/../templates'], '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', 'django.template.context_processors.i18n']}}]
  343. TEST_NON_SERIALIZED_APPS = []
  344. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  345. THOUSAND_SEPARATOR = ','
  346. TIME_FORMAT = 'P'
  347. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  348. TIME_ZONE = 'Europe/Warsaw'
  349. USE_ETAGS = False
  350. USE_I18N = True
  351. USE_L10N = True
  352. USE_THOUSAND_SEPARATOR = False
  353. USE_TZ = True
  354. USE_X_FORWARDED_HOST = False
  355. USE_X_FORWARDED_PORT = False
  356. WSGI_APPLICATION = 'royals.wsgi.application'
  357. X_FRAME_OPTIONS = 'SAMEORIGIN'
  358. YEAR_MONTH_FORMAT = 'F Y'
  359.  
  360.  
  361. You're seeing this error because you have DEBUG = True in your
  362. Django settings file. Change that to False, and Django will
  363. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement