· 5 years ago · Aug 04, 2020, 02:16 PM
1ZeroDivisionError at /api/v1/statistic/show/112/report/
2division by zero
3
4Request Method: GET
5Request URL: http://206.81.26.103/api/v1/statistic/show/112/report/?as=pdf
6Django Version: 2.1
7Python Executable: /home/impulse/impulse/impulse/server/.venv/bin/python3.7
8Python Version: 3.7.3
9Python Path: ['/home/impulse/impulse/impulse/server', '/home/impulse/impulse/impulse/server', '/home/impulse/impulse/impulse/server/.venv/bin', '/home/impulse/impulse/impulse/server/.venv/lib/python37.zip', '/home/impulse/impulse/impulse/server/.venv/lib/python3.7', '/home/impulse/impulse/impulse/server/.venv/lib/python3.7/lib-dynload', '/usr/lib/python3.7', '/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages']
10Server time: Tue, 4 Aug 2020 14:08:25 +0000
11Installed Applications:
12['apps.pages',
13 'apps.staff',
14 'apps.location',
15 'apps.places',
16 'apps.base',
17 'apps.events',
18 'apps.tariffs',
19 'apps.booking',
20 'apps.scan',
21 'apps.statistic',
22 'apps.agents',
23 'apps.logs',
24 'apps.postie',
25 'apps.payments',
26 'apps.vendors',
27 'markup',
28 'admin_interface',
29 'django_jinja',
30 'rosetta',
31 'robots',
32 'des',
33 'ckeditor',
34 'colorfield',
35 'django_filters',
36 'constance',
37 'wkhtmltopdf',
38 'vuejs_translate',
39 'solo',
40 'menus',
41 'seo',
42 'allauth',
43 'allauth.socialaccount',
44 'allauth.socialaccount.providers.facebook',
45 'allauth.socialaccount.providers.twitter',
46 'allauth.socialaccount.providers.google',
47 'allauth.account',
48 'easy_thumbnails',
49 'mptt',
50 'parler',
51 'codemirror2',
52 'rest_framework',
53 'rest_framework.authtoken',
54 'rest_auth',
55 'rest_auth.registration',
56 'rest_framework_swagger',
57 'django_otp',
58 'django_otp.plugins.otp_totp',
59 'django.contrib.admin',
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.sessions',
63 'django.contrib.messages',
64 'django.contrib.staticfiles',
65 'django.contrib.sites']
66Installed Middleware:
67['django.middleware.security.SecurityMiddleware',
68 'apps.booking.contrib.session_middleware.SessionMiddleware',
69 'django.middleware.common.CommonMiddleware',
70 'django.middleware.csrf.CsrfViewMiddleware',
71 'django.contrib.auth.middleware.AuthenticationMiddleware',
72 'apps.booking.contrib.session_middleware.ProviderValidation',
73 'django_otp.middleware.OTPMiddleware',
74 'django.contrib.messages.middleware.MessageMiddleware',
75 'django.middleware.clickjacking.XFrameOptionsMiddleware',
76 'seo.middleware.url_seo_middleware']
77
78
79Traceback:
80
81File "/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
82 34. response = get_response(request)
83
84File "/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
85 126. response = self.process_exception_by_middleware(e, request)
86
87File "/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
88 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
89
90File "/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py" in view
91 68. return self.dispatch(request, *args, **kwargs)
92
93File "/home/impulse/impulse/impulse/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py" in dispatch
94 88. return handler(request, *args, **kwargs)
95
96File "/home/impulse/impulse/impulse/server/apps/statistic/rest/views.py" in get
97 240. context=self.get_context_data(),
98
99File "/home/impulse/impulse/impulse/server/apps/statistic/rest/views.py" in get_context_data
100 214. kwargs.update(get_show_report_context(self.object))
101
102File "/home/impulse/impulse/impulse/server/apps/statistic/contrib/shortcuts.py" in get_show_report_context
103 67. return ShowStatisticContext(show).execute()
104
105File "/home/impulse/impulse/impulse/server/apps/statistic/contrib/report.py" in execute
106 351. "general": self.build_general(),
107
108File "/home/impulse/impulse/impulse/server/apps/statistic/contrib/report.py" in build_general
109 252. ticket_withdrawn_persent = round((self.show_statistic.withdrawn * 100) / ticket_amount)
110
111Exception Type: ZeroDivisionError at /api/v1/statistic/show/112/report/
112Exception Value: division by zero
113Request information:
114USER: pejcevaalina5
115
116GET:
117as = 'pdf'
118
119POST: No POST data
120
121FILES: No FILES data
122
123COOKIES:
124sessionid-1 = '3kgn76yx7hu2fmfa4ml68urllo0c8nhi'
125csrftoken = 'dsyDviM04pMTbbldNJyVrjlGiskckRoToig9vHf07P1YMUnjjQplGwsyOiga82EK'
126sessionid = 'c8hjx99kru1qwesmgt29p3aw89n1amp9'
127sessionid-125 = 'cmqsctt3mjh5f9d4xy42nwfxug4p4u8o'
128
129META:
130CSRF_COOKIE = 'dsyDviM04pMTbbldNJyVrjlGiskckRoToig9vHf07P1YMUnjjQplGwsyOiga82EK'
131HTTP_ACCEPT = 'application/json, text/plain, */*'
132HTTP_ACCEPT_ENCODING = 'gzip, deflate'
133HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6'
134HTTP_CONNECTION = 'close'
135HTTP_COOKIE = 'sessionid-1=3kgn76yx7hu2fmfa4ml68urllo0c8nhi; csrftoken=dsyDviM04pMTbbldNJyVrjlGiskckRoToig9vHf07P1YMUnjjQplGwsyOiga82EK; sessionid=c8hjx99kru1qwesmgt29p3aw89n1amp9; sessionid-125=cmqsctt3mjh5f9d4xy42nwfxug4p4u8o'
136HTTP_HOST = '206.81.26.103'
137HTTP_REFERER = 'http://206.81.26.103/account/account-dashboard/event/87'
138HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36'
139HTTP_X_CSRFTOKEN = 'dsyDviM04pMTbbldNJyVrjlGiskckRoToig9vHf07P1YMUnjjQplGwsyOiga82EK'
140HTTP_X_FORWARDED_FOR = '185.248.130.27'
141HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
142PATH_INFO = '/api/v1/statistic/show/112/report/'
143QUERY_STRING = 'as=pdf'
144RAW_URI = '/api/v1/statistic/show/112/report/?as=pdf'
145REMOTE_ADDR = ''
146REQUEST_METHOD = 'GET'
147SCRIPT_NAME = ''
148SERVER_NAME = '206.81.26.103'
149SERVER_PORT = '80'
150SERVER_PROTOCOL = 'HTTP/1.0'
151SERVER_SOFTWARE = 'gunicorn/19.9.0'
152gunicorn.socket = <gevent._socket3.socket object, fd=10, family=1, type=1, proto=0>
153wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f3c29b057f0>
154wsgi.file_wrapper = ''
155wsgi.input = <gunicorn.http.body.Body object at 0x7f3c294fc080>
156wsgi.multiprocess = True
157wsgi.multithread = True
158wsgi.run_once = False
159wsgi.url_scheme = 'http'
160wsgi.version = '(1, 0)'
161
162Settings:
163Using settings module app.settings
164ABSOLUTE_URL_OVERRIDES = {}
165ACCOUNT_AUTHENTICATION_METHOD = 'email'
166ACCOUNT_EMAIL_REQUIRED = True
167ACCOUNT_USERNAME_REQUIRED = False
168ADMINS = []
169ALLOWED_HOSTS = ['206.81.26.103']
170APPEND_SLASH = True
171AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')"
172AUTH_PASSWORD_VALIDATORS = '********************'
173AUTH_USER_MODEL = 'staff.User'
174BASE_DIR = PosixPath('/home/impulse/impulse/impulse/server/app/settings/django.py')
175BASE_ROOT = PosixPath('/home/impulse/impulse/impulse/server/app')
176CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1', 'OPTIONS': {'PICKLE_VERSION': 4}}, 'staticfiles': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'staticfiles-filehashes'}}
177CACHE_MIDDLEWARE_ALIAS = 'default'
178CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
179CACHE_MIDDLEWARE_SECONDS = 600
180CANNED_CACHE_UPDATE_TASK_LOCATION = 'apps.events.tasks.global_update_cache_task'
181CART_SESSION_NAME = 'cart_id'
182CELERY_ACCEPT_CONTENT = ['json']
183CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
184CELERY_RESULT_SERIALIZER = 'json'
185CELERY_TASK_SERIALIZER = 'json'
186CKEDITOR_CONFIGS = {'default': {'toolbar': 'full', 'width': '100%', 'allowedContent': True}, 'minimum': {'toolbar': 'Custom', 'toolbar_Custom': [['Bold', 'Italic', 'Underline']], 'height': 70, 'width': 500}}
187CONSTANCE_ADDITIONAL_FIELDS = {'integer_field': [<class 'django.forms.fields.IntegerField'>, {}], 'file_field': [<class 'django.forms.fields.FileField'>, {}], 'char_field': [<class 'django.forms.fields.CharField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {'required': False}], 'datetime_field': [<class 'django.forms.fields.DateTimeField'>, {}], 'wyswyg_field': [<class 'ckeditor.fields.RichTextFormField'>, {'config_name': 'minimum'}]}
188CONSTANCE_CONFIG = {'FAVICON': (None, 'PayPal mode', 'image_field'), 'PAYPAL_MODE': ('sandbox', 'PayPal mode', <class 'str'>), 'PAYPAL_SECRET': '********************', 'PAYPAL_CLIENT_ID': ('EBWKjlELKMYqRNQ6sYvFo64FtaRLRR5BdHEESmha49TM', 'PayPal client id', <class 'str'>), 'TICKET_RETURN': (15, 'Return unchecked ticket', 'integer_field'), 'VACATION_BANNER': ('-', 'Vacation banner', 'file_field'), 'VACATION_DATE': (datetime.datetime(2018, 1, 1, 0, 0), 'Vacation date'), 'VACATION_ACTIVE': (False, 'Vacation is active'), 'MAIN_TIMER': (datetime.datetime(2018, 1, 1, 0, 0), 'Main timer'), 'IS_MAIN_TIMER': (False, 'Main timer active'), 'MAIL_TICKET_MAIN_TEXT': ('some text {{order}} more text', '\n {{order}} - set order id,\n {{first_name}} - user first name,\n {{last_name}} - user last name\n ', 'wyswyg_field'), 'CODEREADER_KEY': '********************', 'CODEREADER_VERSION': ('-', 'CodeREADEr api version', <class 'str'>), 'CODEREADER_TEST': (True, 'Is CodeREADEr in test', <class 'bool'>), 'CODEREADER_ENABLE': (False, 'Is CodeREADEr enable', <class 'bool'>), 'USA_LOCATION_EXCEL': ('-', 'Excel file for location parser(USA)', 'file_field'), 'USERS_IMPORT': ('-', 'Users import', 'file_field'), 'CANADA_LOCATION': ('-', 'Excel file for location parser(Canada)', 'file_field'), 'ADMIN_EMAIL': ('admin@mail.com', 'Admin email', 'char_field'), 'PHONE': ('-', 'Phone number', 'char_field'), 'YOUTUBE': ('-', 'Youtube link', 'char_field'), 'LINKEDIN': ('-', 'LinkedIn link', 'char_field'), 'TWITTER': ('-', 'Twitter', 'char_field'), 'FACEBOOK': ('-', 'Facebook', 'char_field'), 'LOGO': ('-', 'Logo', 'file_field'), 'LOGO_PNG': ('-', 'Logo', 'file_field'), 'LOGO_MOB_TICKET': ('-', 'Logo', 'file_field'), 'ICON_MOB_TICKET': ('-', 'Mod ticket icon', 'file_field'), 'LOGO_ENVELOPE': ('-', 'Logo', 'file_field'), 'CURRENCY': ('USD', 'Currency', 'char_field'), 'ADDRESS_1': ('-', 'Address 1', 'char_field'), 'ADDRESS_1_WYSWYG': ('-', 'Address wich display in envelope', 'wyswyg_field'), 'ADDRESS_2': ('-', 'Address 2', 'char_field'), 'MAILCHIMP_API_KEY': '********************', 'MAILCHIMP_USERNAME': ('WebCase2018', 'Mailchimp username', 'char_field'), 'MAILCHIMP_EMAIL_LIST_ID': ('bcb1ae05a2', 'Mailchimp email list id', 'char_field'), 'AUTHORIZE_CLIENT_ID': ('-', 'Authorize ligin id', 'char_field'), 'AUTHORIZE_SECRET': '********************', 'AUTHORIZE_URL': ('https://apitest.authorize.net/xml/v1/request.api', 'Authorize payment url', 'char_field'), 'EMAIL_INFO': ('admin@mail.com', 'Admin email address for info messages', 'char_field'), 'EMAIL_OFFICE': ('admin@mail.com', 'Admin email address for office messages', 'char_field'), 'EMAIL_TICKET': ('admin@mail.com', 'Admin email address for tickets messages', 'char_field'), 'CLIENT_TIMEZONE': (0, 'Timezone', <class 'int'>), 'TAX': (12.625, 'Tax', <class 'float'>), 'TINYPNG_KEY': '********************', 'RULES_LINK': ('https://ticketimpulse.com/page/privacy-policy/', 'Rules link', <class 'str'>)}
189CONSTANCE_CONFIG_FIELDSETS = {'General': ('LOGO', 'LOGO_PNG', 'LOGO_MOB_TICKET', 'LOGO_ENVELOPE', 'ICON_MOB_TICKET', 'FAVICON', 'CURRENCY', 'CLIENT_TIMEZONE', 'TAX', 'RULES_LINK'), 'Mail addresses': ('EMAIL_INFO', 'EMAIL_TICKET', 'EMAIL_OFFICE'), 'Contacts': ('ADMIN_EMAIL', 'PHONE', 'ADDRESS_1', 'ADDRESS_2', 'ADDRESS_1_WYSWYG'), 'Social': ('YOUTUBE', 'LINKEDIN', 'TWITTER', 'FACEBOOK'), 'Email order': ('MAIL_TICKET_MAIN_TEXT',), 'Config': ('TICKET_RETURN', 'CANADA_LOCATION', 'USA_LOCATION_EXCEL', 'USERS_IMPORT', 'MAIN_TIMER', 'IS_MAIN_TIMER', 'TINYPNG_KEY'), 'Authorize': ('AUTHORIZE_URL', 'AUTHORIZE_CLIENT_ID', 'AUTHORIZE_SECRET'), 'Paypal': ('PAYPAL_MODE', 'PAYPAL_CLIENT_ID', 'PAYPAL_SECRET'), 'Vacation': ('VACATION_ACTIVE', 'VACATION_BANNER', 'VACATION_DATE'), 'CodeREADEr': ('CODEREADER_VERSION', 'CODEREADER_KEY', 'CODEREADER_TEST', 'CODEREADER_ENABLE'), 'Mailchimp': ('MAILCHIMP_API_KEY', 'MAILCHIMP_USERNAME', 'MAILCHIMP_EMAIL_LIST_ID')}
190CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
191CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
192CSRF_COOKIE_AGE = 31449600
193CSRF_COOKIE_DOMAIN = None
194CSRF_COOKIE_HTTPONLY = False
195CSRF_COOKIE_NAME = 'csrftoken'
196CSRF_COOKIE_PATH = '/'
197CSRF_COOKIE_SAMESITE = 'Lax'
198CSRF_COOKIE_SECURE = False
199CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
200CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
201CSRF_TRUSTED_ORIGINS = []
202CSRF_USE_SESSIONS = False
203DATABASES = {'default': {'NAME': 'impulse_db', 'USER': 'impulse_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}}}
204DATABASE_ROUTERS = []
205DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
206DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
207DATETIME_FORMAT = 'N j, Y, P'
208DATETIME_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']
209DATE_FORMAT = 'N j, Y'
210DATE_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']
211DEBUG = 'True'
212DEBUG_PROPAGATE_EXCEPTIONS = False
213DECIMAL_SEPARATOR = '.'
214DEFAULT_CHARSET = 'utf-8'
215DEFAULT_CONTENT_TYPE = 'text/html'
216DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
217DEFAULT_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']
218DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
219DEFAULT_FROM_EMAIL = 'admin@admin.admin'
220DEFAULT_INDEX_TABLESPACE = ''
221DEFAULT_TABLESPACE = ''
222DISALLOWED_USER_AGENTS = []
223EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
224EMAIL_HOST = 'localhost'
225EMAIL_HOST_PASSWORD = '********************'
226EMAIL_HOST_USER = ''
227EMAIL_PORT = 25
228EMAIL_SSL_CERTFILE = None
229EMAIL_SSL_KEYFILE = '********************'
230EMAIL_SUBJECT_PREFIX = '[Django] '
231EMAIL_TIMEOUT = None
232EMAIL_USE_LOCALTIME = False
233EMAIL_USE_SSL = False
234EMAIL_USE_TLS = False
235FILER_IMAGE_ADDITIONAL_CROPS = {'preview': {'size': (136, 76), 'crop': False, 'upscale': True}}
236FILER_IMAGE_MODEL = 'filer.Image'
237FILE_CHARSET = 'utf-8'
238FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
239FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
240FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
241FILE_UPLOAD_PERMISSIONS = None
242FILE_UPLOAD_TEMP_DIR = None
243FIRST_DAY_OF_WEEK = 0
244FIXTURE_DIRS = []
245FORCE_SCRIPT_NAME = None
246FORMAT_MODULE_PATH = None
247FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
248IGNORABLE_404_URLS = []
249INSTALLED_APPS = ['apps.pages', 'apps.staff', 'apps.location', 'apps.places', 'apps.base', 'apps.events', 'apps.tariffs', 'apps.booking', 'apps.scan', 'apps.statistic', 'apps.agents', 'apps.logs', 'apps.postie', 'apps.payments', 'apps.vendors', 'markup', 'admin_interface', 'django_jinja', 'rosetta', 'robots', 'des', 'ckeditor', 'colorfield', 'django_filters', 'constance', 'wkhtmltopdf', 'vuejs_translate', 'solo', 'menus', 'seo', 'allauth', 'allauth.socialaccount', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.google', 'allauth.account', 'easy_thumbnails', 'mptt', 'parler', 'codemirror2', 'rest_framework', 'rest_framework.authtoken', 'rest_auth', 'rest_auth.registration', 'rest_framework_swagger', 'django_otp', 'django_otp.plugins.otp_totp', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites']
250INTERNAL_IPS = []
251LANGUAGES = "(('en', 'English'),)"
252LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
253LANGUAGE_CODE = 'en'
254LANGUAGE_COOKIE_AGE = None
255LANGUAGE_COOKIE_DOMAIN = None
256LANGUAGE_COOKIE_NAME = 'django_language'
257LANGUAGE_COOKIE_PATH = '/'
258LOCALE_PATHS = "(PosixPath('/home/impulse/impulse/impulse/server/app/locale'),)"
259LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/impulse/impulse/impulse/server/app/settings/django.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
260LOGGING_CONFIG = 'logging.config.dictConfig'
261LOGIN_REDIRECT_URL = '/'
262LOGIN_URL = '/accounts/login/'
263LOGOUT_REDIRECT_URL = None
264MANAGERS = []
265MEDIA_ROOT = '/home/impulse/impulse/impulse/server/app/uploads'
266MEDIA_URL = '/uploads/'
267MENU_SETTINGS = {'variations': [{'label': 'Header', 'label_plural': 'Headers', 'position': 'header', 'is_nested': True}]}
268MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
269MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'apps.booking.contrib.session_middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'apps.booking.contrib.session_middleware.ProviderValidation', 'django_otp.middleware.OTPMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'seo.middleware.url_seo_middleware']
270MIGRATION_MODULES = {}
271MONTH_DAY_FORMAT = 'F j'
272NUMBER_GROUPING = 0
273OLD_PASSWORD_FIELD_ENABLED = '********************'
274PASSBOOK_CERTIFICATE = '********************'
275PASSBOOK_KEY = '********************'
276PASSBOOK_WWDR = '********************'
277PASSWORD_HASHERS = '********************'
278PASSWORD_RESET_SERIALIZER = '********************'
279PASSWORD_RESET_TIMEOUT_DAYS = '********************'
280POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets'}
281POSTIE_INSTANT_SEND = True
282POSTIE_PROVIDER_TEMPLATE_CONTEXT = {'order_eticket': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'order_mobticket': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'order_will_call': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'order_class_mail': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'order_usps': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'refund': {'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'invoice': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}}
283POSTIE_TEMPLATE_CHOICES = Choices(('provider_registration', 'provider_registration', 'Provider Registration Confirmation Letter'), ('registration', 'registration', 'Registration Confirmation Letter'), ('password_reset', 'password_reset', 'Password Recovery Email'), ('password_change', 'password_change', 'Password Change Letter'), ('personal_change', 'personal_change', 'Personal Data Change Letter'), ('two_factor_info', 'two_factor_info', 'Email on / off two-factor authentication'), ('two_factor_confirmation', 'two_factor_confirmation', 'Email with code two-factor authentication (e-mail)'), ('new_order', 'new_order', 'A letter to the provider about the new order'), ('order_eticket', 'order_eticket', 'Letter with order form (E-ticket)'), ('order_mobticket', 'order_mobticket', 'Letter with order form (Mobile ticket)'), ('order_will_call', 'order_will_call', 'Letter with order form (Will call)'), ('order_class_mail', 'order_class_mail', 'Letter with order form (1st class mail)'), ('order_usps', 'order_usps', 'Letter with order form (order usps)'), ('refund', 'refund', 'Ticket Refund Letter'), ('tariff', 'tariff', ' Напоминание о том, что на карте нет средств для оплаты тарифа/коммисии '), ('tariff_admin', 'tariff_admin', ' Напоминание о том, что на карте нет средств для оплаты тарифа/коммисии (for admin)'), ('tariff_success', 'tariff_success', ' Оплата тарифа (success)'), ('invoice', 'invoice', ' Письмо с инвойсом (для агента)'), ('ask_charge', 'ask_charge', ' Ask to charge money from show balance (for admin)'), ('usher', 'usher', ' Приглашение для Ushers'), ('report', 'report', ' Отправка отчета (по окончанию шоу)'), ('hall_request', 'hall_request', ' Hall request'), ('card_notify', 'card_notify', ' Card notify'), ('card_notify_admin', 'card_notify_admin', ' Card notify admin'), ('vendor_register', 'vendor_register', ' Register new vendor'), ('vendor_adding', 'vendor_adding', ' Vendor adding to provider'))
284POSTIE_TEMPLATE_CONTEXTS = {'card_notify': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'card_notify_admin': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'ask_charge': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'phone': 'Phone', 'show_title': 'Show title'}, 'registration': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'provider_registration': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'confirmation_link': 'Confirmation link'}, 'password_reset': '********************', 'two_factor_info': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'two_factor_confirmation': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'confirmation_link': 'Confirmation link'}, 'personal_change': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'username': 'Username', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'password_change': '********************', 'order_eticket': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'provider_context': 'Provider context'}, 'order_mobticket': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'provider_context': 'Provider context'}, 'order_will_call': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'provider_context': 'Provider context'}, 'order_class_mail': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'provider_context': 'Provider context'}, 'order_usps': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'provider_context': 'Provider context'}, 'refund': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'invoice': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'comment': 'Comment', 'link': 'Link to invoice'}, 'new_order': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'order_number': 'Order number'}, 'tariff': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'price': 'Price (commission/tariff price)'}, 'tariff_admin': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'price': 'Price (commission/tariff price)'}, 'tariff_success': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'usher': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'login': 'Login', 'password': '********************'}, 'report': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'hall_request': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email', 'city': 'City', 'subdivision': 'Subdivision', 'country': 'Country', 'address_line_1': 'Address line', 'comment': 'Comment', 'image': 'Image'}, 'vendor_register': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}, 'vendor_adding': {'domain': 'Domain', 'main_url': 'Main url', 'config': 'Configs', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Email'}}
285PREPEND_WWW = False
286PROJECT_APPS = ['apps.pages', 'apps.staff', 'apps.location', 'apps.places', 'apps.base', 'apps.events', 'apps.tariffs', 'apps.booking', 'apps.scan', 'apps.statistic', 'apps.agents', 'apps.logs', 'apps.postie', 'apps.payments', 'apps.vendors', 'markup']
287RESERVED_URL_PREFIXES = ['account', 'api', 'admin', 'uploads', 'vuejs-translatei18n', 'user', 'reset', 'paypal', 'tariffs', 'page', 'auth', 'test', 'rosetta', 'google3e72fbe36d05dedc', 'django-des', 'test-order-confirm', 'silk']
288REST_FRAMEWORK = {'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'EXCEPTION_HANDLER': 'shared.rest_handler.custom_exception_handler'}
289ROOT_URLCONF = 'app.urls'
290ROSETTA_CACHE_NAME = 'default'
291ROSETTA_SHOW_AT_ADMIN_PANEL = True
292ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage'
293SECRET_KEY = '********************'
294SECURE_BROWSER_XSS_FILTER = False
295SECURE_CONTENT_TYPE_NOSNIFF = False
296SECURE_HSTS_INCLUDE_SUBDOMAINS = False
297SECURE_HSTS_PRELOAD = False
298SECURE_HSTS_SECONDS = 0
299SECURE_PROXY_SSL_HEADER = None
300SECURE_REDIRECT_EXEMPT = []
301SECURE_SSL_HOST = None
302SECURE_SSL_REDIRECT = False
303SEO_MODELS = ['pages.typical']
304SEO_TEMPLATES = Choices(('post_list', 'post_list', 'Post list'), ('base', 'base', 'Base'), ('typical', 'typical', 'Index'), ('faq', 'faq', 'FAQ'), ('index', 'index', 'Index'), ('galleries', 'galleries', 'Galleries'), ('contacts', 'contacts', 'Contacts'))
305SEO_VIEWS_CHOICES = "(('index', 'Index'),)"
306SERVER_EMAIL = 'root@localhost'
307SESSION_CACHE_ALIAS = 'default'
308SESSION_COOKIE_AGE = 1209600
309SESSION_COOKIE_DOMAIN = None
310SESSION_COOKIE_HTTPONLY = True
311SESSION_COOKIE_NAME = 'sessionid'
312SESSION_COOKIE_PATH = '/'
313SESSION_COOKIE_SAMESITE = 'Lax'
314SESSION_COOKIE_SECURE = False
315SESSION_ENGINE = 'apps.booking.contrib.session_backend'
316SESSION_EXPIRE_AT_BROWSER_CLOSE = False
317SESSION_FILE_PATH = None
318SESSION_SAVE_EVERY_REQUEST = False
319SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
320SETTINGS_MODULE = 'app.settings'
321SHORT_DATETIME_FORMAT = 'm/d/Y P'
322SHORT_DATE_FORMAT = 'm/d/Y'
323SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
324SILENCED_SYSTEM_CHECKS = []
325SITE_ID = 1
326SOCIALACCOUNT_PROVIDERS = {'facebook': {'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile', 'user_friends'], 'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'FIELDS': ['id', 'email', 'name', 'verified', 'locale', 'timezone', 'link', 'gender', 'updated_time'], 'EXCHANGE_TOKEN': '********************', 'LOCALE_FUNC': <function <lambda> at 0x7f3c348ec488>, 'VERIFIED_EMAIL': True, 'VERSION': 'v3.2'}}
327SOCIAL_AUTH_FACEBOOK_KEY = '********************'
328SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
329STATICFILES_DIRS = []
330STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
331STATICFILES_STORAGE = 'shared.static_storage.DjsManifestStaticFilesStorage'
332STATIC_ROOT = '/home/impulse/impulse/impulse/server/app/static'
333STATIC_URL = '/static/'
334TEMPLATES = [{'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': ['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', 'constance.context_processors.config'], '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', 'constance.context_processors.config']}}]
335TEST_NON_SERIALIZED_APPS = []
336TEST_RUNNER = 'django.test.runner.DiscoverRunner'
337THOUSAND_SEPARATOR = ','
338TIME_FORMAT = 'P'
339TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
340TIME_ZONE = 'UTC'
341USE_I18N = True
342USE_L10N = True
343USE_THOUSAND_SEPARATOR = False
344USE_TZ = False
345USE_X_FORWARDED_HOST = False
346USE_X_FORWARDED_PORT = False
347WKHTMLTOPDF_CMD = '/usr/bin/wkhtmltopdf'
348WSGI_APPLICATION = 'app.wsgi.application'
349X_FRAME_OPTIONS = 'SAMEORIGIN'
350YEAR_MONTH_FORMAT = 'F Y'
351
352
353You're seeing this error because you have DEBUG = True in your
354Django settings file. Change that to False, and Django will
355display a standard page generated by the handler for this status code.
356