· 4 years ago · Jul 21, 2021, 11:40 AM
1AttributeError at /api/payments/cards/set-default-card
2'NoneType' object has no attribute 'default_card'
3Request Method: POST
4Request URL: http://back.listacross.com/api/payments/cards/set-default-card
5Django Version: 3.1.3
6Exception Type: AttributeError
7Exception Value:
8'NoneType' object has no attribute 'default_card'
9Exception Location: /home/ubuntu/listacross-backend/./applications/payments/views.py, line 118, in set_default_card
10Python Executable: /home/ubuntu/listacross-backend/env/bin/python3
11Python Version: 3.8.10
12Python Path:
13['/home/ubuntu/listacross-backend',
14 '.',
15 '/home/ubuntu/listacross-backend/env/bin',
16 '/usr/lib/python38.zip',
17 '/usr/lib/python3.8',
18 '/usr/lib/python3.8/lib-dynload',
19 '/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages']
20Server time: Wed, 21 Jul 2021 11:25:01 +0000
21Traceback Switch to copy-and-paste view
22/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner
23 response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
24 return response
25 return inner
26 else:
27 @wraps(get_response)
28 def inner(request):
29 try:
30 response = get_response(request) …
31 except Exception as exc:
32 response = response_for_exception(request, exc)
33 return response
34 return inner
35▶ Local vars
36Variable Value
37exc
38AttributeError("'NoneType' object has no attribute 'default_card'")
39get_response
40<bound method BaseHandler._get_response of <channels.http.AsgiHandler object at 0x7f8a59d75a90>>
41request
42<AsgiRequest: POST '/api/payments/cards/set-default-card'>
43/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/core/handlers/base.py, line 179, in _get_response
44 if response is None:
45 wrapped_callback = self.make_view_atomic(callback)
46 # If it is an asynchronous view, run it in a subthread.
47 if asyncio.iscoroutinefunction(wrapped_callback):
48 wrapped_callback = async_to_sync(wrapped_callback)
49 try:
50 response = wrapped_callback(request, *callback_args, **callback_kwargs) …
51 except Exception as e:
52 response = self.process_exception_by_middleware(e, request)
53 if response is None:
54 raise
55 # Complain if the view returned None (a common error).
56▶ Local vars
57Variable Value
58callback
59<function PaymentCardViewSet at 0x7f8a581b3670>
60callback_args
61()
62callback_kwargs
63{}
64middleware_method
65<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f8a59d9a610>>
66request
67<AsgiRequest: POST '/api/payments/cards/set-default-card'>
68response
69None
70self
71<channels.http.AsgiHandler object at 0x7f8a59d75a90>
72wrapped_callback
73<function PaymentCardViewSet at 0x7f8a581b3670>
74/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/views/decorators/csrf.py, line 54, in wrapped_view
75def csrf_exempt(view_func):
76 """Mark a view function as being exempt from the CSRF view protection."""
77 # view_func.csrf_exempt = True would also work, but decorators are nicer
78 # if they don't have side effects, so return a new function.
79 def wrapped_view(*args, **kwargs):
80 return view_func(*args, **kwargs) …
81 wrapped_view.csrf_exempt = True
82 return wraps(view_func)(wrapped_view)
83▶ Local vars
84Variable Value
85args
86(<AsgiRequest: POST '/api/payments/cards/set-default-card'>,)
87kwargs
88{}
89view_func
90<function PaymentCardViewSet at 0x7f8a581b35e0>
91/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/viewsets.py, line 125, in view
92 setattr(self, method, handler)
93 self.request = request
94 self.args = args
95 self.kwargs = kwargs
96 # And continue as usual
97 return self.dispatch(request, *args, **kwargs) …
98 # take name and docstring from class
99 update_wrapper(view, cls, updated=())
100 # and possible attributes set by decorators
101 # like csrf_exempt from dispatch
102▶ Local vars
103Variable Value
104action
105'set_default_card'
106actions
107{'post': 'set_default_card'}
108args
109()
110cls
111<class 'applications.payments.views.PaymentCardViewSet'>
112handler
113<bound method PaymentCardViewSet.set_default_card of <applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>>
114initkwargs
115{'basename': 'payment-card',
116 'description': None,
117 'detail': False,
118 'name': 'Set default card'}
119kwargs
120{}
121method
122'post'
123request
124<AsgiRequest: POST '/api/payments/cards/set-default-card'>
125self
126<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
127/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py, line 509, in dispatch
128 self.http_method_not_allowed)
129 else:
130 handler = self.http_method_not_allowed
131 response = handler(request, *args, **kwargs)
132 except Exception as exc:
133 response = self.handle_exception(exc) …
134 self.response = self.finalize_response(request, response, *args, **kwargs)
135 return self.response
136 def options(self, request, *args, **kwargs):
137 """
138▶ Local vars
139Variable Value
140args
141()
142handler
143<bound method PaymentCardViewSet.set_default_card of <applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>>
144kwargs
145{}
146request
147<rest_framework.request.Request: POST '/api/payments/cards/set-default-card'>
148self
149<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
150/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py, line 469, in handle_exception
151 exception_handler = self.get_exception_handler()
152 context = self.get_exception_handler_context()
153 response = exception_handler(exc, context)
154 if response is None:
155 self.raise_uncaught_exception(exc) …
156 response.exception = True
157 return response
158 def raise_uncaught_exception(self, exc):
159 if settings.DEBUG:
160▶ Local vars
161Variable Value
162context
163{'args': (),
164 'kwargs': {},
165 'request': <rest_framework.request.Request: POST '/api/payments/cards/set-default-card'>,
166 'view': <applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>}
167exc
168AttributeError("'NoneType' object has no attribute 'default_card'")
169exception_handler
170<function exception_handler at 0x7f8a59236280>
171response
172None
173self
174<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
175/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py, line 480, in raise_uncaught_exception
176 def raise_uncaught_exception(self, exc):
177 if settings.DEBUG:
178 request = self.request
179 renderer_format = getattr(request.accepted_renderer, 'format')
180 use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
181 request.force_plaintext_errors(use_plaintext_traceback)
182 raise exc …
183 # Note: Views are made CSRF exempt from within `as_view` as to prevent
184 # accidental removal of this exemption in cases where `dispatch` needs to
185 # be overridden.
186 def dispatch(self, request, *args, **kwargs):
187 """
188▶ Local vars
189Variable Value
190exc
191AttributeError("'NoneType' object has no attribute 'default_card'")
192renderer_format
193'json'
194request
195<rest_framework.request.Request: POST '/api/payments/cards/set-default-card'>
196self
197<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
198use_plaintext_traceback
199True
200/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py, line 506, in dispatch
201 # Get the appropriate handler method
202 if request.method.lower() in self.http_method_names:
203 handler = getattr(self, request.method.lower(),
204 self.http_method_not_allowed)
205 else:
206 handler = self.http_method_not_allowed
207 response = handler(request, *args, **kwargs) …
208 except Exception as exc:
209 response = self.handle_exception(exc)
210 self.response = self.finalize_response(request, response, *args, **kwargs)
211 return self.response
212▶ Local vars
213Variable Value
214args
215()
216handler
217<bound method PaymentCardViewSet.set_default_card of <applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>>
218kwargs
219{}
220request
221<rest_framework.request.Request: POST '/api/payments/cards/set-default-card'>
222self
223<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
224/home/ubuntu/listacross-backend/./applications/payments/views.py, line 118, in set_default_card
225 'sid': self.request.user.userprofile.stripecustomer.stripe_id,
226 'default_source': payment_card.stripe_card_id
227 }
228 )
229 # previous default card make default=False
230 def_card = self.request.user.userprofile.stripecustomer.cards.all().filter(default_card=True).first()
231 def_card.default_card = False …
232 def_card.save()
233 payment_card.default_card = True
234 payment_card.save()
235 return Response(status=HTTP_200_OK)
236▶ Local vars
237Variable Value
238args
239(<rest_framework.request.Request: POST '/api/payments/cards/set-default-card'>,)
240def_card
241None
242kwargs
243{}
244payment_card
245<PaymentCard: PaymentCard object (300753e4-8430-407e-996d-3cfaa54192d1)>
246self
247<applications.payments.views.PaymentCardViewSet object at 0x7f8a5396ed30>
248Environment:
249
250
251Request Method: POST
252Request URL: http://back.listacross.com/api/payments/cards/set-default-card
253
254Django Version: 3.1.3
255Python Version: 3.8.10
256Installed Applications:
257['django.contrib.admin',
258 'django.contrib.auth',
259 'django.contrib.contenttypes',
260 'django.contrib.sessions',
261 'django.contrib.messages',
262 'django.contrib.staticfiles',
263 'django.contrib.sites',
264 'django_filters',
265 'django_extensions',
266 'corsheaders',
267 'drf_yasg',
268 'rest_framework',
269 'rest_framework.authtoken',
270 'rest_auth',
271 'timezone_field',
272 'django_celery_beat',
273 'applications.userprofile',
274 'applications.subscription',
275 'applications.category',
276 'applications.listing',
277 'applications.channel',
278 'applications.integrations.etsy',
279 'applications.integrations.woocommerce',
280 'applications.integrations.ebay',
281 'applications.integrations.shopify',
282 'applications.integrations.facebook',
283 'applications.payments',
284 'applications.inventory',
285 'applications.inbox',
286 'applications.inbox.etsy_inbox',
287 'applications.inbox.replies',
288 'channels',
289 'channels_redis']
290Installed Middleware:
291['django.middleware.security.SecurityMiddleware',
292 'django.contrib.sessions.middleware.SessionMiddleware',
293 'corsheaders.middleware.CorsMiddleware',
294 'django.middleware.common.CommonMiddleware',
295 'django.middleware.csrf.CsrfViewMiddleware',
296 'django.contrib.auth.middleware.AuthenticationMiddleware',
297 'django.contrib.messages.middleware.MessageMiddleware',
298 'django.middleware.clickjacking.XFrameOptionsMiddleware']
299
300
301
302Traceback (most recent call last):
303 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
304 response = get_response(request)
305 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response
306 response = wrapped_callback(request, *callback_args, **callback_kwargs)
307 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
308 return view_func(*args, **kwargs)
309 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/viewsets.py", line 125, in view
310 return self.dispatch(request, *args, **kwargs)
311 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
312 response = self.handle_exception(exc)
313 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
314 self.raise_uncaught_exception(exc)
315 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
316 raise exc
317 File "/home/ubuntu/listacross-backend/env/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
318 response = handler(request, *args, **kwargs)
319 File "/home/ubuntu/listacross-backend/./applications/payments/views.py", line 118, in set_default_card
320 def_card.default_card = False
321
322Exception Type: AttributeError at /api/payments/cards/set-default-card
323Exception Value: 'NoneType' object has no attribute 'default_card'
324
325
326
327Request information
328USER
329aleksey_naumenko@ukr.net
330
331GET
332No GET data
333
334POST
335No POST data
336
337FILES
338No FILES data
339
340COOKIES
341No cookie data
342
343META
344Variable Value
345CONTENT_LENGTH
346'50'
347CONTENT_TYPE
348'application/json'
349HTTP_ACCEPT
350'*/*'
351HTTP_ACCEPT_ENCODING
352'gzip, deflate, br'
353HTTP_ACCEPT_LANGUAGE
354'uk-UA,uk;q=0.9,ru;q=0.8,en-US;q=0.7,en;q=0.6'
355HTTP_AUTHORIZATION
356'Token 4e908065d81af3db195633fa1eeeff55194c5d30'
357HTTP_CONNECTION
358'close'
359HTTP_HOST
360'back.listacross.com'
361HTTP_ORIGIN
362'http://localhost:3000'
363HTTP_REFERER
364'http://localhost:3000/'
365HTTP_SEC_CH_UA
366'" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"'
367HTTP_SEC_CH_UA_MOBILE
368'?0'
369HTTP_SEC_FETCH_DEST
370'empty'
371HTTP_SEC_FETCH_MODE
372'cors'
373HTTP_SEC_FETCH_SITE
374'cross-site'
375HTTP_USER_AGENT
376('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like '
377 'Gecko) Chrome/91.0.4472.164 Safari/537.36')
378HTTP_X_FORWARDED_FOR
379'91.223.88.214'
380HTTP_X_REAL_IP
381'91.223.88.214'
382PATH_INFO
383'/api/payments/cards/set-default-card'
384QUERY_STRING
385''
386REMOTE_ADDR
387'127.0.0.1'
388REMOTE_HOST
389'127.0.0.1'
390REMOTE_PORT
39138252
392REQUEST_METHOD
393'POST'
394SCRIPT_NAME
395''
396SERVER_NAME
397'127.0.0.1'
398SERVER_PORT
399'8000'
400wsgi.multiprocess
401True
402wsgi.multithread
403True
404Settings
405Using settings module listacross.settings
406Setting Value
407ABSOLUTE_URL_OVERRIDES
408{}
409ADMINS
410(('DevLocalhost', '<admin email>'),)
411ADMIN_EMAIL
412'<admin email>'
413ADMIN_NAME
414'DevLocalhost'
415ALLOWED_HOSTS
416['*']
417APPEND_SLASH
418True
419ASGI_APPLICATION
420'listacross.routing.application'
421AUTHENTICATION_BACKENDS
422['django.contrib.auth.backends.ModelBackend']
423AUTH_PASSWORD_VALIDATORS
424'********************'
425AUTH_USER_MODEL
426'auth.User'
427BASE_DIR
428PosixPath('/home/ubuntu/listacross-backend')
429CACHES
430{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
431CACHE_MIDDLEWARE_ALIAS
432'default'
433CACHE_MIDDLEWARE_KEY_PREFIX
434'********************'
435CACHE_MIDDLEWARE_SECONDS
436600
437CELERY_BEAT_SCHEDULER
438'django_celery_beat.schedulers:DatabaseScheduler'
439CELERY_BROKER_URL
440'redis://127.0.0.1:6379'
441CELERY_RESULT_BACKEND
442'redis://127.0.0.1:6379'
443CHANNEL_IMAGE_FOLDER
444'channel/logo/'
445CHANNEL_LAYERS
446{'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer',
447 'CONFIG': {'hosts': [('127.0.0.1', 6379)]}}}
448CORS_ALLOW_ALL_ORIGINS
449True
450CSRF_COOKIE_AGE
45131449600
452CSRF_COOKIE_DOMAIN
453None
454CSRF_COOKIE_HTTPONLY
455False
456CSRF_COOKIE_NAME
457'csrftoken'
458CSRF_COOKIE_PATH
459'/'
460CSRF_COOKIE_SAMESITE
461'Lax'
462CSRF_COOKIE_SECURE
463False
464CSRF_FAILURE_VIEW
465'django.views.csrf.csrf_failure'
466CSRF_HEADER_NAME
467'HTTP_X_CSRFTOKEN'
468CSRF_TRUSTED_ORIGINS
469[]
470CSRF_USE_SESSIONS
471False
472DATABASES
473{'default': {'ATOMIC_REQUESTS': False,
474 'AUTOCOMMIT': True,
475 'CONN_MAX_AGE': 0,
476 'ENGINE': 'django.db.backends.postgresql_psycopg2',
477 'HOST': 'listacross-dev.cd722jtwycwm.us-east-1.rds.amazonaws.com',
478 'NAME': 'listacross_dev',
479 'OPTIONS': {},
480 'PASSWORD': '********************',
481 'PORT': 5432,
482 'TEST': {'CHARSET': None,
483 'COLLATION': None,
484 'MIGRATE': True,
485 'MIRROR': None,
486 'NAME': None},
487 'TIME_ZONE': None,
488 'USER': 'listacross'}}
489DATABASE_ROUTERS
490[]
491DATA_UPLOAD_MAX_MEMORY_SIZE
4922621440
493DATA_UPLOAD_MAX_NUMBER_FIELDS
4941000
495DATETIME_FORMAT
496'N j, Y, P'
497DATETIME_INPUT_FORMATS
498['%Y-%m-%d %H:%M:%S',
499 '%Y-%m-%d %H:%M:%S.%f',
500 '%Y-%m-%d %H:%M',
501 '%m/%d/%Y %H:%M:%S',
502 '%m/%d/%Y %H:%M:%S.%f',
503 '%m/%d/%Y %H:%M',
504 '%m/%d/%y %H:%M:%S',
505 '%m/%d/%y %H:%M:%S.%f',
506 '%m/%d/%y %H:%M']
507DATE_FORMAT
508'N j, Y'
509DATE_INPUT_FORMATS
510['%Y-%m-%d',
511 '%m/%d/%Y',
512 '%m/%d/%y',
513 '%b %d %Y',
514 '%b %d, %Y',
515 '%d %b %Y',
516 '%d %b, %Y',
517 '%B %d %Y',
518 '%B %d, %Y',
519 '%d %B %Y',
520 '%d %B, %Y']
521DEBUG
522True
523DEBUG_PROPAGATE_EXCEPTIONS
524False
525DECIMAL_SEPARATOR
526'.'
527DEFAULT_CHARSET
528'utf-8'
529DEFAULT_EXCEPTION_REPORTER
530'django.views.debug.ExceptionReporter'
531DEFAULT_EXCEPTION_REPORTER_FILTER
532'django.views.debug.SafeExceptionReporterFilter'
533DEFAULT_FILE_STORAGE
534'django.core.files.storage.FileSystemStorage'
535DEFAULT_FROM_EMAIL
536'<default email>'
537DEFAULT_HASHING_ALGORITHM
538'sha256'
539DEFAULT_INDEX_TABLESPACE
540''
541DEFAULT_TABLESPACE
542''
543DISALLOWED_USER_AGENTS
544[]
545EBAY_APP_ID
546'RomanKra-ListAcro-PRD-dd4a88644-bcfca1d3'
547EBAY_APP_SCOPES
548['https://api.ebay.com/oauth/api_scope',
549 'https://api.ebay.com/oauth/api_scope/sell.inventory',
550 'https://api.ebay.com/oauth/api_scope/sell.marketing',
551 'https://api.ebay.com/oauth/api_scope/sell.account',
552 'https://api.ebay.com/oauth/api_scope/sell.fulfillment']
553EBAY_APP_SECRET
554'********************'
555EBAY_AUTH_URL
556'https://auth.ebay.com/oauth2/authorize'
557EBAY_DEV_ID
558'28137176-b1ac-46d2-804d-4e678ad473fa'
559EBAY_RU_NAME
560'Roman_Krasniak-RomanKra-ListAc-bwbibadau'
561EBAY_TOKEN_URL
562'********************'
563EBAY_URL
564'https://api.ebay.com'
565EMAIL_BACKEND
566'django.core.mail.backends.smtp.EmailBackend'
567EMAIL_HOST
568'smtp.gmail.com'
569EMAIL_HOST_PASSWORD
570'********************'
571EMAIL_HOST_USER
572'andrew.tihiw@gmail.com'
573EMAIL_PORT
574587
575EMAIL_SSL_CERTFILE
576None
577EMAIL_SSL_KEYFILE
578'********************'
579EMAIL_SUBJECT_PREFIX
580'[Django] '
581EMAIL_TIMEOUT
582None
583EMAIL_USE_LOCALTIME
584False
585EMAIL_USE_SSL
586False
587EMAIL_USE_TLS
588True
589ETSY_API_URL
590'********************'
591ETSY_KEYSTRING
592'********************'
593ETSY_PRIVATE_KEY
594'********************'
595ETSY_URL_MESSAGES
596'https://www.etsy.com/messages'
597ETSY_URL_SIGNIN
598'https://www.etsy.com/signin'
599FACEBOOK_DATA_STORAGE
600'/home/ubuntu/listacross-backend/selenium'
601FACEBOOK_SCREENSHOTS_DIR
602'/home/ubuntu/listacross-backend/screenshots_from_fb'
603FILE_UPLOAD_DIRECTORY_PERMISSIONS
604None
605FILE_UPLOAD_HANDLERS
606['django.core.files.uploadhandler.MemoryFileUploadHandler',
607 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
608FILE_UPLOAD_MAX_MEMORY_SIZE
6092621440
610FILE_UPLOAD_PERMISSIONS
611420
612FILE_UPLOAD_TEMP_DIR
613None
614FIRST_DAY_OF_WEEK
6150
616FIXTURE_DIRS
617[]
618FORCE_SCRIPT_NAME
619None
620FORMAT_MODULE_PATH
621None
622FORM_RENDERER
623'django.forms.renderers.DjangoTemplates'
624FRONTEND_HOST
625'https://google.com'
626IGNORABLE_404_URLS
627[]
628IMAGEKIT_CACHEFILE_DIR
629'CACHE/images'
630IMAGEKIT_CACHEFILE_NAMER
631'imagekit.cachefiles.namers.hash'
632IMAGEKIT_CACHE_BACKEND
633'default'
634IMAGEKIT_CACHE_PREFIX
635'imagekit:'
636IMAGEKIT_CACHE_TIMEOUT
637300
638IMAGEKIT_DEFAULT_CACHEFILE_BACKEND
639'imagekit.cachefiles.backends.Simple'
640IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY
641'imagekit.cachefiles.strategies.JustInTime'
642IMAGEKIT_DEFAULT_FILE_STORAGE
643'django.core.files.storage.FileSystemStorage'
644IMAGEKIT_SPEC_CACHEFILE_NAMER
645'imagekit.cachefiles.namers.source_name_as_path'
646IMAGEKIT_USE_MEMCACHED_SAFE_CACHE_KEY
647'********************'
648INSTALLED_APPS
649['django.contrib.admin',
650 'django.contrib.auth',
651 'django.contrib.contenttypes',
652 'django.contrib.sessions',
653 'django.contrib.messages',
654 'django.contrib.staticfiles',
655 'django.contrib.sites',
656 'django_filters',
657 'django_extensions',
658 'corsheaders',
659 'drf_yasg',
660 'rest_framework',
661 'rest_framework.authtoken',
662 'rest_auth',
663 'timezone_field',
664 'django_celery_beat',
665 'applications.userprofile',
666 'applications.subscription',
667 'applications.category',
668 'applications.listing',
669 'applications.channel',
670 'applications.integrations.etsy',
671 'applications.integrations.woocommerce',
672 'applications.integrations.ebay',
673 'applications.integrations.shopify',
674 'applications.integrations.facebook',
675 'applications.payments',
676 'applications.inventory',
677 'applications.inbox',
678 'applications.inbox.etsy_inbox',
679 'applications.inbox.replies',
680 'channels',
681 'channels_redis']
682INTERNAL_IPS
683[]
684LANGUAGES
685[('af', 'Afrikaans'),
686 ('ar', 'Arabic'),
687 ('ar-dz', 'Algerian Arabic'),
688 ('ast', 'Asturian'),
689 ('az', 'Azerbaijani'),
690 ('bg', 'Bulgarian'),
691 ('be', 'Belarusian'),
692 ('bn', 'Bengali'),
693 ('br', 'Breton'),
694 ('bs', 'Bosnian'),
695 ('ca', 'Catalan'),
696 ('cs', 'Czech'),
697 ('cy', 'Welsh'),
698 ('da', 'Danish'),
699 ('de', 'German'),
700 ('dsb', 'Lower Sorbian'),
701 ('el', 'Greek'),
702 ('en', 'English'),
703 ('en-au', 'Australian English'),
704 ('en-gb', 'British English'),
705 ('eo', 'Esperanto'),
706 ('es', 'Spanish'),
707 ('es-ar', 'Argentinian Spanish'),
708 ('es-co', 'Colombian Spanish'),
709 ('es-mx', 'Mexican Spanish'),
710 ('es-ni', 'Nicaraguan Spanish'),
711 ('es-ve', 'Venezuelan Spanish'),
712 ('et', 'Estonian'),
713 ('eu', 'Basque'),
714 ('fa', 'Persian'),
715 ('fi', 'Finnish'),
716 ('fr', 'French'),
717 ('fy', 'Frisian'),
718 ('ga', 'Irish'),
719 ('gd', 'Scottish Gaelic'),
720 ('gl', 'Galician'),
721 ('he', 'Hebrew'),
722 ('hi', 'Hindi'),
723 ('hr', 'Croatian'),
724 ('hsb', 'Upper Sorbian'),
725 ('hu', 'Hungarian'),
726 ('hy', 'Armenian'),
727 ('ia', 'Interlingua'),
728 ('id', 'Indonesian'),
729 ('ig', 'Igbo'),
730 ('io', 'Ido'),
731 ('is', 'Icelandic'),
732 ('it', 'Italian'),
733 ('ja', 'Japanese'),
734 ('ka', 'Georgian'),
735 ('kab', 'Kabyle'),
736 ('kk', 'Kazakh'),
737 ('km', 'Khmer'),
738 ('kn', 'Kannada'),
739 ('ko', 'Korean'),
740 ('ky', 'Kyrgyz'),
741 ('lb', 'Luxembourgish'),
742 ('lt', 'Lithuanian'),
743 ('lv', 'Latvian'),
744 ('mk', 'Macedonian'),
745 ('ml', 'Malayalam'),
746 ('mn', 'Mongolian'),
747 ('mr', 'Marathi'),
748 ('my', 'Burmese'),
749 ('nb', 'Norwegian Bokmål'),
750 ('ne', 'Nepali'),
751 ('nl', 'Dutch'),
752 ('nn', 'Norwegian Nynorsk'),
753 ('os', 'Ossetic'),
754 ('pa', 'Punjabi'),
755 ('pl', 'Polish'),
756 ('pt', 'Portuguese'),
757 ('pt-br', 'Brazilian Portuguese'),
758 ('ro', 'Romanian'),
759 ('ru', 'Russian'),
760 ('sk', 'Slovak'),
761 ('sl', 'Slovenian'),
762 ('sq', 'Albanian'),
763 ('sr', 'Serbian'),
764 ('sr-latn', 'Serbian Latin'),
765 ('sv', 'Swedish'),
766 ('sw', 'Swahili'),
767 ('ta', 'Tamil'),
768 ('te', 'Telugu'),
769 ('tg', 'Tajik'),
770 ('th', 'Thai'),
771 ('tk', 'Turkmen'),
772 ('tr', 'Turkish'),
773 ('tt', 'Tatar'),
774 ('udm', 'Udmurt'),
775 ('uk', 'Ukrainian'),
776 ('ur', 'Urdu'),
777 ('uz', 'Uzbek'),
778 ('vi', 'Vietnamese'),
779 ('zh-hans', 'Simplified Chinese'),
780 ('zh-hant', 'Traditional Chinese')]
781LANGUAGES_BIDI
782['he', 'ar', 'ar-dz', 'fa', 'ur']
783LANGUAGE_CODE
784'en-us'
785LANGUAGE_COOKIE_AGE
786None
787LANGUAGE_COOKIE_DOMAIN
788None
789LANGUAGE_COOKIE_HTTPONLY
790False
791LANGUAGE_COOKIE_NAME
792'django_language'
793LANGUAGE_COOKIE_PATH
794'/'
795LANGUAGE_COOKIE_SAMESITE
796None
797LANGUAGE_COOKIE_SECURE
798False
799LISTING_BULK_IMPORT_FOLDER
800'listing/bulk_import/'
801LISTING_BULK_IMPORT_ROWS_LIMIT
802255
803LISTING_IMAGES_COLLECTION_FOLDER
804'media/listing/images/collection'
805LISTING_IMAGES_FOLDER
806'media/listing/images/single'
807LOCALE_PATHS
808[]
809LOGGING
810{}
811LOGGING_CONFIG
812'logging.config.dictConfig'
813LOGIN_REDIRECT_URL
814'/accounts/profile/'
815LOGIN_URL
816'/accounts/login/'
817LOGOUT_REDIRECT_URL
818None
819MANAGERS
820[]
821MEDIA_ROOT
822'media'
823MEDIA_URL
824'/media/'
825MESSAGE_STORAGE
826'django.contrib.messages.storage.fallback.FallbackStorage'
827MIDDLEWARE
828['django.middleware.security.SecurityMiddleware',
829 'django.contrib.sessions.middleware.SessionMiddleware',
830 'corsheaders.middleware.CorsMiddleware',
831 'django.middleware.common.CommonMiddleware',
832 'django.middleware.csrf.CsrfViewMiddleware',
833 'django.contrib.auth.middleware.AuthenticationMiddleware',
834 'django.contrib.messages.middleware.MessageMiddleware',
835 'django.middleware.clickjacking.XFrameOptionsMiddleware']
836MIGRATION_MODULES
837{}
838MONTH_DAY_FORMAT
839'F j'
840NGROK_CODE
841'bfd1a16d934b'
842NUMBER_GROUPING
8430
844PASSWORD_HASHERS
845'********************'
846PASSWORD_RESET_TIMEOUT
847'********************'
848PASSWORD_RESET_TIMEOUT_DAYS
849'********************'
850PREPEND_WWW
851False
852RESTFRAMEWORK_PAGE_SIZE
85310
854REST_AUTH_SERIALIZERS
855{'PASSWORD_RESET_SERIALIZER': '********************'}
856REST_FRAMEWORK
857{'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.BasicAuthentication',
858 'rest_framework.authentication.SessionAuthentication',
859 'rest_framework.authentication.TokenAuthentication'],
860 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
861 'PAGE_SIZE': 100}
862ROOT_URLCONF
863'listacross.urls'
864SECRET_KEY
865'********************'
866SECURE_BROWSER_XSS_FILTER
867False
868SECURE_CONTENT_TYPE_NOSNIFF
869True
870SECURE_HSTS_INCLUDE_SUBDOMAINS
871False
872SECURE_HSTS_PRELOAD
873False
874SECURE_HSTS_SECONDS
8750
876SECURE_PROXY_SSL_HEADER
877None
878SECURE_REDIRECT_EXEMPT
879[]
880SECURE_REFERRER_POLICY
881'same-origin'
882SECURE_SSL_HOST
883None
884SECURE_SSL_REDIRECT
885False
886SERVER_EMAIL
887'root@localhost'
888SESSION_CACHE_ALIAS
889'default'
890SESSION_COOKIE_AGE
8911209600
892SESSION_COOKIE_DOMAIN
893None
894SESSION_COOKIE_HTTPONLY
895True
896SESSION_COOKIE_NAME
897'sessionid'
898SESSION_COOKIE_PATH
899'/'
900SESSION_COOKIE_SAMESITE
901'Lax'
902SESSION_COOKIE_SECURE
903False
904SESSION_ENGINE
905'django.contrib.sessions.backends.db'
906SESSION_EXPIRE_AT_BROWSER_CLOSE
907False
908SESSION_FILE_PATH
909None
910SESSION_SAVE_EVERY_REQUEST
911False
912SESSION_SERIALIZER
913'django.contrib.sessions.serializers.JSONSerializer'
914SETTINGS_MODULE
915'listacross.settings'
916SHOPIFY_API_KEY
917'********************'
918SHOPIFY_API_SECRET
919'********************'
920SHOPIFY_API_VERSION
921'********************'
922SHOPIFY_HOST
923''
924SHOPIFY_REDIRECT_URI
925'http://listacross-frontend-dev.s3-website.us-east-2.amazonaws.com/integrations/3aa50ca5-1e0d-46ac-98f6-5bda5611aa05'
926SHOPIFY_SCOPE
927'write_products,read_product_listings,read_collection_listings,write_orders,write_inventory'
928SHORT_DATETIME_FORMAT
929'm/d/Y P'
930SHORT_DATE_FORMAT
931'm/d/Y'
932SIGNING_BACKEND
933'django.core.signing.TimestampSigner'
934SILENCED_SYSTEM_CHECKS
935[]
936SITE_ID
937'1'
938STATICFILES_DIRS
939[]
940STATICFILES_FINDERS
941['django.contrib.staticfiles.finders.FileSystemFinder',
942 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
943STATICFILES_STORAGE
944'django.contrib.staticfiles.storage.StaticFilesStorage'
945STATIC_ROOT
946'static'
947STATIC_URL
948'/static/'
949STRIPE_ENDPOINT_SECRET
950'********************'
951STRIPE_PRODUCT_ID
952''
953STRIPE_PUBLISHABLE_KEY
954'********************'
955STRIPE_SECRET_KEY
956'********************'
957SUBSCRIPTION_FREE_TRIAL
95814
959SUBSCRIPTION_GRACE_PERIOD
9607
961TEMPLATES
962[{'APP_DIRS': True,
963 'BACKEND': 'django.template.backends.django.DjangoTemplates',
964 'DIRS': [PosixPath('/home/ubuntu/listacross-backend/templates')],
965 'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
966 'django.template.context_processors.request',
967 'django.contrib.auth.context_processors.auth',
968 'django.contrib.messages.context_processors.messages']}}]
969TEST_NON_SERIALIZED_APPS
970[]
971TEST_RUNNER
972'django.test.runner.DiscoverRunner'
973THOUSAND_SEPARATOR
974','
975TIME_FORMAT
976'P'
977TIME_INPUT_FORMATS
978['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
979TIME_ZONE
980'UTC'
981TWO_CAPTCHA_APIKEY
982'********************'
983USE_I18N
984True
985USE_L10N
986True
987USE_THOUSAND_SEPARATOR
988False
989USE_TZ
990True
991USE_X_FORWARDED_HOST
992False
993USE_X_FORWARDED_PORT
994False
995WSGI_APPLICATION
996'listacross.wsgi.application'
997X_FRAME_OPTIONS
998'DENY'
999YEAR_MONTH_FORMAT
1000'F Y'
1001You'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.