SHARE
TWEET

Untitled

a guest Apr 27th, 2018 434 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IndexError at /api/v0/orders/items/28681379/
  2. list index out of range
  3.  
  4. Request Method: PATCH
  5. Request URL: http://localhost:8000/api/v0/orders/items/28681379/
  6. Django Version: 1.11.6
  7. Python Executable: /usr/local/opt/python/bin/python3.6
  8. Python Version: 3.6.5
  9. Python Path: ['/Users/lfyxan/projects/evapolar-web', '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/Users/lfyxan/projects/evapolar-web/src/django-getpaid', '/Users/lfyxan/projects/evapolar-web', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf', '/usr/local/lib/python3.6/site-packages/odf']
  10. Server time: Fri, 27 Apr 2018 16:48:39 +0000
  11. Installed Applications:
  12. ('nested_admin',
  13.  'suit',
  14.  'django.contrib.admin',
  15.  'django.contrib.admindocs',
  16.  'django.contrib.auth',
  17.  'django.contrib.contenttypes',
  18.  'django.contrib.sessions',
  19.  'django.contrib.messages',
  20.  'django.contrib.staticfiles',
  21.  'django.contrib.humanize',
  22.  'django.contrib.sites',
  23.  'django.contrib.postgres',
  24.  'storages',
  25.  'private_storage',
  26.  'django_extensions',
  27.  'django_mptt_admin',
  28.  'django_pgviews',
  29.  'clear_cache',
  30.  'django_filters',
  31.  'sorl.thumbnail',
  32.  'mptt',
  33.  'smart_selects',
  34.  'cachalot',
  35.  'coverage',
  36.  'cities_light',
  37.  'reversion',
  38.  'rest_framework_filters',
  39.  'import_export',
  40.  'rangefilter',
  41.  'project.apps.geodata',
  42.  'project.apps.shared.ecommerce_channel',
  43.  'project.apps.products',
  44.  'project.apps.site_orders',
  45.  'project.apps.orders',
  46.  'project.apps.logistic',
  47.  'project.apps.content',
  48.  'project.apps.money',
  49.  'project.apps.channels.amazon',
  50.  'project.apps.channels.amazon_seller',
  51.  'project.apps.channels.ebay',
  52.  'project.apps.channels.indiegogo1',
  53.  'project.apps.channels.indiegogo2',
  54.  'project.apps.channels.newegg',
  55.  'project.apps.channels.shopify',
  56.  'project.apps.channels.wordpress',
  57.  'project.apps.channels.utils',
  58.  'project.apps.shared.evapolar_utils.gallery',
  59.  'project.apps.shared.evapolar_utils.base',
  60.  'project.apps.shared.evapolar_utils.documentation',
  61.  'djcelery',
  62.  'rest_framework',
  63.  'rest_framework_swagger',
  64.  'rest_framework.authtoken',
  65.  'paypal.standard.ipn',
  66.  'anymail',
  67.  'versatileimagefield',
  68.  'ckeditor',
  69.  'ckeditor_uploader',
  70.  'corsheaders')
  71. Installed Middleware:
  72. ('whitenoise.middleware.WhiteNoiseMiddleware',
  73.  'django.middleware.security.SecurityMiddleware',
  74.  'django.contrib.sessions.middleware.SessionMiddleware',
  75.  'corsheaders.middleware.CorsMiddleware',
  76.  'django.middleware.common.CommonMiddleware',
  77.  'django.middleware.csrf.CsrfViewMiddleware',
  78.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  79.  'django.contrib.messages.middleware.MessageMiddleware',
  80.  'django.middleware.clickjacking.XFrameOptionsMiddleware')
  81.  
  82.  
  83. Traceback:  
  84.  
  85. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  86.   41.             response = get_response(request)
  87.  
  88. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
  89.   249.             response = self._get_response(request)
  90.  
  91. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  92.   187.                 response = self.process_exception_by_middleware(e, request)
  93.  
  94. File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  95.   185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  96.  
  97. File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  98.   58.         return view_func(*args, **kwargs)
  99.  
  100. File "/usr/local/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  101.   90.             return self.dispatch(request, *args, **kwargs)
  102.  
  103. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  104.   489.             response = self.handle_exception(exc)
  105.  
  106. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  107.   449.             self.raise_uncaught_exception(exc)
  108.  
  109. File "/usr/local/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  110.   486.             response = handler(request, *args, **kwargs)
  111.  
  112. File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in partial_update
  113.   84.         return self.update(request, *args, **kwargs)
  114.  
  115. File "/Users/lfyxan/projects/evapolar-web/project/apps/site_orders/views.py" in update
  116.   30.             self.perform_update(serializer)
  117.  
  118. File "/usr/local/lib/python3.6/site-packages/rest_framework/mixins.py" in perform_update
  119.   80.         serializer.save()
  120.  
  121. File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in save
  122.   210.             self.instance = self.update(self.instance, validated_data)
  123.  
  124. File "/Users/lfyxan/projects/evapolar-web/project/apps/site_orders/serializers.py" in update
  125.   156.                      self).update(instance, validated_data)
  126.  
  127. File "/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py" in update
  128.   955.         instance.save()
  129.  
  130. File "/Users/lfyxan/projects/evapolar-web/project/apps/site_orders/models.py" in save
  131.   406.         self._new_order_processing()
  132.  
  133. File "/Users/lfyxan/projects/evapolar-web/project/apps/site_orders/models.py" in _new_order_processing
  134.   490.                     self._payment_processing()
  135.  
  136. File "/Users/lfyxan/projects/evapolar-web/project/apps/site_orders/models.py" in _payment_processing
  137.   580.                         self.payment_id)
  138.  
  139. File "/Users/lfyxan/projects/evapolar-web/project/apps/money/payment_providers.py" in check_payment_captured
  140.   416.             payment_dict['transactions'][0]['related_resources'][0]['sale'][
  141.  
  142. Exception Type: IndexError at /api/v0/orders/items/28681379/
  143. Exception Value: list index out of range
  144. Request information:
  145. USER: AnonymousUser
  146.  
  147. GET: No GET data
  148.  
  149. POST: No POST data
  150.  
  151. FILES: No FILES data
  152.  
  153. COOKIES: No cookie data
  154.  
  155. META:
  156. Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.ZLOomqJu9E/Render'
  157. BOLD = '\x1b[1m'
  158. CELERY_LOADER = 'djcelery.loaders.DjangoLoader'
  159. COMMAND_MODE = 'unix2003'
  160. CONTENT_LENGTH = '283'
  161. CONTENT_TYPE = 'application/json;charset=UTF-8'
  162. DISPLAY = '/private/tmp/com.apple.launchd.BeDCh85TTK/org.macosforge.xquartz:0'
  163. DJANGO_SETTINGS_MODULE = 'project.settings'
  164. GATEWAY_INTERFACE = 'CGI/1.1'
  165. GREEN = '\x1b[38;5;64m'
  166. HOME = '/Users/lfyxan'
  167. HTTP_ACCEPT = 'application/json, text/plain, */*'
  168. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  169. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,it;q=0.6,de;q=0.5'
  170. HTTP_CACHE_CONTROL = 'no-cache'
  171. HTTP_CONNECTION = 'keep-alive'
  172. HTTP_HOST = 'localhost:8000'
  173. HTTP_ORIGIN = 'http://localhost:3000'
  174. HTTP_PRAGMA = 'no-cache'
  175. HTTP_REFERER = 'http://localhost:3000/checkout/'
  176. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'
  177. LANG = 'en_GB.UTF-8'
  178. LOGNAME = 'lfyxan'
  179. LS_COLORS = 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=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:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
  180. MAGENTA = '\x1b[38;5;125m'
  181. ORANGE = '\x1b[38;5;166m'
  182. PATH = '/Users/lfyxan/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/lfyxan/bin'
  183. PATH_INFO = '/api/v0/orders/items/28681379/'
  184. PS1 = '\\[\x1b[1m\x1b[38;5;125m\\]\\u \\[\x1b[38;5;244m\\]at \\[\x1b[38;5;166m\\]\\h \\[\x1b[38;5;244m\\]in \\[\x1b[38;5;64m\\]\\w\\[\x1b[38;5;244m\\]$([[ -n $(git branch 2> /dev/null) ]] && echo " on ")\\[\x1b[38;5;61m\\]$(parse_git_branch)\\[\x1b[38;5;244m\\]\\n$ \\[\x1b(B\x1b[m\\]'
  185. PS2 = '\\[\x1b[38;5;166m\\]→ \\[\x1b(B\x1b[m\\]'
  186. PURPLE = '\x1b[38;5;61m'
  187. PWD = '/Users/lfyxan/projects/evapolar-web'
  188. QUERY_STRING = ''
  189. REMOTE_ADDR = '127.0.0.1'
  190. REMOTE_HOST = ''
  191. REQUEST_METHOD = 'PATCH'
  192. RESET = '\x1b(B\x1b[m'
  193. RUN_MAIN = 'true'
  194. SCRIPT_NAME = ''
  195. SECURITYSESSIONID = '186a7'
  196. SERVER_NAME = '1.0.0.127.in-addr.arpa'
  197. SERVER_PORT = '8000'
  198. SERVER_PROTOCOL = 'HTTP/1.1'
  199. SERVER_SOFTWARE = 'WSGIServer/0.2'
  200. SHELL = '/bin/bash'
  201. SHLVL = '2'
  202. SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.uL8G47o6fj/Listeners'
  203. TERM = 'xterm-256color'
  204. TERM_PROGRAM = 'vscode'
  205. TERM_PROGRAM_VERSION = '1.22.2'
  206. TMPDIR = '/var/folders/9f/d7sdf4c977n1zqxspp4qmk6m0000gn/T/'
  207. TZ = 'UTC'
  208. USER = 'lfyxan'
  209. VSCODE_IPC_HOOK = '/Users/lfyxan/Library/Application Support/Code/1.22.2-main.sock'
  210. VSCODE_NLS_CONFIG = '{"locale":"en-gb","availableLanguages":{}}'
  211. VSCODE_NODE_CACHED_DATA_DIR_682 = '/Users/lfyxan/Library/Application Support/Code/CachedData/3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9'
  212. VSCODE_PID = '682'
  213. WHITE = '\x1b[38;5;244m'
  214. XPC_FLAGS = '0x0'
  215. XPC_SERVICE_NAME = '0'
  216. _ = '/usr/local/bin/python3'
  217. __CF_USER_TEXT_ENCODING = '0x1F5:0x502:0x0'
  218. __PYVENV_LAUNCHER__ = '/usr/local/Cellar/python/3.6.5/bin/python3.6'
  219. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  220. wsgi.file_wrapper = ''
  221. wsgi.input = <_io.BufferedReader name=8>
  222. wsgi.multiprocess = False
  223. wsgi.multithread = True
  224. wsgi.run_once = False
  225. wsgi.url_scheme = 'http'
  226. wsgi.version = '(1, 0)'
  227.  
  228. Settings:
  229. Using settings module project.settings
  230. ABSOLUTE_URL_OVERRIDES = {}
  231. ADMINS = []
  232. ALLOWED_HOSTS = ['*']
  233. ANYMAIL = {'MAILGUN_API_KEY': '********************', 'MAILGUN_SENDER_DOMAIN': 'mail.evapolar.me'}
  234. APPEND_SLASH = True
  235. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  236. AUTH_PASSWORD_VALIDATORS = '********************'
  237. AUTH_USER_MODEL = 'auth.User'
  238. BASE_DIR = '/Users/lfyxan/projects/evapolar-web/project'
  239. BROKER_CONNECTION_TIMEOUT = 30
  240. BROKER_HEARTBEAT = None
  241. BROKER_POOL_LIMIT = 1
  242. BROKER_URL = 'redis://localhost:6379/0'
  243. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'localhost:11211'}}
  244. CACHE_MIDDLEWARE_ALIAS = 'default'
  245. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  246. CACHE_MIDDLEWARE_SECONDS = 600
  247. CELERYBEAT_SCHEDULE = {'remove_old_unpayed_orders': {'task': 'project.apps.site_orders.tasks.remove_old_unpayed_orders', 'schedule': datetime.timedelta(1)}}
  248. CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
  249. CELERY_ACCEPT_CONTENT = ['application/json']
  250. CELERY_ALWAYS_EAGER = True
  251. CELERY_EVENT_QUEUE_EXPIRES = 60
  252. CELERY_RESULT_BACKEND = 'rpc'
  253. CELERY_RESULT_SERIALIZER = 'json'
  254. CELERY_SEND_EVENTS = True
  255. CELERY_TASK_SERIALIZER = 'json'
  256. CITIES_LIGHT_APP_NAME = 'geodata'
  257. CKEDITOR_CONFIGS = {'default': {'toolbar': 'full', 'height': 300, 'width': 'auto'}}
  258. CKEDITOR_UPLOAD_PATH = '/Users/lfyxan/projects/evapolar-web/project/media/public/ckeditor'
  259. CORS_ORIGIN_ALLOW_ALL = True
  260. CSRF_COOKIE_AGE = 31449600
  261. CSRF_COOKIE_DOMAIN = None
  262. CSRF_COOKIE_HTTPONLY = False
  263. CSRF_COOKIE_NAME = 'csrftoken'
  264. CSRF_COOKIE_PATH = '/'
  265. CSRF_COOKIE_SECURE = False
  266. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  267. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  268. CSRF_TRUSTED_ORIGINS = []
  269. CSRF_USE_SESSIONS = False
  270. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'ecommerce_service', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': 'localhost', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  271. DATABASE_ROUTERS = []
  272. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  273. DATA_UPLOAD_MAX_NUMBER_FIELDS = 2000
  274. DATETIME_FORMAT = 'N j, Y, P'
  275. 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']
  276. DATE_FORMAT = 'N j, Y'
  277. 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']
  278. DEBUG = True
  279. DEBUG_PROPAGATE_EXCEPTIONS = False
  280. DEBUG_TOOLBAR = None
  281. DECIMAL_SEPARATOR = '.'
  282. DEFAULT_CHARSET = 'utf-8'
  283. DEFAULT_CONTENT_TYPE = 'text/html'
  284. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  285. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  286. DEFAULT_FROM_EMAIL = 'mail@evapolar.com'
  287. DEFAULT_INDEX_TABLESPACE = ''
  288. DEFAULT_TABLESPACE = ''
  289. DEVELOPMENT = 'development'
  290. DISALLOWED_USER_AGENTS = []
  291. DOCUMENTATION_ACCESS_FUNCTION = <function <lambda> at 0x10a2fcd08>
  292. DOCUMENTATION_ROOT = '/Users/lfyxan/projects/evapolar-web/project/sphinx_docs'
  293. EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
  294. EMAIL_HOST = 'localhost'
  295. EMAIL_HOST_PASSWORD = '********************'
  296. EMAIL_HOST_USER = ''
  297. EMAIL_PORT = 25
  298. EMAIL_SSL_CERTFILE = None
  299. EMAIL_SSL_KEYFILE = '********************'
  300. EMAIL_SUBJECT_PREFIX = '[Django] '
  301. EMAIL_TIMEOUT = None
  302. EMAIL_USE_LOCALTIME = False
  303. EMAIL_USE_SSL = False
  304. EMAIL_USE_TLS = False
  305. EMAIL_VALIDATOR_URL = 'https://api.mailgun.net/v3/address/validate'
  306. ES_URL = None
  307. EXTERNAL_FILE_SRORAGE = False
  308. FILE_CHARSET = 'utf-8'
  309. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  310. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  311. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  312. FILE_UPLOAD_PERMISSIONS = None
  313. FILE_UPLOAD_TEMP_DIR = None
  314. FIRST_DAY_OF_WEEK = 0
  315. FIXTURE_DIRS = []
  316. FORCE_SCRIPT_NAME = None
  317. FORMAT_MODULE_PATH = None
  318. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  319. HOSTNAME = False
  320. IGNORABLE_404_URLS = []
  321. IMPORT_EXPORT_CSV_DELIMITER = ';'
  322. INSTALLED_APPS = "('nested_admin', 'suit', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sites', 'django.contrib.postgres', 'storages', 'private_storage', 'django_extensions', 'django_mptt_admin', 'django_pgviews', 'clear_cache', 'django_filters', 'sorl.thumbnail', 'mptt', 'smart_selects', 'cachalot', 'coverage', 'cities_light', 'reversion', 'rest_framework_filters', 'import_export', 'rangefilter', 'project.apps.geodata', 'project.apps.shared.ecommerce_channel', 'project.apps.products', 'project.apps.site_orders', 'project.apps.orders', 'project.apps.logistic', 'project.apps.content', 'project.apps.money', 'project.apps.channels.amazon', 'project.apps.channels.amazon_seller', 'project.apps.channels.ebay', 'project.apps.channels.indiegogo1', 'project.apps.channels.indiegogo2', 'project.apps.channels.newegg', 'project.apps.channels.shopify', 'project.apps.channels.wordpress', 'project.apps.channels.utils', 'project.apps.shared.evapolar_utils.gallery', 'project.apps.shared.evapolar_utils.base', 'project.apps.shared.evapolar_utils.documentation', 'djcelery', 'rest_framework', 'rest_framework_swagger', 'rest_framework.authtoken', 'paypal.standard.ipn', 'anymail', 'versatileimagefield', 'ckeditor', 'ckeditor_uploader', 'corsheaders')"
  323. INTERNAL_IPS = []
  324. LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
  325. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  326. LANGUAGE_CODE = 'en'
  327. LANGUAGE_COOKIE_AGE = None
  328. LANGUAGE_COOKIE_DOMAIN = None
  329. LANGUAGE_COOKIE_NAME = 'django_language'
  330. LANGUAGE_COOKIE_PATH = '/'
  331. LOCAL = 'local'
  332. LOCALE_PATHS = []
  333. LOCATION = 'local'
  334. LOGGING = {}
  335. LOGGING_CONFIG = 'logging.config.dictConfig'
  336. LOGIN_REDIRECT_URL = '/accounts/profile/'
  337. LOGIN_URL = '/accounts/login/'
  338. LOGOUT_REDIRECT_URL = None
  339. MAILGUN_API_KEY = '********************'
  340. MAILGUN_PUBLIC_KEY = '********************'
  341. MAILGUN_SENDER_DOMAIN = 'mail.evapolar.me'
  342. MANAGERS = []
  343. MAX_VARIANT_QUANTITY = 20
  344. MEDIA_ROOT = '/Users/lfyxan/projects/evapolar-web/project/media'
  345. MEDIA_URL = '/media/'
  346. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  347. MIDDLEWARE = None
  348. MIDDLEWARE_CLASSES = "('whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware')"
  349. MIGRATION_MODULES = {}
  350. MONTH_DAY_FORMAT = 'F j'
  351. NUMBER_GROUPING = 0
  352. PASSWORD_HASHERS = '********************'
  353. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  354. PAYPAL_CLIENT_ID = 'AaYyvwqL-DeSXBRt4D4SiUrRAYci7aUmugZv08gs1r-fPY67JIsyhjm_-M9miGrHzLzLiHYX830jd2kU'
  355. PAYPAL_CLIENT_SECRET = '********************'
  356. PAYPAL_TEST = True
  357. PREPEND_WWW = False
  358. PRIVATE_STORAGE_AUTH_FUNCTION = 'private_storage.permissions.allow_staff'
  359. PRIVATE_STORAGE_ROOT = '/Users/lfyxan/projects/evapolar-web/project/media/private'
  360. PRODUCTION = 'production'
  361. PROJECT_NAME = 'ecommerce-service'
  362. PUBLIC_MEDIA_FILES_LOCATION = '/Users/lfyxan/projects/evapolar-web/project/media/public'
  363. REST_FRAMEWORK = {'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend', 'rest_framework.filters.OrderingFilter'), 'UNICODE_JSON': True, 'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.JSONParser',), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer'), 'DEFAULT_MODEL_SERIALIZER_CLASS': 'rest_framework.serializers.HyperlinkedModelSerializer', 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.UserRateThrottle',), 'DEFAULT_THROTTLE_RATES': {'user': '10000/day'}, 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication', 'rest_framework.authentication.TokenAuthentication')}
  364. ROOT_URLCONF = 'project.urls'
  365. SEARCH_BACKENDS = {}
  366. SECRET_KEY = '********************'
  367. SECURE_BROWSER_XSS_FILTER = False
  368. SECURE_CONTENT_TYPE_NOSNIFF = False
  369. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  370. SECURE_HSTS_PRELOAD = False
  371. SECURE_HSTS_SECONDS = 0
  372. SECURE_PROXY_SSL_HEADER = None
  373. SECURE_REDIRECT_EXEMPT = []
  374. SECURE_SSL_HOST = None
  375. SECURE_SSL_REDIRECT = False
  376. SECURIONPAY_PUBLIC_KEY = '********************'
  377. SECURIONPAY_SECRET_KEY = '********************'
  378. SERVER_EMAIL = 'root@localhost'
  379. SESSION_CACHE_ALIAS = 'default'
  380. SESSION_COOKIE_AGE = 5184000
  381. SESSION_COOKIE_DOMAIN = None
  382. SESSION_COOKIE_HTTPONLY = True
  383. SESSION_COOKIE_NAME = 'sid'
  384. SESSION_COOKIE_PATH = '/'
  385. SESSION_COOKIE_SECURE = False
  386. SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
  387. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  388. SESSION_FILE_PATH = None
  389. SESSION_SAVE_EVERY_REQUEST = False
  390. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
  391. SETTINGS_MODULE = 'project.settings'
  392. SHIPWIRE_HOST = 'api.beta.shipwire.com'
  393. SHIPWIRE_PASSWORD = '********************'
  394. SHIPWIRE_USERNAME = 'amarkov@evapolar.com'
  395. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  396. SHORT_DATE_FORMAT = 'm/d/Y'
  397. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  398. SILENCED_SYSTEM_CHECKS = []
  399. SITE_ID = 1
  400. STAGING = 'staging'
  401. STATICFILES_DIRS = "('/Users/lfyxan/projects/evapolar-web/project/../build/static',)"
  402. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  403. STATICFILES_LOCATION = 'static'
  404. STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
  405. STATIC_ROOT = '/Users/lfyxan/projects/evapolar-web/project/static'
  406. STATIC_URL = '/static/'
  407. STRIPE_API_PUBLIC_KEY = '********************'
  408. STRIPE_API_SECRET_KEY = '********************'
  409. SUIT_CONFIG = {'ADMIN_NAME': 'Evapolar', 'MENU': ({'label': 'Site orders', 'app': 'site_orders', 'models': ({'model': 'order', 'label': 'Orders'},)}, {'label': 'Products', 'app': 'products', 'models': [{'model': 'product', 'label': 'Products'}, {'model': 'category', 'label': 'Categories'}, {'model': 'schema', 'label': 'Schemas'}]}, {'label': 'Money', 'models': [{'model': 'money.countryvariantprice', 'label': 'Countries variants prices'}, {'model': 'money.countryvariantpriceuploader', 'label': 'Countries variants prices uploader'}, {'model': 'money.vat', 'label': 'VATs'}, {'model': 'money.invoicetemplate', 'label': 'Invoice templates'}, {'model': 'money.currencyrate', 'label': 'Currencies rates'}, {'model': 'money.discount', 'label': 'Discounts'}, {'model': 'money.paymentprovider', 'label': 'Payment providers'}]}, {'label': 'Logistic', 'models': [{'model': 'logistic.stock', 'label': 'Stocks'}, {'model': 'logistic.shippingservice', 'label': 'Shipping services'}, {'model': 'logistic.shippingrate', 'label': 'Shipping rates'}, {'model': 'logistic.orderautodownloader', 'label': 'Orders autodownloaders'}, {'model': 'logistic.ordersforshippingdownloader', 'label': 'Orders for shipping downloaders'}]}, {'label': 'Content', 'models': [{'model': 'content.region', 'label': 'Contents regions'}, {'model': 'content.category', 'label': 'Contents'}]}, {'label': 'Geodata', 'app': 'geodata', 'models': [{'model': 'country', 'label': 'Countries'}, {'model': 'region', 'label': 'Countries regions'}]}, {'label': 'Authentication and Authorization', 'icon': 'icon-lock', 'models': [{'model': 'auth.user'}, {'model': 'auth.group'}]}, {'label': 'Other', 'models': [{'label': 'Documentation', 'icon': 'icon-question-sign', 'url': '/docs'}]})}
  410. TASK_MANAGER_ALWAYS_EAGER = True
  411. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/Users/lfyxan/projects/evapolar-web/project/templates', '/Users/lfyxan/projects/evapolar-web/project/sphinx_docs/_build', '/Users/lfyxan/projects/evapolar-web/project/../build'], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
  412. TEST_NON_SERIALIZED_APPS = []
  413. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  414. THOUSAND_SEPARATOR = ','
  415. TIME_FORMAT = 'P'
  416. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  417. TIME_ZONE = 'UTC'
  418. USE_ETAGS = False
  419. USE_I18N = True
  420. USE_L10N = True
  421. USE_THOUSAND_SEPARATOR = False
  422. USE_TZ = False
  423. USE_X_FORWARDED_HOST = False
  424. USE_X_FORWARDED_PORT = False
  425. VERSATILEIMAGEFIELD_SETTINGS = {'cache_length': 2592000, 'cache_name': 'versatileimagefield_cache', 'jpeg_resize_quality': 70, 'sized_directory_name': '__sized__', 'filtered_directory_name': '__filtered__', 'placeholder_directory_name': '__placeholder__', 'create_images_on_demand': True, 'image_key_post_processor': '********************', 'progressive_jpeg': False}
  426. WSGI_APPLICATION = 'project.wsgi.application'
  427. X_FRAME_OPTIONS = 'SAMEORIGIN'
  428. YEAR_MONTH_FORMAT = 'F Y'
  429.  
  430.  
  431. You're seeing this error because you have DEBUG = True in your
  432. Django settings file. Change that to False, and Django will
  433. 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