· 7 years ago · Dec 21, 2018, 07:00 PM
1HTTPError at /api/subscribers/destroy/katuxadmitr@gmail.com/
2401 Client Error: Unauthorized for url: https://esputnik.com/api/v1/emails/unsubscribed/add/
3
4Request Method: DELETE
5Request URL: http://127.0.0.1:9005/api/subscribers/destroy/katuxadmitr@gmail.com/
6Django Version: 2.0.5
7Python Executable: /root/.local/share/virtualenvs/server-IkzWM4EH/bin/python
8Python Version: 3.6.7
9Python Path: ['/home/developer/projects/gash2/server', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python36.zip', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages', '/home/developer/projects/gash2', '/home/developer/projects/gash2/server', '/home/developer/projects/gash2/server/app', '/home/developer/projects/gash2/server', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf', '/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/odf']
10Server time: Пт, 21 Дек 2018 20:56:41 +0200
11Installed Applications:
12['markup',
13 'apps.pages',
14 'apps.categories',
15 'apps.esputnik',
16 'apps.parts',
17 'apps.mattress',
18 'apps.gallery',
19 'apps.products',
20 'apps.accounts',
21 'apps.orders',
22 'apps.gash_care',
23 'apps.encyclopedia',
24 'apps.news',
25 'apps.menu',
26 'apps.like',
27 'apps.subscribers',
28 'constance',
29 'constance.backends.database',
30 'django_filters',
31 'vuejs_translate',
32 'rest_framework',
33 'rest_framework_swagger',
34 'tinymce',
35 'robots',
36 'solo',
37 'import_export',
38 'jet',
39 'postie',
40 'parler',
41 'codemirror2',
42 'ckeditor',
43 'des',
44 'easy_thumbnails',
45 'seo',
46 'modeltranslation',
47 'django_jinja',
48 'social_django',
49 'admin_view_permission',
50 'sorl.thumbnail',
51 'mptt',
52 'django_mptt_admin',
53 'nested_inline',
54 'rosetta',
55 'django.contrib.admin',
56 'django.contrib.auth',
57 'django.contrib.contenttypes',
58 'django.contrib.sessions',
59 'django.contrib.messages',
60 'django.contrib.staticfiles',
61 'django.contrib.sitemaps',
62 'django.contrib.sites']
63Installed Middleware:
64['django.middleware.security.SecurityMiddleware',
65 'django.contrib.sessions.middleware.SessionMiddleware',
66 'django.middleware.common.CommonMiddleware',
67 'django.middleware.csrf.CsrfViewMiddleware',
68 'django.contrib.auth.middleware.AuthenticationMiddleware',
69 'django.contrib.messages.middleware.MessageMiddleware',
70 'django.middleware.clickjacking.XFrameOptionsMiddleware',
71 'django.middleware.locale.LocaleMiddleware']
72
73
74Traceback:
75
76File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
77 35. response = get_response(request)
78
79File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
80 128. response = self.process_exception_by_middleware(e, request)
81
82File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
83 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
84
85File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
86 54. return view_func(*args, **kwargs)
87
88File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/django/views/generic/base.py" in view
89 69. return self.dispatch(request, *args, **kwargs)
90
91File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
92 495. response = self.handle_exception(exc)
93
94File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
95 455. self.raise_uncaught_exception(exc)
96
97File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
98 492. response = handler(request, *args, **kwargs)
99
100File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/rest_framework/generics.py" in delete
101 219. return self.destroy(request, *args, **kwargs)
102
103File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/rest_framework/mixins.py" in destroy
104 93. self.perform_destroy(instance)
105
106File "/home/developer/projects/gash2/server/apps/subscribers/api/views.py" in perform_destroy
107 57. data={'emails': [instance.email, ]}
108
109File "/home/developer/projects/gash2/server/apps/esputnik/esputnik.py" in emails_unsubscribed_add
110 359. data
111
112File "/home/developer/projects/gash2/server/apps/esputnik/base.py" in _send
113 146. response.raise_for_status()
114
115File "/root/.local/share/virtualenvs/server-IkzWM4EH/lib/python3.6/site-packages/requests/models.py" in raise_for_status
116 940. raise HTTPError(http_error_msg, response=self)
117
118Exception Type: HTTPError at /api/subscribers/destroy/katuxadmitr@gmail.com/
119Exception Value: 401 Client Error: Unauthorized for url: https://esputnik.com/api/v1/emails/unsubscribed/add/
120Request information:
121USER: katuxadmitr@gmail.com
122
123GET: No GET data
124
125POST: No POST data
126
127FILES: No FILES data
128
129COOKIES:
130cart = '3c66f74a-0a21-4b0f-ae93-13119f9519d1:1gWOcx:XqjGiWc4T6XMD5tHfJx8K7HnR7o'
131b = 'b'
132viewed_article_1 = 'True'
133csrftoken = 're1MA6eVR18vg9S3J18YfQFGSxentZgJ3MSbsh24GrhYMULKebeq7bkPT9jXQjTV'
134sessionid = 'lcxh390iqiimk0ixbgmvrd4k0b94wus3'
135
136META:
137CONTENT_LENGTH = ''
138CONTENT_TYPE = 'text/plain'
139CSRF_COOKIE = 're1MA6eVR18vg9S3J18YfQFGSxentZgJ3MSbsh24GrhYMULKebeq7bkPT9jXQjTV'
140DEPLOY_IP = '68.183.209.7'
141DEPLOY_KEY = '/home/developer/keys/gash'
142DEPLOY_PROJECT_ALIAS = 'gash'
143DISPLAY = ':0'
144DJANGO_DB_URL = 'psql://postgres:postgres@127.0.0.1:5432/gash1211'
145DJANGO_DEBUG = 'True'
146DJANGO_SECRET_KEY = '0fb27c7bb56795fe8f0353c0eda50f22464910dbf57a1cac'
147DJANGO_SETTINGS_MODULE = 'app.settings'
148GATEWAY_INTERFACE = 'CGI/1.1'
149HOME = '/root'
150HTTP_ACCEPT = 'application/json, text/plain, */*'
151HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
152HTTP_ACCEPT_LANGUAGE = 'ru'
153HTTP_CACHE_CONTROL = 'no-cache'
154HTTP_CONNECTION = 'keep-alive'
155HTTP_COOKIE = 'cart=3c66f74a-0a21-4b0f-ae93-13119f9519d1:1gWOcx:XqjGiWc4T6XMD5tHfJx8K7HnR7o; b=b; viewed_article_1=True; csrftoken=re1MA6eVR18vg9S3J18YfQFGSxentZgJ3MSbsh24GrhYMULKebeq7bkPT9jXQjTV; sessionid=lcxh390iqiimk0ixbgmvrd4k0b94wus3'
156HTTP_HOST = '127.0.0.1:9005'
157HTTP_ORIGIN = 'http://127.0.0.1:9005'
158HTTP_PRAGMA = 'no-cache'
159HTTP_REFERER = 'http://127.0.0.1:9005/accounts/'
160HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3642.0 Safari/537.36'
161HTTP_X_CSRFTOKEN = 're1MA6eVR18vg9S3J18YfQFGSxentZgJ3MSbsh24GrhYMULKebeq7bkPT9jXQjTV'
162HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
163LANG = 'en_US.UTF-8'
164LC_ADDRESS = 'uk_UA.UTF-8'
165LC_IDENTIFICATION = 'uk_UA.UTF-8'
166LC_MEASUREMENT = 'uk_UA.UTF-8'
167LC_MONETARY = 'uk_UA.UTF-8'
168LC_NAME = 'uk_UA.UTF-8'
169LC_NUMERIC = 'uk_UA.UTF-8'
170LC_PAPER = 'uk_UA.UTF-8'
171LC_TELEPHONE = 'uk_UA.UTF-8'
172LC_TIME = 'uk_UA.UTF-8'
173LESSCLOSE = '/usr/bin/lesspipe %s %s'
174LESSOPEN = '| /usr/bin/lesspipe %s'
175LOGNAME = 'root'
176LS_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:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=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:'
177MAIL = '/var/mail/root'
178OLDPWD = '/home/developer/projects/gash2/server/app/deploy'
179PATH = '/root/.local/share/virtualenvs/server-IkzWM4EH/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
180PATH_INFO = '/api/subscribers/destroy/katuxadmitr@gmail.com/'
181PIPENV_ACTIVE = '1'
182PIP_PYTHON_PATH = '/usr/bin/python'
183PIP_SHIMS_BASE_MODULE = 'pipenv.patched.notpip'
184PS1 = '(server) \\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ '
185PWD = '/home/developer/projects/gash2/server'
186PYTHONDONTWRITEBYTECODE = '1'
187QUERY_STRING = ''
188RECAPTCHA_PRIVATE_KEY = '6LcLTWoUAAAAACFLcbcMTs-65trbHd-t1aEQBeL8'
189REMOTE_ADDR = '127.0.0.1'
190REMOTE_HOST = ''
191REQUEST_METHOD = 'DELETE'
192RUN_MAIN = 'true'
193SCRIPT_NAME = ''
194SERVER_NAME = 'developerKate'
195SERVER_PORT = '9005'
196SERVER_PROTOCOL = 'HTTP/1.1'
197SERVER_SOFTWARE = 'WSGIServer/0.2'
198SHELL = '/bin/bash'
199SHLVL = '2'
200SOCIAL_AUTH_FACEBOOK_KEY = '1085697321604650'
201SOCIAL_AUTH_FACEBOOK_SECRET = 'be243f657ac5d0ac6eaa2533d61c2e0a'
202SOCIAL_AUTH_GOOGLE_PLUS_KEY = '1007601019838-gnpqkuogoh2k4optdjfkt0j3u3ufq7oc.apps.googleusercontent.com'
203SOCIAL_AUTH_GOOGLE_PLUS_SECRET = 'pkAv1rGECvUGntIW6sWH7h_O'
204SUDO_COMMAND = '/bin/su'
205SUDO_GID = '1000'
206SUDO_UID = '1000'
207SUDO_USER = 'developer'
208TERM = 'xterm-256color'
209TZ = 'Europe/Kiev'
210USER = 'root'
211USERNAME = 'root'
212VIRTUAL_ENV = '/root/.local/share/virtualenvs/server-IkzWM4EH'
213XAUTHORITY = '/run/user/1000/gdm/Xauthority'
214_ = '/root/.local/share/virtualenvs/server-IkzWM4EH/bin/python'
215wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
216wsgi.file_wrapper = ''
217wsgi.input = <_io.BufferedReader name=7>
218wsgi.multiprocess = False
219wsgi.multithread = True
220wsgi.run_once = False
221wsgi.url_scheme = 'http'
222wsgi.version = '(1, 0)'
223
224Settings:
225Using settings module app.settings
226ABSOLUTE_URL_OVERRIDES = {}
227ADMINS = [('Oleg', 'dk.sky.angel@mail.ru')]
228ADMIN_VIEW_PERMISSION_MODELS = ['accounts.User']
229ALLOWED_HOSTS = ['*']
230APPEND_SLASH = True
231AUTHENTICATION_BACKENDS = "('social_core.backends.google.GoogleOpenId', 'social_core.backends.google.GoogleOAuth2', 'social_core.backends.google.GoogleOAuth', 'social_core.backends.google.GooglePlusAuth', 'social_core.backends.facebook.FacebookOAuth2', 'django.contrib.auth.backends.ModelBackend', 'shared.backends.auth.email.EmailBackend')"
232AUTH_PASSWORD_VALIDATORS = '********************'
233AUTH_USER_MODEL = 'accounts.User'
234BASE_DIR = PosixPath('/home/developer/projects/gash2/server/app/settings/default.py')
235BASE_ROOT = PosixPath('/home/developer/projects/gash2/server/app')
236CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1', 'TIMEOUT': 600, 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient', 'IGNORE_EXCEPTIONS': True, 'CONNECTION_POOL_KWARGS': {'max_connections': 100}, 'MAX_ENTRIES': 100000}, 'KEY_PREFIX': '********************'}}
237CACHE_MIDDLEWARE_ALIAS = 'default'
238CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
239CACHE_MIDDLEWARE_SECONDS = 600
240CELERY_ACCEPT_CONTENT = ['json']
241CELERY_BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 3600}
242CELERY_BROKER_URL = 'redis://localhost:6379/0'
243CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
244CELERY_RESULT_SERIALIZER = 'json'
245CELERY_TASK_SERIALIZER = 'json'
246CONSTANCE_ADDITIONAL_FIELDS = {'email_field': [<class 'django.forms.fields.EmailField'>, {}], 'rich': [<class 'django.forms.fields.CharField'>, {'widget': <tinymce.widgets.TinyMCE object at 0x7f6e7ef0af98>}], 'image_field': [<class 'django.forms.fields.ImageField'>, {}]}
247CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
248CONSTANCE_CONFIG = {'ADMIN_EMAIL': ('admin@admin.com', 'Ð-мейл админиÑтратора', 'email_field'), 'DUMMY_USER': ('dummy@dummy.com', 'Dummy user', 'email_field'), 'PHONES': ('+380502222222, +380501111111', 'Телефоны, разделенные запÑтой', <class 'str'>), 'WARRANTY_SERVICE_YEARS': (5, 'Срок гарантийного обÑÐ»ÑƒÐ¶Ð¸Ð²Ð°Ð½Ð¸Ñ (в годах)', <class 'int'>), 'PRIVACY_POLICY_URL': ('url', 'СÑылка на политику конфиденциальноÑти', <class 'str'>), 'SITE_RULES_URL': ('url', 'СÑылка на правила Ñайта', <class 'str'>), 'MAIN_PAGE_YOUTUBE': ('url', 'СÑылка на youtube на главной', <class 'str'>), 'DEFAULT_WIDTH': (180, 'Ð¡Ñ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ð°Ñ ÑˆÐ¸Ñ€Ð¸Ð½Ð°', <class 'int'>), 'DEFAULT_LENGTH': (200, 'Ð¡Ñ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ð°Ñ Ð´Ð»Ð¸Ð½Ð°', <class 'int'>), 'STANDARD_WIDTH': (180, 'Ð¡Ñ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ð°Ñ ÑˆÐ¸Ñ€Ð¸Ð½Ð°', <class 'int'>), 'STANDARD_LENGTH': (200, 'Ð¡Ñ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ð°Ñ Ð´Ð»Ð¸Ð½Ð°', <class 'int'>), 'COUNT_OF_LOADERS': (2, 'Кол-во грузчиков', <class 'int'>), 'LOADER_FLOOR_PRICE': (10.0, 'Цена за Ñтаж у грузчика', <class 'float'>), 'LIQPAY_EXPIRED_DAYS': (3, 'Expired days', <class 'int'>), 'LIQPAY_API_VERSION': '********************', 'LIQPAY_CURRENCY': ('UAH', 'Currency', <class 'str'>), 'LIQPAY_SANDBOX_MODE': (True, 'Реквизиты Ð´Ð»Ñ Ð¾Ð¿Ð»Ð°Ñ‚Ñ‹', <class 'bool'>), 'FACEBOOK': ('facebook.com', 'Facebook', <class 'str'>), 'YOUTUBE': ('youtube.com', 'Youtube', <class 'str'>), 'INSTAGRAM': ('instagram.com', 'Instagram', <class 'str'>)}
249CONSTANCE_CONFIG_FIELDSETS = {'General Options': ('ADMIN_EMAIL', 'PHONES', 'WARRANTY_SERVICE_YEARS', 'PRIVACY_POLICY_URL', 'SITE_RULES_URL', 'DUMMY_USER', 'MAIN_PAGE_YOUTUBE'), 'Default Sizes': ('DEFAULT_WIDTH', 'DEFAULT_LENGTH', 'STANDARD_WIDTH', 'STANDARD_LENGTH'), 'Order': ('LOADER_FLOOR_PRICE', 'COUNT_OF_LOADERS'), 'LiqPay Options': ('LIQPAY_API_VERSION', 'LIQPAY_EXPIRED_DAYS', 'LIQPAY_CURRENCY', 'LIQPAY_SANDBOX_MODE'), 'Social Links': ('FACEBOOK', 'YOUTUBE', 'INSTAGRAM')}
250CONSTANCE_DATABASE_CACHE_BACKEND = 'default'
251CSRF_COOKIE_AGE = 31449600
252CSRF_COOKIE_DOMAIN = None
253CSRF_COOKIE_HTTPONLY = False
254CSRF_COOKIE_NAME = 'csrftoken'
255CSRF_COOKIE_PATH = '/'
256CSRF_COOKIE_SECURE = False
257CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
258CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
259CSRF_TRUSTED_ORIGINS = []
260CSRF_USE_SESSIONS = False
261DATABASES = {'default': {'NAME': 'gash1211', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
262DATABASE_ROUTERS = []
263DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
264DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
265DATETIME_FORMAT = 'N j, Y, P'
266DATETIME_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']
267DATE_FORMAT = 'N j, Y'
268DATE_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']
269DEBUG = True
270DEBUG_PROPAGATE_EXCEPTIONS = False
271DECIMAL_SEPARATOR = '.'
272DEFAULT_CHARSET = 'utf-8'
273DEFAULT_CONTENT_TYPE = 'text/html'
274DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
275DEFAULT_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']
276DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
277DEFAULT_FROM_EMAIL = 'admin@admin.admin'
278DEFAULT_INDEX_TABLESPACE = ''
279DEFAULT_TABLESPACE = ''
280DISALLOWED_USER_AGENTS = []
281EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
282EMAIL_CONFIG = {'EMAIL_FILE_PATH': '', 'EMAIL_HOST_USER': None, 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST': '127.0.0.1', 'EMAIL_PORT': None, 'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend'}
283EMAIL_FILE_PATH = ''
284EMAIL_HOST = 'smtp.gmail.com'
285EMAIL_HOST_PASSWORD = '********************'
286EMAIL_HOST_USER = 'mail_user'
287EMAIL_PORT = 587
288EMAIL_SSL_CERTFILE = None
289EMAIL_SSL_KEYFILE = '********************'
290EMAIL_SUBJECT_PREFIX = '[Django] '
291EMAIL_TIMEOUT = None
292EMAIL_USE_LOCALTIME = False
293EMAIL_USE_SSL = False
294EMAIL_USE_TLS = True
295ENABLE_SSL = True
296FILE_CHARSET = 'utf-8'
297FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
298FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
299FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
300FILE_UPLOAD_PERMISSIONS = None
301FILE_UPLOAD_TEMP_DIR = None
302FIRST_DAY_OF_WEEK = 0
303FIXTURE_DIRS = "('/home/developer/projects/gash2/server/app/settings/default.py/apps/parts/fixtures/', '/home/developer/projects/gash2/server/app/settings/default.py/apps/products/fixtures/', '/home/developer/projects/gash2/server/app/settings/default.py/apps/mattress/fixtures/')"
304FORCE_SCRIPT_NAME = None
305FORMAT_MODULE_PATH = None
306FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
307IGNORABLE_404_URLS = []
308INSTALLED_APPS = ['markup', 'apps.pages', 'apps.categories', 'apps.esputnik', 'apps.parts', 'apps.mattress', 'apps.gallery', 'apps.products', 'apps.accounts', 'apps.orders', 'apps.gash_care', 'apps.encyclopedia', 'apps.news', 'apps.menu', 'apps.like', 'apps.subscribers', 'constance', 'constance.backends.database', 'django_filters', 'vuejs_translate', 'rest_framework', 'rest_framework_swagger', 'tinymce', 'robots', 'solo', 'import_export', 'jet', 'postie', 'parler', 'codemirror2', 'ckeditor', 'des', 'easy_thumbnails', 'seo', 'modeltranslation', 'django_jinja', 'social_django', 'admin_view_permission', 'sorl.thumbnail', 'mptt', 'django_mptt_admin', 'nested_inline', 'rosetta', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps', 'django.contrib.sites']
309INSTANT_CREATE_ORDER_ITEMS = True
310INSTANT_PRICES_UPDATE = True
311INTERNAL_IPS = []
312JET_INDEX_DASHBOARD = 'app.dashboard.CustomIndexDashboard'
313LANGUAGES = "(('ru', 'РуÑÑкий'), ('en', 'ÐнглийÑкий'), ('de', 'Deutsch'), ('uk', 'УкраинÑкий'))"
314LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
315LANGUAGE_CODE = 'ru'
316LANGUAGE_COOKIE_AGE = None
317LANGUAGE_COOKIE_DOMAIN = None
318LANGUAGE_COOKIE_NAME = 'django_language'
319LANGUAGE_COOKIE_PATH = '/'
320LIKEABLE_MODELS = ['mattress', 'product']
321LOCALE_PATHS = "(PosixPath('/home/developer/projects/gash2/server/app/locale'),)"
322LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/developer/projects/gash2/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
323LOGGING_CONFIG = 'logging.config.dictConfig'
324LOGIN_REDIRECT_URL = '/accounts/'
325LOGIN_URL = '/accounts/login/'
326LOGOUT_REDIRECT_URL = '/'
327MANAGERS = []
328MEDIA_ROOT = PosixPath('/home/developer/projects/gash2/server/app/uploads')
329MEDIA_URL = '/uploads/'
330MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
331MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.locale.LocaleMiddleware']
332MIGRATION_MODULES = {}
333MODELTRANSLATION_DEFAULT_LANGUAGE = 'ru'
334MODELTRANSLATION_ENABLE_FALLBACKS = True
335MODELTRANSLATION_FALLBACK_LANGUAGES = "('ru',)"
336MODELTRANSLATION_LANGUAGES = "('ru', 'en', 'de', 'uk')"
337MONTH_DAY_FORMAT = 'F j'
338NUMBER_GROUPING = 0
339PARLER_DEFAULT_LANGUAGE_CODE = 'ru'
340PARLER_LANGUAGES = {1: ({'code': 'ru', 'hide_untranslated': False, 'fallbacks': ['ru']}, {'code': 'en', 'hide_untranslated': False, 'fallbacks': ['ru']}, {'code': 'de', 'hide_untranslated': False, 'fallbacks': ['ru']}, {'code': 'uk', 'hide_untranslated': False, 'fallbacks': ['ru']}), 'default': {'hide_untranslated': False, 'code': 'ru', 'fallbacks': ['ru']}}
341PASSWORD_HASHERS = '********************'
342PASSWORD_RESET_TIMEOUT_DAYS = '********************'
343POSTIE_HTML_ADMIN_WIDGET = {'widget': 'TinyMCE', 'widget_module': 'tinymce.widgets', 'attrs': {'attrs': {'cols': 80, 'rows': 10}}}
344POSTIE_INSTANT_SEND = False
345POSTIE_TEMPLATE_CHOICES = Choices(('test', 'test', 'Test'), ('registration', 'registration', 'РегиÑтрациÑ'), ('social_registration', 'social_registration', 'Ð¡Ð¾Ñ†Ð¸Ð°Ð»ÑŒÐ½Ð°Ñ Ñ€ÐµÐ³Ð¸ÑтрациÑ'), ('password_reset', 'password_reset', 'Ð¡Ð±Ñ€Ð¾Ñ Ð¿Ð°Ñ€Ð¾Ð»Ñ'), ('activate_account', 'activate_account', 'ÐÐºÑ‚Ð¸Ð²Ð°Ñ†Ð¸Ñ Ð°ÐºÐºÐ°ÑƒÐ½Ñ‚Ð°'), ('gash_care_first_month', 'gash_care_first_month', 'Gash care напоминание (1й меÑÑц)'), ('gash_care_half_year', 'gash_care_half_year', 'Gash care напоминание (пол года)'), ('order_created', 'order_created', 'Заказ Ñоздан'), ('order_created_admin', 'order_created_admin', 'Заказ Ñоздан (админиÑтратору)'), ('success_liqpay', 'success_liqpay', 'УÑпешный платеж LiqPay'), ('declaration_number', 'declaration_number', 'Ðомер декларации'), ('gluer_report', 'gluer_report', 'Отчет поклейщика пользователю (Ð¼Ð°Ñ‚Ñ€Ð°Ñ Ð³Ð¾Ñ‚Ð¾Ð²)'), ('tailor_report', 'tailor_report', 'Отчет швеи пользователю (чехол готов)'), ('deliverer_report', 'deliverer_report', 'Отчет доÑтавщика пользователю (чехол доÑтавлен)'), ('winter_rotation', 'winter_rotation', 'Winter rotation'), ('fall_rotation', 'fall_rotation', 'Fall rotation'), ('spring_rotation', 'spring_rotation', 'Spring rotation'), ('summer_rotation', 'summer_rotation', 'Summer rotation'), ('callback_request', 'callback_request', 'Обратный звонок'), ('callback_request_to_admin', 'callback_request_to_admin', 'Обратный звонок (админиÑтратору)'), ('individual_appointment', 'individual_appointment', 'ЗапиÑÑŒ на прием'), ('individual_appointment_to_admin', 'individual_appointment_to_admin', 'ЗапиÑÑŒ на прием (админиÑтратору)'), ('individual_mattress_selection_accepted', 'individual_mattress_selection_accepted', 'Индивидуальный подбор матраÑа (ÑÑ‚Ð°Ñ‚ÑƒÑ Ð¿Ñ€Ð¸Ð½ÑÑ‚)'), ('individual_mattress_selection_ready', 'individual_mattress_selection_ready', 'Индивидуальный подбор матраÑа (ÑÑ‚Ð°Ñ‚ÑƒÑ Ð³Ð¾Ñ‚Ð¾Ð²)'), ('individual_mattress_selection_to_admin', 'individual_mattress_selection_to_admin', 'Индивидуальный подбор матраÑа (админиÑтратору)'))
346POSTIE_TEMPLATE_CONTEXTS = {'test': {'test': 'Test value'}, 'registration': {'email': 'User email', 'username': 'User username', 'activation_link': 'Account activation url', 'site_name': 'Website name'}, 'social_registration': {'email': 'User email', 'password': '********************'}, 'password_reset': '********************', 'activate_account': {'user': 'Пользователь', 'activation_link': 'Account activation url'}, 'gash_care_first_month': {'feedback': 'Feedback instance'}, 'gash_care_half_year': {'feedback': 'Feedback instance'}, 'order_created': {'order': 'Order instance'}, 'order_created_admin': {'order': 'Order instance', 'order_admin_url': 'Order admin url'}, 'success_liqpay': {'order': 'Order instance'}, 'declaration_number': {'order': 'Order instance'}, 'gluer_report': {'mattress': 'Mattress size instance'}, 'tailor_report': {'mattress': 'Mattress size instance'}, 'deliverer_report': {'order': 'Mattress size instance'}, 'winter_rotation': {'email': 'User email', 'username': 'User username'}, 'fall_rotation': {'email': 'User email', 'username': 'User username'}, 'spring_rotation': {'email': 'User email', 'username': 'User username'}, 'summer_rotation': {'email': 'User email', 'username': 'User username'}, 'callback_request': {'callback': 'Callback instance'}, 'callback_request_to_admin': {'callback': 'Callback instance', 'url': 'Admin link'}, 'individual_appointment': {'appointment': 'Appointment instance'}, 'individual_appointment_to_admin': {'appointment': 'Appointment instance', 'url': 'Admin link'}, 'individual_mattress_selection_accepted': {'selection': 'Selection instance'}, 'individual_mattress_selection_ready': {'selection': 'Selection instance'}, 'individual_mattress_selection_to_admin': {'selection': 'Selection instance', 'url': 'Admin link'}}
347PREPEND_WWW = False
348PROJECT_APPS = ['markup', 'apps.pages', 'apps.categories', 'apps.esputnik', 'apps.parts', 'apps.mattress', 'apps.gallery', 'apps.products', 'apps.accounts', 'apps.orders', 'apps.gash_care', 'apps.encyclopedia', 'apps.news', 'apps.menu', 'apps.like', 'apps.subscribers']
349REDIS_DB = 11
350REDIS_HOST = 'localhost'
351REDIS_PORT = '6379'
352REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'], 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': 'shared.rest.pagination.MetaResponsePagination', 'PAGE_SIZE': 10}
353ROOT_URLCONF = 'app.urls'
354ROSETTA_CACHE_NAME = 'default'
355ROSETTA_SHOW_AT_ADMIN_PANEL = True
356ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage'
357SECRET_KEY = '********************'
358SECURE_BROWSER_XSS_FILTER = False
359SECURE_CONTENT_TYPE_NOSNIFF = False
360SECURE_HSTS_INCLUDE_SUBDOMAINS = False
361SECURE_HSTS_PRELOAD = False
362SECURE_HSTS_SECONDS = 0
363SECURE_PROXY_SSL_HEADER = None
364SECURE_REDIRECT_EXEMPT = []
365SECURE_SSL_HOST = None
366SECURE_SSL_REDIRECT = False
367SEO_HTML_ADMIN_WIDGET = {'widget': 'TinyMCE', 'widget_path': 'tinymce.widgets'}
368SEO_MODELS = ['page', 'article', 'newsarticle', 'articlecategory', 'newscategory', 'mattresscategory', 'productcategory', 'partcategory', 'mattress', 'product']
369SEO_VIEWS_CHOICES = "(('index', 'Index'), ('catalog', 'Catalog'), ('constructor', 'Constructor'), ('product_catalog', 'Product Catalog'), ('encyclopedia', 'Encyclopedia'), ('news', 'News'), ('contacts', 'Contacts'))"
370SERVER_EMAIL = 'root@localhost'
371SESSION_CACHE_ALIAS = 'default'
372SESSION_COOKIE_AGE = 1209600
373SESSION_COOKIE_DOMAIN = None
374SESSION_COOKIE_HTTPONLY = True
375SESSION_COOKIE_NAME = 'sessionid'
376SESSION_COOKIE_PATH = '/'
377SESSION_COOKIE_SECURE = False
378SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
379SESSION_EXPIRE_AT_BROWSER_CLOSE = False
380SESSION_FILE_PATH = None
381SESSION_SAVE_EVERY_REQUEST = False
382SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
383SETTINGS_MODULE = 'app.settings'
384SHORT_DATETIME_FORMAT = 'm/d/Y P'
385SHORT_DATE_FORMAT = 'm/d/Y'
386SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
387SILENCED_SYSTEM_CHECKS = []
388SITE_ID = 1
389SOCIAL_AUTH_FACEBOOK_KEY = '********************'
390SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id,name,email'}
391SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
392SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
393SOCIAL_AUTH_GOOGLE_PLUS_KEY = '********************'
394SOCIAL_AUTH_GOOGLE_PLUS_SCOPE = ['email']
395SOCIAL_AUTH_GOOGLE_PLUS_SECRET = '********************'
396SOCIAL_AUTH_PIPELINE = "('social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'social_core.pipeline.user.get_username', 'social_core.pipeline.social_auth.associate_by_email', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details', 'apps.accounts.pipelines.set_password', 'apps.accounts.pipelines.get_avatar')"
397SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
398STATICFILES_DIRS = []
399STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
400STATICFILES_STORAGE = 'markup.storages.DjsManifestStaticFilesStorage'
401STATIC_ROOT = PosixPath('/home/developer/projects/gash2/server/app/static')
402STATIC_URL = '/static/'
403TEMPLATES = [{'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', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', '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.i18n', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', 'constance.context_processors.config']}}]
404TEST_NON_SERIALIZED_APPS = []
405TEST_RUNNER = 'django.test.runner.DiscoverRunner'
406THOUSAND_SEPARATOR = ','
407THUMBNAIL_ALIASES = {'': {'desktop': {'size': (985, 590)}, 'tablet': {'size': (610, 350)}, 'phone': {'size': (300, 180)}}, 'encyclopedia': {'desktop': {'size': (985, 590)}, 'tablet': {'size': (610, 350)}, 'phone': {'size': (300, 180)}}}
408TIME_FORMAT = 'P'
409TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
410TIME_ZONE = 'Europe/Kiev'
411TINYMCE_DEFAULT_CONFIG = {'selector': 'textarea', 'theme': 'modern', 'plugins': 'link image imagetools media preview fullscreen codesample contextmenu table code insertdatetime searchreplace textcolor wordcount visualblocks lists', 'toolbar1': 'fontsizeselect bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | table | link image media | codesample |preview code | forecolor backcolor', 'contextmenu': 'formats | link image media ', 'menubar': True, 'inline': False, 'statusbar': True, 'height': 500, 'width': 'auto', 'wordcount_cleanregex': '/ [0 - 9.(),;:!? %