SHARE
TWEET

Untitled

a guest Dec 6th, 2016 258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TypeError at /api/v1/providers/1/bookings/preview/
  2. 'NoneType' object is not subscriptable
  3.  
  4. Request Method: POST
  5. Request URL: http://localhost:8000/api/v1/providers/1/bookings/preview/
  6. Django Version: 1.10.3
  7. Python Executable: C:\Python35\python3.exe
  8. Python Version: 3.5.2
  9. Python Path: ['D:\\wamp\\www\\bms', 'd:\\wamp\\www\\bms\\django-schemahybrid-translation', 'C:\\Python35\\python35.zip', 'C:\\Python35\\DLLs', 'C:\\Python35\\lib', 'C:\\Python35', 'C:\\Python35\\lib\\site-packages', 'D:\\wamp\\www\\bms']
  10. Server time: Tue, 6 Dec 2016 12:20:57 +0100
  11. Installed Applications:
  12. ('django.contrib.admin',
  13.  'django.contrib.auth',
  14.  'django.contrib.contenttypes',
  15.  'django.contrib.sessions',
  16.  'django.contrib.messages',
  17.  'django.contrib.sites',
  18.  'django.contrib.staticfiles',
  19.  'rest_framework',
  20.  'rest_framework_swagger',
  21.  'webpack_loader',
  22.  'modeltranslation',
  23.  'bms',
  24.  'frontend',
  25.  'onesky',
  26.  'core',
  27.  'auth_ex',
  28.  'django_extensions',
  29.  'debug_toolbar')
  30. Installed Middleware:
  31. ('django.contrib.sessions.middleware.SessionMiddleware',
  32.  'django.middleware.locale.LocaleMiddleware',
  33.  'django.middleware.common.CommonMiddleware',
  34.  'django.middleware.csrf.CsrfViewMiddleware',
  35.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  36.  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  37.  'django.contrib.messages.middleware.MessageMiddleware',
  38.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  39.  'django.middleware.security.SecurityMiddleware',
  40.  'django.contrib.sites.middleware.CurrentSiteMiddleware',
  41.  'debug_toolbar.middleware.DebugToolbarMiddleware')
  42.  
  43.  
  44. Traceback:  
  45.  
  46. File "C:\Python35\lib\site-packages\django\core\handlers\exception.py" in inner
  47.   39.             response = get_response(request)
  48.  
  49. File "C:\Python35\lib\site-packages\django\core\handlers\base.py" in _legacy_get_response
  50.   249.             response = self._get_response(request)
  51.  
  52. File "C:\Python35\lib\site-packages\django\core\handlers\base.py" in _get_response
  53.   187.                 response = self.process_exception_by_middleware(e, request)
  54.  
  55. File "C:\Python35\lib\site-packages\django\core\handlers\base.py" in _get_response
  56.   185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  57.  
  58. File "C:\Python35\lib\site-packages\django\views\decorators\csrf.py" in wrapped_view
  59.   58.         return view_func(*args, **kwargs)
  60.  
  61. File "C:\Python35\lib\site-packages\rest_framework\viewsets.py" in view
  62.   83.             return self.dispatch(request, *args, **kwargs)
  63.  
  64. File "C:\Python35\lib\site-packages\rest_framework\views.py" in dispatch
  65.   477.             response = self.handle_exception(exc)
  66.  
  67. File "C:\Python35\lib\site-packages\rest_framework\views.py" in handle_exception
  68.   437.             self.raise_uncaught_exception(exc)
  69.  
  70. File "C:\Python35\lib\site-packages\rest_framework\views.py" in dispatch
  71.   474.             response = handler(request, *args, **kwargs)
  72.  
  73. File "D:\wamp\www\bms\core\api.py" in preview
  74.   563.             pricer.price_breakdown(), context=self.get_serializer_context())
  75.  
  76. File "D:\wamp\www\bms\core\pricing.py" in price_breakdown
  77.   454.                 **self.get_unit_attributes(offer, number, start, end)))
  78.  
  79. File "D:\wamp\www\bms\core\pricing.py" in get_unit_attributes
  80.   419.         pricing = offer.pricing(self.obj, number, start)
  81.  
  82. File "D:\wamp\www\bms\core\models\offer.py" in pricing
  83.   228.         base_rate = self.get_base_rate(unit_starts_at)
  84.  
  85. File "D:\wamp\www\bms\core\models\offer.py" in get_base_rate
  86.   173.         }[base_rate['type']]())
  87.  
  88. Exception Type: TypeError at /api/v1/providers/1/bookings/preview/
  89. Exception Value: 'NoneType' object is not subscriptable
  90. Request information:
  91. USER: test
  92.  
  93. GET: No GET data
  94.  
  95. POST: No POST data
  96.  
  97. FILES: No FILES data
  98.  
  99. COOKIES:
  100. cookie-box = 'hide'
  101. extension-modal = 'true'
  102. help-modal = 'false'
  103. csrftoken = 'jFitjbHExHZw7fpePzoqhBqCNpJP7elPenXoTcv3U2JYsFE7mw4IiA2t31HrfS6p'
  104. uvts = '4xMiLsBtYcs26pdw'
  105. sessionid = 's9hyni8buv9wzbq17n0pp7fap18rzhxv'
  106. djdt = 'hide'
  107. _ga = 'GA1.1.1477245650.1473921192'
  108. connect.sid = 's%3AOyvl__TGUD5kB5MNrhxl23stDj4JOvzq.gQpNkhACsqSzPjsSbpDCpxRXJD6veFjeapfzwbPVjrs'
  109. mp_d2de0109a8de7237dede66874c7b8951_mixpanel = '%7B%22distinct_id%22%3A%20%226117a132-c39e-4fc2-9095-97d5a2555eb9%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D'
  110. __uvt = ''
  111.  
  112. META:
  113. ALLUSERSPROFILE = 'C:\\ProgramData'
  114. ANSICON = '237x1000 (237x60)'
  115. ANSICON_DEF = '7'
  116. APPDATA = 'C:\\Users\\m.majewski\\AppData\\Roaming'
  117. ARCHITECTURE = '64'
  118. CMDER_ROOT = 'C:\\Users\\m.majewski\\Desktop\\cmder'
  119. COMMONPROGRAMFILES = 'C:\\Program Files\\Common Files'
  120. COMMONPROGRAMFILES(X86) = 'C:\\Program Files (x86)\\Common Files'
  121. COMMONPROGRAMW6432 = 'C:\\Program Files\\Common Files'
  122. COMPUTERNAME = 'MAJEWSKI2'
  123. COMSPEC = 'C:\\WINDOWS\\system32\\cmd.exe'
  124. CONEMUANSI = 'ON'
  125. CONEMUANSILOG = ''
  126. CONEMUARGS = ''
  127. CONEMUARGS2 = ''
  128. CONEMUBACKHWND = '0x005A1232'
  129. CONEMUBASEDIR = 'C:\\Users\\m.majewski\\Desktop\\cmder\\vendor\\conemu-maximus5\\ConEmu'
  130. CONEMUBUILD = '161203'
  131. CONEMUCONFIG = ''
  132. CONEMUDIR = 'C:\\Users\\m.majewski\\Desktop\\cmder\\vendor\\conemu-maximus5'
  133. CONEMUDRAWHWND = '0x00021288'
  134. CONEMUDRIVE = 'C:'
  135. CONEMUHOOKS = 'Enabled'
  136. CONEMUHWND = '0x000D1218'
  137. CONEMUISADMIN = 'ADMIN'
  138. CONEMUPALETTE = 'Monokai'
  139. CONEMUPID = '31400'
  140. CONEMUSERVERPID = '51000'
  141. CONEMUTASK = '{cmd}'
  142. CONEMUWORKDIR = 'C:\\Users\\m.majewski'
  143. CONEMUWORKDRIVE = 'C:'
  144. CONTENT_LENGTH = '163'
  145. CONTENT_TYPE = 'application/json'
  146. CSRF_COOKIE = 'jFitjbHExHZw7fpePzoqhBqCNpJP7elPenXoTcv3U2JYsFE7mw4IiA2t31HrfS6p'
  147. DJANGO_SETTINGS_MODULE = 'bms.settings'
  148. DOCKER_TOOLBOX_INSTALL_PATH = 'C:\\Program Files\\Docker Toolbox'
  149. ERLANG_HOME = 'C:\\Program Files\\erl8.1'
  150. ESET_OPTIONS = '                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               '
  151. GATEWAY_INTERFACE = 'CGI/1.1'
  152. GIT_INSTALL_ROOT = 'C:\\Program Files\\Git'
  153. GYP_MSVS_VERSION = '2015'
  154. HOME = 'C:\\Users\\m.majewski'
  155. HOMEDRIVE = 'C:'
  156. HOMEPATH = '\\Users\\m.majewski'
  157. HTTP_ACCEPT = 'application/json'
  158. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  159. HTTP_ACCEPT_LANGUAGE = 'pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4'
  160. HTTP_CONNECTION = 'keep-alive'
  161. HTTP_COOKIE = 'extension-modal=true; cookie-box=hide; __uvt=; connect.sid=s%3AOyvl__TGUD5kB5MNrhxl23stDj4JOvzq.gQpNkhACsqSzPjsSbpDCpxRXJD6veFjeapfzwbPVjrs; mp_d2de0109a8de7237dede66874c7b8951_mixpanel=%7B%22distinct_id%22%3A%20%226117a132-c39e-4fc2-9095-97d5a2555eb9%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D; uvts=4xMiLsBtYcs26pdw; help-modal=false; _ga=GA1.1.1477245650.1473921192; sessionid=s9hyni8buv9wzbq17n0pp7fap18rzhxv; djdt=hide; csrftoken=jFitjbHExHZw7fpePzoqhBqCNpJP7elPenXoTcv3U2JYsFE7mw4IiA2t31HrfS6p'
  162. HTTP_HOST = 'localhost:8000'
  163. HTTP_ORIGIN = 'http://localhost:8000'
  164. HTTP_REFERER = 'http://localhost:8000/en/bookings'
  165. HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36'
  166. HTTP_X_CSRFTOKEN = 'jFitjbHExHZw7fpePzoqhBqCNpJP7elPenXoTcv3U2JYsFE7mw4IiA2t31HrfS6p'
  167. LOCALAPPDATA = 'C:\\Users\\m.majewski\\AppData\\Local'
  168. LOGONSERVER = '\\\\AD01'
  169. NUMBER_OF_PROCESSORS = '4'
  170. OS = 'Windows_NT'
  171. PATH = 'C:\\Users\\m.majewski\\Desktop\\cmder\\bin;C:\\Program Files\\Git\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\share\\vim\\vim74;C:\\Users\\m.majewski\\Desktop\\cmder\\vendor\\conemu-maximus5\\ConEmu\\Scripts;C:\\Users\\m.majewski\\Desktop\\cmder\\vendor\\conemu-maximus5;C:\\Users\\m.majewski\\Desktop\\cmder\\vendor\\conemu-maximus5\\ConEmu;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\TortoiseHg\\;C:\\Program Files\\nodejs\\;D:\\wamp\\bin\\mysql\\mysql5.6.17\\bin\\;D:\\wamp\\bin\\php\\php5.5.12\\;C:\\Users\\m.majewski\\AppData\\Roaming\\npm\\;C:\\adb;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\ComposerSetup\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Users\\m.majewski\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Python27;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Redis;C:\\Python27\\Scripts;C:\\Python35;C:\\Python35\\Scripts;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Users\\m.majewski\\AppData\\Roaming\\Composer\\vendor\\bin;C:\\Program Files\\Docker Toolbox;C:\\Users\\m.majewski\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\m.majewski\\Desktop\\cmder'
  172. PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
  173. PATH_INFO = '/api/v1/providers/1/bookings/preview/'
  174. PLINK_PROTOCOL = 'ssh'
  175. PROCESSOR_ARCHITECTURE = 'AMD64'
  176. PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 58 Stepping 9, GenuineIntel'
  177. PROCESSOR_LEVEL = '6'
  178. PROCESSOR_REVISION = '3a09'
  179. PROGRAMDATA = 'C:\\ProgramData'
  180. PROGRAMFILES = 'C:\\Program Files'
  181. PROGRAMFILES(X86) = 'C:\\Program Files (x86)'
  182. PROGRAMW6432 = 'C:\\Program Files'
  183. PROMPT = 'C\x08L\x08I\x08N\x08K\x08 \x08$E[1;32;40m$P$S{git}{hg}$S$_$E[1;30;40m{lamb}$S$E[0m'
  184. PSMODULEPATH = 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules'
  185. PUBLIC = 'C:\\Users\\Public'
  186. QUERY_STRING = ''
  187. REMOTE_ADDR = '127.0.0.1'
  188. REMOTE_HOST = ''
  189. REQUEST_METHOD = 'POST'
  190. RUN_MAIN = 'true'
  191. SCRIPT_NAME = ''
  192. SERVER_NAME = 'MAJEWSKI2.merixstudio.local'
  193. SERVER_PORT = '8000'
  194. SERVER_PROTOCOL = 'HTTP/1.1'
  195. SERVER_SOFTWARE = 'WSGIServer/0.2'
  196. SVN_SSH = 'C:\\\\Program Files\\\\Git\\\\bin\\\\ssh.exe'
  197. SYSTEMDRIVE = 'C:'
  198. SYSTEMROOT = 'C:\\WINDOWS'
  199. TEMP = 'C:\\Users\\M32F7~1.MAJ\\AppData\\Local\\Temp'
  200. TERM = 'cygwin'
  201. TMP = 'C:\\Users\\M32F7~1.MAJ\\AppData\\Local\\Temp'
  202. USERDNSDOMAIN = 'MERIXSTUDIO.LOCAL'
  203. USERDOMAIN = 'MERIXSTUDIO'
  204. USERDOMAIN_ROAMINGPROFILE = 'MERIXSTUDIO'
  205. USERNAME = 'm.majewski'
  206. USERPROFILE = 'C:\\Users\\m.majewski'
  207. VBOX_MSI_INSTALL_PATH = 'C:\\Program Files\\Oracle\\VirtualBox\\'
  208. VS140COMNTOOLS = 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\'
  209. WINDIR = 'C:\\WINDOWS'
  210. __COMPAT_LAYER = 'RunAsAdmin Installer'
  211. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='cp852'>
  212. wsgi.file_wrapper = ''
  213. wsgi.input = <_io.BufferedReader name=2444>
  214. wsgi.multiprocess = False
  215. wsgi.multithread = True
  216. wsgi.run_once = False
  217. wsgi.url_scheme = 'http'
  218. wsgi.version =
  219.  
  220. Settings:
  221. Using settings module bms.settings
  222. ABSOLUTE_URL_OVERRIDES = {}
  223. ADMINS = []
  224. ALLOWED_HOSTS = []
  225. APPEND_SLASH = True
  226. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  227. AUTH_PASSWORD_VALIDATORS = '********************'
  228. AUTH_USER_MODEL = 'auth_ex.User'
  229. BASE_DIR = 'D:\\wamp\\www\\bms'
  230. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  231. CACHE_MIDDLEWARE_ALIAS = 'default'
  232. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  233. CACHE_MIDDLEWARE_SECONDS = 600
  234. CELERYBEAT_SCHEDULE = {'import-translations': {'schedule': <crontab: 0 3 * * * (m/h/d/dM/MY)>, 'task': 'onesky.tasks.import_translations'}}
  235. CELERY_BROKER = 'amqp://guest@rabbitmq/'
  236. CELERY_RESULT_BACKEND = 'redis://redis/'
  237. CSRF_COOKIE_AGE = 31449600
  238. CSRF_COOKIE_DOMAIN = None
  239. CSRF_COOKIE_HTTPONLY = False
  240. CSRF_COOKIE_NAME = 'csrftoken'
  241. CSRF_COOKIE_PATH = '/'
  242. CSRF_COOKIE_SECURE = False
  243. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  244. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  245. CSRF_TRUSTED_ORIGINS = []
  246. CURRENCIES =
  247. DATABASES = {'default': {'NAME': 'bms', 'AUTOCOMMIT': True, 'ATOMIC_REQUESTS': False, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'CONN_MAX_AGE': 0, 'HOST': 'localhost', 'TEST': {'NAME': None, 'COLLATION': None, 'CHARSET': None, 'MIRROR': None}, 'PORT': '5432', 'USER': 'docker', 'OPTIONS': {}, 'TIME_ZONE': None, 'PASSWORD': '********************'}}
  248. DATABASE_ROUTERS = []
  249. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  250. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  251. DATETIME_FORMAT = 'N j, Y, P'
  252. 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']
  253. DATE_FORMAT = 'N j, Y'
  254. 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']
  255. DEBUG = True
  256. DEBUG_PROPAGATE_EXCEPTIONS = False
  257. DEBUG_TOOLBAR_PATCH_SETTINGS = False
  258. DECIMAL_SEPARATOR = '.'
  259. DEFAULT_CHARSET = 'utf-8'
  260. DEFAULT_CONTENT_LANGUAGE = 'en-GB'
  261. DEFAULT_CONTENT_TYPE = 'text/html'
  262. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  263. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  264. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  265. DEFAULT_INDEX_TABLESPACE = ''
  266. DEFAULT_PARTNER_CURRENCY = 'EUR'
  267. DEFAULT_TABLESPACE = ''
  268. DISALLOWED_USER_AGENTS = []
  269. DJANGO_APPS =
  270. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  271. EMAIL_HOST = 'localhost'
  272. EMAIL_HOST_PASSWORD = '********************'
  273. EMAIL_HOST_USER = ''
  274. EMAIL_PORT = 25
  275. EMAIL_SSL_CERTFILE = None
  276. EMAIL_SSL_KEYFILE = '********************'
  277. EMAIL_SUBJECT_PREFIX = '[Django] '
  278. EMAIL_TIMEOUT = None
  279. EMAIL_USE_SSL = False
  280. EMAIL_USE_TLS = False
  281. FILE_CHARSET = 'utf-8'
  282. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  283. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  284. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  285. FILE_UPLOAD_PERMISSIONS = None
  286. FILE_UPLOAD_TEMP_DIR = None
  287. FIRST_DAY_OF_WEEK = 0
  288. FIXTURE_DIRS = []
  289. FORCE_SCRIPT_NAME = None
  290. FORMAT_MODULE_PATH = None
  291. IGNORABLE_404_URLS = []
  292. INSTALLED_APPS =
  293. INTERNAL_IPS = ['127.0.0.1']
  294. LANGUAGES =
  295. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  296. LANGUAGE_CODE = 'fr'
  297. LANGUAGE_COOKIE_AGE = None
  298. LANGUAGE_COOKIE_DOMAIN = None
  299. LANGUAGE_COOKIE_NAME = 'django_language'
  300. LANGUAGE_COOKIE_PATH = '/'
  301. LOCALE_PATHS = 'D:\\wamp\\www\\bms\\locale'
  302. LOCAL_APPS =
  303. LOGGING = {}
  304. LOGGING_CONFIG = 'logging.config.dictConfig'
  305. LOGIN_REDIRECT_URL = '/'
  306. LOGIN_URL = '/login/'
  307. LOGOUT_REDIRECT_URL = None
  308. MANAGERS = []
  309. MEDIA_ROOT = 'D:\\wamp\\www\\bms\\media'
  310. MEDIA_URL = '/media/'
  311. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  312. MIDDLEWARE = None
  313. MIDDLEWARE_CLASSES =
  314. MIGRATION_MODULES = {}
  315. MONTH_DAY_FORMAT = 'F j'
  316. NUMBER_GROUPING = 0
  317. ONESKY_API_KEY = '********************'
  318. ONESKY_API_SECRET = '********************'
  319. ONESKY_LANGUAGE_MAP = {'en-GB': 'en', 'fr-FR': 'fr'}
  320. ONESKY_PROJECT_ID = None
  321. PASSWORD_HASHERS = '********************'
  322. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  323. PREPEND_WWW = False
  324. REST_FRAMEWORK = {'TEST_REQUEST_DEFAULT_FORMAT': 'json', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination'}
  325. ROOT_URLCONF = 'bms.urls'
  326. SECRET_KEY = '********************'
  327. SECRET_SENTINEL = '********************'
  328. SECURE_BROWSER_XSS_FILTER = False
  329. SECURE_CONTENT_TYPE_NOSNIFF = False
  330. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  331. SECURE_HSTS_SECONDS = 0
  332. SECURE_PROXY_SSL_HEADER = None
  333. SECURE_REDIRECT_EXEMPT = []
  334. SECURE_SSL_HOST = None
  335. SECURE_SSL_REDIRECT = False
  336. SERVER_EMAIL = 'root@localhost'
  337. SESSION_CACHE_ALIAS = 'default'
  338. SESSION_COOKIE_AGE = 1209600
  339. SESSION_COOKIE_DOMAIN = None
  340. SESSION_COOKIE_HTTPONLY = True
  341. SESSION_COOKIE_NAME = 'sessionid'
  342. SESSION_COOKIE_PATH = '/'
  343. SESSION_COOKIE_SECURE = False
  344. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  345. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  346. SESSION_FILE_PATH = None
  347. SESSION_SAVE_EVERY_REQUEST = False
  348. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  349. SETTINGS_MODULE = 'bms.settings'
  350. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  351. SHORT_DATE_FORMAT = 'm/d/Y'
  352. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  353. SILENCED_SYSTEM_CHECKS = []
  354. SITE_ID = 1
  355. STATICFILES_DIRS = []
  356. STATICFILES_FINDERS =
  357. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  358. STATIC_ROOT = 'D:\\wamp\\www\\bms\\static'
  359. STATIC_URL = '/static/'
  360. STATS_FILE = 'D:\\wamp\\www\\bms\\frontend\\static\\bundles\\webpack-stats.json'
  361. TEMPLATES = [{'APP_DIRS': True, 'OPTIONS': {'debug': False, 'context_processors': ('django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.request', 'django.template.context_processors.static', 'django.template.context_processors.tz')}, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': []}]
  362. TEMPLATE_DEBUG = False
  363. TEST_NON_SERIALIZED_APPS = []
  364. TEST_OUTPUT_FILE_NAME = 'junit.xml'
  365. TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
  366. THIRD_PARTY_APPS =
  367. THOUSAND_SEPARATOR = ','
  368. TIME_FORMAT = 'P'
  369. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  370. TIME_ZONE = 'Europe/Paris'
  371. USE_ETAGS = False
  372. USE_I18N = True
  373. USE_L10N = True
  374. USE_THOUSAND_SEPARATOR = False
  375. USE_TZ = True
  376. USE_X_FORWARDED_HOST = False
  377. USE_X_FORWARDED_PORT = False
  378. WEBPACK_LOADER = {'DEFAULT': {'CACHE': False, 'POLL_INTERVAL': 0.1, 'BUNDLE_DIR_NAME': 'bundles/', 'STATS_FILE': 'D:\\wamp\\www\\bms\\frontend\\static\\bundles\\webpack-stats.json', 'TIMEOUT': None, 'IGNORE': ['.+\\.hot-update.js', '.+\\.map']}}
  379. WSGI_APPLICATION = 'bms.wsgi.application'
  380. X_FRAME_OPTIONS = 'SAMEORIGIN'
  381. YEAR_MONTH_FORMAT = 'F Y'
  382.  
  383.  
  384. You're seeing this error because you have DEBUG = True in your
  385. Django settings file. Change that to False, and Django will
  386. 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