Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IntegrityError at /api/orders/
- duplicate key value violates unique constraint "orders_order_pkey"
- DETAIL: Key (id)=(22123) already exists.
- Request Method: POST
- Request URL: http://92.243.101.149:8000/api/orders/?format=json
- Django Version: 2.0.7
- Python Executable: /usr/local/bin/python3.6
- Python Version: 3.6.8
- Python Path: ['/code', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/code/project/applications']
- Server time: Пн, 4 Мар 2019 07:16:17 +0000
- Installed Applications:
- ('corsheaders',
- 'django_filters',
- 'django.contrib.auth',
- 'django.contrib.sessions',
- 'django.contrib.contenttypes',
- 'rest_framework',
- 'rest_framework.authtoken',
- 'rest_framework_extensions',
- 'admin_tools',
- 'admin_tools.theming',
- 'admin_tools.menu',
- 'admin_tools.dashboard',
- 'grappelli_modeltranslation',
- 'debug_toolbar',
- 'modeltranslation',
- 'django.contrib.admin',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'rest_auth',
- 'drf_yasg',
- 'core',
- 'utils',
- 'urls',
- 'profiles',
- 'management',
- 'orders',
- 'couriers',
- 'analytics',
- 'clients',
- 'events',
- 'finances')
- Installed Middleware:
- ('debug_toolbar.middleware.DebugToolbarMiddleware',
- 'corsheaders.middleware.CorsMiddleware',
- 'django.middleware.http.ConditionalGetMiddleware',
- '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')
- Traceback:
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
- 85. return self.cursor.execute(sql, params)
- The above exception (duplicate key value violates unique constraint "orders_order_pkey"
- DETAIL: Key (id)=(22123) already exists.
- ) was the direct cause of the following exception:
- File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
- 35. response = get_response(request)
- File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 128. response = self.process_exception_by_middleware(e, request)
- File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
- 54. return view_func(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
- 116. return self.dispatch(request, *args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 495. response = self.handle_exception(exc)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
- 455. self.raise_uncaught_exception(exc)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 492. response = handler(request, *args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in create
- 21. self.perform_create(serializer)
- File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in perform_create
- 26. serializer.save()
- File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in save
- 214. self.instance = self.create(validated_data)
- File "/usr/local/lib/python3.6/contextlib.py" in inner
- 52. return func(*args, **kwds)
- File "/code/project/applications/orders/serializers.py" in create
- 219. contact_phone=validated_data.get('contact_phone')
- File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
- 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in create
- 417. obj.save(force_insert=True, using=self.db)
- File "/code/project/mixins/model_mixins.py" in save
- 40. super(ModelDiffMixin, self).save(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py" in save
- 729. force_update=force_update, update_fields=update_fields)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py" in save_base
- 759. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py" in _save_table
- 842. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/base.py" in _do_insert
- 880. using=using, raw=raw)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
- 82. return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py" in _insert
- 1125. return query.get_compiler(using=using).execute_sql(return_id)
- File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
- 1285. cursor.execute(sql, params)
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
- 100. return super().execute(sql, params)
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
- 68. return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute_with_wrappers
- 77. return executor(sql, params, many, context)
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
- 85. return self.cursor.execute(sql, params)
- File "/usr/local/lib/python3.6/site-packages/django/db/utils.py" in __exit__
- 89. raise dj_exc_value.with_traceback(traceback) from exc_value
- File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
- 85. return self.cursor.execute(sql, params)
- Exception Type: IntegrityError at /api/orders/
- Exception Value: duplicate key value violates unique constraint "orders_order_pkey"
- DETAIL: Key (id)=(22123) already exists.
- Request information:
- USER: AnonymousUser
- GET:
- format = 'json'
- POST: No POST data
- FILES: No FILES data
- COOKIES: No cookie data
- META:
- API_HOST = 'restapi:8000'
- CONTENT_LENGTH = '2607'
- CONTENT_TYPE = 'application/json'
- C_FORCE_ROOT = 'true'
- DISABLE_DEBUG_SESSIONS = 'true'
- DJANGO_SETTINGS_MODULE = 'project.settings'
- GATEWAY_INTERFACE = 'CGI/1.1'
- GPG_KEY = '0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'
- HOME = '/root'
- HOST = 'localhost:3030'
- HOSTNAME = '112603ec4136'
- HTTP_ACCEPT = '*/*'
- HTTP_ACCEPT_ENCODING = 'gzip, deflate'
- HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
- HTTP_CONNECTION = 'keep-alive'
- HTTP_HOST = '92.243.101.149:8000'
- HTTP_ORIGIN = 'http://localhost:3030'
- HTTP_REFERER = 'http://localhost:3030/'
- HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36'
- LANG = 'C.UTF-8'
- LOGO_POSTFIX = 'ptichka'
- PATH = '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
- PATH_INFO = '/api/orders/'
- PGDATA = '/var/lib/postgresql/data/pgdata'
- POSTGRES_DB = 'ptchk-db'
- POSTGRES_HOST = 'ptichka-db'
- POSTGRES_PORT = '5432'
- POSTGRES_USER = 'postgres'
- PROJECT_PATH = ''
- PWD = '/code'
- PYTHONUNBUFFERED = '1'
- PYTHON_PIP_VERSION = '19.0.1'
- PYTHON_VERSION = '3.6.8'
- QUERY_STRING = 'format=json'
- REMOTE_ADDR = '92.243.101.149'
- REMOTE_HOST = ''
- REQUEST_METHOD = 'POST'
- SCRIPT_NAME = ''
- SERVER_NAME = '112603ec4136'
- SERVER_PORT = '8000'
- SERVER_PROTOCOL = 'HTTP/1.1'
- SERVER_SOFTWARE = 'WSGIServer/0.2'
- SHLVL = '1'
- TZ = 'Etc/UTC'
- _ = '/usr/local/bin/python3.6'
- wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
- wsgi.file_wrapper = ''
- wsgi.input = <_io.BufferedReader name=11>
- wsgi.multiprocess = False
- wsgi.multithread = True
- wsgi.run_once = False
- wsgi.url_scheme = 'http'
- wsgi.version = '(1, 0)'
- Settings:
- Using settings module project.settings
- ABSOLUTE_URL_OVERRIDES = {}
- ADMINS = "(('Sergey', 'YOUR@EMAIL.com'),)"
- ADMIN_HEADER_COLOR = '#4CAF50'
- ADMIN_TIME_ZONE = 'Europe/Moscow'
- ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'project.dashboard.CustomAppIndexDashboard'
- ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
- ADMIN_TOOLS_MENU = 'project.menu.CustomMenu'
- ALLOWED_HOSTS = ['*']
- ANONYMOUS_USER_ID = -1
- API_KEY = '********************'
- APPEND_SLASH = True
- AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
- AUTH_PASSWORD_VALIDATORS = '********************'
- AUTH_USER_MODEL = 'profiles.User'
- AWS_MESSAGING_REGION = 'us-west-1'
- B2P_CASH_OUT_COMMISSION = 10
- B2P_CASH_OUT_COMMISSION_LIMIT = 500
- BASE_DIR = '/code'
- BOWER_COMPONENTS_ROOT = '/code/public/components'
- BOWER_INSTALLED_APPS = "('jquery#2.0.3', 'jquery-ui#~1.10.3', 'd3#3.3.6', 'nvd3#1.1.12-beta')"
- CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
- CACHE_MIDDLEWARE_ALIAS = 'default'
- CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
- CACHE_MIDDLEWARE_SECONDS = 600
- CARD_ENROLL_CALLBACK_URL_FAIL = 'https://ptchk.ru/card_and_phone_callback_url_fail'
- CARD_ENROLL_CALLBACK_URL_SUCCESS = 'https://ptchk.ru/card_and_phone_callback_url_success'
- CASHBOX_NAME = 'Cashbox'
- CITY_CODE = 'msk'
- CLIENTS_REQUIRE_PHONE_CONFIRMATION = True
- CLIENT_CABINET_PURCHASE_REFERER = 'https://ptchk.ru/cabinet'
- CLIENT_PASSWORD_LENGTH = '********************'
- CLOUDPAYMENTS_IP_ADDRESSES = ['130.193.70.192', '185.98.85.109']
- CLOUD_WATCH_GROUP = ''
- CLOUD_WATCH_STREAM = ''
- COMPRESS_ENABLED = True
- COMPRESS_OFFLINE = True
- COMPRESS_OUTPUT_DIR = ''
- COMPRESS_PRECOMPILERS = "(('text/coffeescript', 'coffee --compile --stdio'), ('text/x-sass', 'sass {infile} {outfile}'))"
- CORS_ALLOW_CREDENTIALS = True
- CORS_ALLOW_HEADERS = "('x-requested-with', 'content-type', 'accept', 'origin', 'authorization', 'x-csrftoken')"
- CORS_ALLOW_METHODS = "('GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS')"
- CORS_ORIGIN_ALLOW_ALL = False
- CORS_ORIGIN_WHITELIST = "('localhost:3030', 'local.ptichka:3030', 'order-form.fullstack-development.com', 'order-form-eng.fullstack-development.com', 'ptichka.moscow', '80662049.ngrok.io')"
- COURIERS_REQUIRE_PHONE_CONFIRMATION = True
- CRON_COMMON_LOG_PATH = '/code/logs/cron.log'
- CRON_RESULT_LOG_PATH = '/code/logs/cron-results.log'
- CRON_SQL_FOLDER = 'for_crontab'
- CRON_TASKS_DIR = '/code/tasks'
- CRON_USER = ''
- CSRF_COOKIE_AGE = 31449600
- CSRF_COOKIE_DOMAIN = None
- CSRF_COOKIE_HTTPONLY = False
- CSRF_COOKIE_NAME = 'csrftoken'
- CSRF_COOKIE_PATH = '/'
- CSRF_COOKIE_SECURE = False
- CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
- CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
- CSRF_TRUSTED_ORIGINS = []
- CSRF_USE_SESSIONS = False
- DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'ptchk-db', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': 'ptichka-db', 'PORT': 5432, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
- DATABASE_ROUTERS = []
- DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
- DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
- DATETIME_FORMAT = 'N j, Y, P'
- 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']
- DATE_FORMAT = 'N j, Y'
- 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']
- DEBUG = True
- DEBUG_PROPAGATE_EXCEPTIONS = False
- DECIMAL_SEPARATOR = '.'
- DEFAULT_CHARSET = 'utf-8'
- DEFAULT_CONTENT_TYPE = 'text/html'
- DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
- DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
- DEFAULT_FROM_EMAIL = 'xxx@gmail.com'
- DEFAULT_INDEX_TABLESPACE = ''
- DEFAULT_TABLESPACE = ''
- DEPOSIT_CALLBACK_URL_FAIL = 'http://ptchk.ru/cancel_topup'
- DEPOSIT_CALLBACK_URL_SUCCESS = 'http://ptchk.ru/success_topup'
- DEPOSIT_PAYMENT_GATEWAY = 'best2pay'
- DISALLOWED_USER_AGENTS = []
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
- EMAIL_HOST = 'smtp.gmail.com'
- EMAIL_HOST_PASSWORD = '********************'
- EMAIL_HOST_USER = 'xxx@gmail.com'
- EMAIL_PORT = 587
- EMAIL_SSL_CERTFILE = None
- EMAIL_SSL_KEYFILE = '********************'
- EMAIL_SUBJECT_PREFIX = '[Django] '
- EMAIL_TIMEOUT = None
- EMAIL_USE_LOCALTIME = False
- EMAIL_USE_SSL = False
- EMAIL_USE_TLS = True
- ENABLE_MESSAGING = True
- ERROR_LOG_FILE = '/code/logs/error.log'
- FAVICON = 'admin_favicons/local.ico'
- FILE_CHARSET = 'utf-8'
- FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
- FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
- FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
- FILE_UPLOAD_PERMISSIONS = None
- FILE_UPLOAD_TEMP_DIR = None
- FIRST_DAY_OF_WEEK = 0
- FIXTURE_DIRS = []
- FORCE_SCRIPT_NAME = None
- FORMAT_MODULE_PATH = None
- FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
- FREE_CLIENT_HISTORY_LENGTH = 5
- FRONTEND_DOMAIN = 'http://localhost:3030'
- GOOGLE_SHORTER_URL_API_KEY = '********************'
- IGNORABLE_404_URLS = []
- INFO_LOG_FILE = '/code/logs/info.log'
- INSTALLED_APPS = "('corsheaders', 'django_filters', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.contenttypes', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_extensions', 'admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'grappelli_modeltranslation', 'debug_toolbar', 'modeltranslation', 'django.contrib.admin', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_auth', 'drf_yasg', 'core', 'utils', 'urls', 'profiles', 'management', 'orders', 'couriers', 'analytics', 'clients', 'events', 'finances')"
- INTERNAL_BANK_NAME = 'InternalBank'
- INTERNAL_IPS = []
- IS_STAGING = False
- LANGUAGES = "(('ru-RU', 'Russian-RU'), ('en-US', 'English-US'))"
- LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
- LANGUAGE_CODE = 'ru-RU'
- LANGUAGE_COOKIE_AGE = None
- LANGUAGE_COOKIE_DOMAIN = None
- LANGUAGE_COOKIE_NAME = 'django_language'
- LANGUAGE_COOKIE_PATH = '/'
- LOCALE_FOLDERS = [{'path': '/code', 'args': '--ignore=static --ignore=applications'}, {'path': '/code/applications/core'}]
- LOCALE_PATHS = ['/code', '/code/applications/core']
- LOCAL_APPS = "('core', 'utils', 'urls', 'profiles', 'management', 'orders', 'couriers', 'analytics', 'clients', 'events', 'finances')"
- LOGGING = {'version': 1, 'disable_existing_loggers': True, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}, 'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}}, 'formatters': {'verbose': {'format': '[%(asctime)s]%(levelname)-8s%(name)-30s%(funcName)-20.20s:%(lineno)-4d | %(message)s', 'dateformat': '%H:%M:%S'}}, 'handlers': {'mail_admins': {'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler'}, 'console': {'level': 'DEBUG', 'filters': ['require_debug_true'], 'class': 'logging.StreamHandler', 'formatter': 'verbose'}, 'info.log': {'level': 'INFO', 'formatter': 'verbose', 'class': 'logging.FileHandler', 'filename': '/code/logs/info.log'}, 'error.log': {'level': 'ERROR', 'formatter': 'verbose', 'class': 'logging.FileHandler', 'filename': '/code/logs/error.log'}, 'request.log': {'level': 'WARNING', 'formatter': 'verbose', 'class': 'logging.FileHandler', 'filename': '/code/logs/request.log'}, 'admin_chat_error': {'level': 'ERROR', 'chat': 'errors', 'class': 'utils.logging_handlers.SQSHandler'}}, 'loggers': {'core': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'utils': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'urls': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'profiles': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'management': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'orders': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'couriers': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'analytics': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'clients': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'events': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'finances': {'level': 'INFO', 'handlers': ['console', 'info.log', 'error.log']}, 'django.request': {'level': 'ERROR', 'handlers': ['console', 'mail_admins', 'admin_chat_error', 'request.log']}, 'django.server': {'level': 'INFO', 'handlers': ['console']}}}
- LOGGING_CONFIG = 'logging.config.dictConfig'
- LOGIN_REDIRECT_URL = '/accounts/profile/'
- LOGIN_URL = '/accounts/login/'
- LOGOUT_REDIRECT_URL = None
- LOG_DEL_ERROR_REPORTS = '/code/logs/del_error_reports.log'
- MANAGERS = "(('Sergey', 'YOUR@EMAIL.com'),)"
- MAX_NUMBER_OF_EXTRA_SERVICES = 3
- MEDIA_ROOT = '/code/public/media'
- MEDIA_URL = '/media/'
- MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
- MIDDLEWARE = "('debug_toolbar.middleware.DebugToolbarMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.http.ConditionalGetMiddleware', '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')"
- MIGRATION_MODULES = {}
- MODELTRANSLATION_LANGUAGES = "('ru-RU', 'en-US')"
- MONTH_DAY_FORMAT = 'F j'
- NUMBER_GROUPING = 0
- ORDER_FEEDBACK_FORM_URL = 'https://ptchk.typeform.com/to/NyVeaJ?id='
- ORDER_PAY_CALLBACK_URL_FAIL = 'https://ptchk.ru/order_pay_callback_url_fail'
- ORDER_PAY_CALLBACK_URL_SUCCESS = 'https://ptchk.ru/order_pay_callback_url_success'
- PASSWORD_HASHERS = '********************'
- PASSWORD_RESET_TIMEOUT_DAYS = '********************'
- PAYMENT_GATEWAYS = {'Best2Pay': {'host': 'https://test.best2pay.net', 'login': 'ptichka.moscow', 'sector': '715', 'signature_password': '********************'}, 'Best2PayP2PMarket': {'host': 'https://test.best2pay.net', 'login': 'ptichka.moscow', 'sector': '892', 'signature_password': '********************'}, 'CloudPayments': {'widget_url': 'https://ptchk.ru/payment/'}}
- PAY_OUT_CALLBACK_URL_FAIL = 'https://ptchk.ru/pay_out_callback_url_fail'
- PAY_OUT_CALLBACK_URL_SUCCESS = 'https://ptchk.ru/pay_out_callback_url_success'
- PREPEND_WWW = False
- PROJECT_DOMAIN = 'localhost:3030'
- PROJECT_ROOT = '/code/project'
- PUBLIC_ROOT = '/code/public'
- REQUEST_LOG_FILE = '/code/logs/request.log'
- RESTAPI_DOMAIN = '********************'
- REST_FRAMEWORK = {'DEFAULT_AUTHENTICATION_CLASSES': ('couriers.authentication.MobileAppTokenAuthentication', 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication'), 'DEFAULT_PERMISSION_CLASSES': [], 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 25}
- REST_MAX_PAGE_SIZE_PAGINATION = 100
- REST_MAX_PAGE_SIZE_PAGINATION_FOR_COURIERS = 10000
- REST_MAX_PAGE_SIZE_PAGINATION_FOR_PUBLICATIONS_AND_LOCATIONS = 10000
- ROOT_URLCONF = 'project.urls'
- SAVE_ANALYTICS_DAYS_INTERVAL = 30
- SECRET_KEY = '********************'
- SECURE_BROWSER_XSS_FILTER = False
- SECURE_CONTENT_TYPE_NOSNIFF = False
- SECURE_HSTS_INCLUDE_SUBDOMAINS = False
- SECURE_HSTS_PRELOAD = False
- SECURE_HSTS_SECONDS = 0
- SECURE_PROXY_SSL_HEADER = None
- SECURE_REDIRECT_EXEMPT = []
- SECURE_SSL_HOST = None
- SECURE_SSL_REDIRECT = False
- SELECT2_JS = 'https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'
- SERVER_EMAIL = 'root@localhost'
- SERVICE_NOTIFICATION_TTL = 600
- SESSION_CACHE_ALIAS = 'default'
- SESSION_COOKIE_AGE = 1209600
- SESSION_COOKIE_DOMAIN = None
- SESSION_COOKIE_HTTPONLY = True
- SESSION_COOKIE_NAME = 'sessionid'
- SESSION_COOKIE_PATH = '/'
- SESSION_COOKIE_SECURE = False
- SESSION_ENGINE = 'django.contrib.sessions.backends.db'
- SESSION_EXPIRE_AT_BROWSER_CLOSE = False
- SESSION_FILE_PATH = None
- SESSION_SAVE_EVERY_REQUEST = False
- SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
- SETTINGS_MODULE = 'project.settings'
- SET_PHONE_CALLBACK_URL_FAIL = 'https://ptchk.ru/card_and_phone_callback_url_fail'
- SET_PHONE_CALLBACK_URL_SUCCESS = 'https://ptchk.ru/card_and_phone_callback_url_success'
- SHORT_DATETIME_FORMAT = 'm/d/Y P'
- SHORT_DATE_FORMAT = 'm/d/Y'
- SHORT_URL_DOMAIN = 'm.pthck.ru'
- SHORT_URL_ID_LENGTH = 5
- SHORT_URL_UNIQUE_CHECKING_ATTEMPTS = 5
- SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
- SILENCED_SYSTEM_CHECKS = []
- SNS_TOPIC_NAME = 'ptichka-orders'
- SQL_FILES_BASE_PATH = '/home/ec2-user/sql'
- SQS_QUEUE_NAME = 'rest'
- STACK_FAMILY_PREFIX = 'test'
- STATICFILES_DIRS = ['project/static']
- STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
- STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
- STATIC_ROOT = '/code/public/static'
- STATIC_URL = '/static/'
- SWAGGER_SETTINGS = {'exclude_namespaces': [], 'api_version': '********************', 'api_path': '********************', 'enabled_methods': ['get', 'post', 'put', 'patch', 'delete'], 'api_key': '********************', 'is_authenticated': False, 'is_superuser': True, 'permission_denied_handler': None, 'resource_access_handler': None, 'info': {'contact': 'scher56@gmail.com', 'description': 'Not totally RESTful API.', 'license': 'Apache 2.0', 'licenseUrl': 'http://www.apache.org/licenses/LICENSE-2.0.html', 'title': 'Express Delivery Service API'}, 'doc_expansion': 'none'}
- TELEGRAM_BOT_NAME = 'Moscow_delivery_bot'
- TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/code/templates'], 'APP_DIRS': False, 'OPTIONS': {'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.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'project.context_processors.admin_media'], 'loaders': ['admin_tools.template_loaders.Loader', 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']}}]
- TEST_MIGRATIONS_FILENAME_PATTERN = re.compile('\\d{4}_\\w*.py')
- TEST_MIGRATIONS_STARTING_DIR = './project/applications'
- TEST_MIGRATIONS_TARGET_DIR = 'migrations_for_tests'
- TEST_NON_SERIALIZED_APPS = []
- TEST_RUNNER = 'django.test.runner.DiscoverRunner'
- TEXTBACK_ACCOUNT_ID = 'd94495e0-fcef-492d-bf03-fe459de928bd'
- THIRD_PARTY_APPS = "('corsheaders', 'django_filters', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.contenttypes', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_extensions', 'admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'grappelli_modeltranslation', 'debug_toolbar', 'modeltranslation', 'django.contrib.admin', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_auth', 'drf_yasg')"
- THOUSAND_SEPARATOR = ','
- TILDA_IP_ADDRESS = '95.213.201.187'
- TIME_FORMAT = 'P'
- TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
- TIME_TO_SHOW_CANCELED_ORDERS = 48
- TIME_TO_SHOW_COMPLETED_ORDERS = 48
- TIME_ZONE = 'Etc/UTC'
- TYPE_FORM_NAME_FOR_MODIFY = 'InfoBTP'
- URGENT_1H_COEFFICIENT = 1
- URGENT_2H_COEFFICIENT = 3
- URGENT_2H_MIN_COMMISSION = 20
- URGENT_30M_COEFFICIENT = 1
- URGENT_3H_COEFFICIENT = 4
- URGENT_3H_MIN_COMMISSION = 10
- USE_ETAGS = False
- USE_I18N = True
- USE_L10N = True
- USE_SSL = True
- USE_THOUSAND_SEPARATOR = False
- USE_TZ = True
- USE_X_FORWARDED_HOST = False
- USE_X_FORWARDED_PORT = False
- WEB_SOCKET_ADDRESS = 'http://127.0.0.1:8888/sockets'
- WSGI_APPLICATION = 'project.wsgi.application'
- X_FRAME_OPTIONS = 'SAMEORIGIN'
- YEAR_MONTH_FORMAT = 'F Y'
- You're seeing this error because you have DEBUG = True in your
- Django settings file. Change that to False, and Django will
- display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement