401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/request_token
Request Method: | GET |
---|---|
Request URL: | https://magpile.com/oauth/login/twitter/?next=/psss-christchurch/jun-84/ |
Django Version: | 1.11.2 |
Exception Type: | HTTPError |
Exception Value: | 401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/request_token |
Exception Location: | /home/magpile/apps/magpile/env/lib64/python3.6/site-packages/requests/models.py in raise_for_status, line 940 |
Python Executable: | /home/magpile/apps/magpile/env/bin/uwsgi |
Python Version: | 3.6.8 |
Python Path: | ['/home/magpile/apps/magpile/magpile/', '.', '', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/home/magpile/apps/magpile/env/lib64/python3.6/site-packages', '/home/magpile/apps/magpile/env/lib/python3.6/site-packages'] |
Server time: | Fri, 29 Mar 2024 14:30:53 +0000 |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | HTTPError('401 Client Error: Unauthorized for url: https://api.twitter.com/oauth/request_token',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278>> |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function auth at 0x7f6ec77da268> |
callback_args | () |
callback_kwargs | {'backend': 'twitter'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=social_django.views.auth, args=(), kwargs={'backend': 'twitter'}, url_name=begin, app_names=['social'], namespaces=['social']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function auth at 0x7f6ec77da268> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function auth at 0x7f6ec77da268> |
callback_args | () |
callback_kwargs | {'backend': 'twitter'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f6ec816b198>> |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
resolver | <RegexURLResolver 'magpile.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=social_django.views.auth, args=(), kwargs={'backend': 'twitter'}, url_name=begin, app_names=['social'], namespaces=['social']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6ec9347278> |
wrapped_callback | <function auth at 0x7f6ec77da268> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/django/views/decorators/cache.py
in _wrapped_view_func
def never_cache(view_func):
"""
Decorator that adds headers to a response so that it will
never be cached.
"""
@wraps(view_func, assigned=available_attrs(view_func))
def _wrapped_view_func(request, *args, **kwargs):
response = view_func(request, *args, **kwargs)...
add_never_cache_headers(response)
return response
return _wrapped_view_func
Variable | Value |
---|---|
args | () |
kwargs | {'backend': 'twitter'} |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
view_func | <function auth at 0x7f6ec777f730> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_django/utils.py
in wrapper
request.strategy = request.social_strategy
try:
request.backend = load_backend(request.social_strategy,
backend, uri)
except MissingBackend:
raise Http404('Backend not found')
return func(request, backend, *args, **kwargs)...
return wrapper
return decorator
Variable | Value |
---|---|
args | () |
backend | 'twitter' |
func | <function auth at 0x7f6ec777f6a8> |
kwargs | {} |
load_strategy | <function load_strategy at 0x7f6ec77dad90> |
redirect_uri | 'social:complete' |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
uri | '/oauth/complete/twitter/' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_django/views.py
in auth
# platform default session lifetime.
DEFAULT_SESSION_TIMEOUT = None
@never_cache
@psa('{0}:complete'.format(NAMESPACE))
def auth(request, backend):
return do_auth(request.backend, redirect_name=REDIRECT_FIELD_NAME)...
@never_cache
@csrf_exempt
@psa('{0}:complete'.format(NAMESPACE))
def complete(request, backend, *args, **kwargs):
Variable | Value |
---|---|
backend | 'twitter' |
request | <WSGIRequest: GET '/oauth/login/twitter/?next=/psss-christchurch/jun-84/'> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/actions.py
in do_auth
allowed_hosts = backend.setting('ALLOWED_REDIRECT_HOSTS', []) + \
[backend.strategy.request_host()]
redirect_uri = sanitize_redirect(allowed_hosts, redirect_uri)
backend.strategy.session_set(
redirect_name,
redirect_uri or backend.setting('LOGIN_REDIRECT_URL')
)
return backend.start()...
def do_complete(backend, login, user=None, redirect_name='next',
*args, **kwargs):
data = backend.strategy.request_data()
Variable | Value |
---|---|
allowed_hosts | ['magpile.com'] |
backend | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
data | <QueryDict: {'next': ['/psss-christchurch/jun-84/']}> |
redirect_name | 'next' |
redirect_uri | '/psss-christchurch/jun-84/' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/backends/base.py
in start
def setting(self, name, default=None):
"""Return setting value from strategy"""
return self.strategy.setting(name, default=default, backend=self)
def start(self):
if self.uses_redirect():
return self.strategy.redirect(self.auth_url())...
else:
return self.strategy.html(self.auth_html())
def complete(self, *args, **kwargs):
return self.auth_complete(*args, **kwargs)
Variable | Value |
---|---|
self | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/backends/oauth.py
in auth_url
REQUEST_TOKEN_METHOD = 'GET'
OAUTH_TOKEN_PARAMETER_NAME = 'oauth_token'
REDIRECT_URI_PARAMETER_NAME = 'redirect_uri'
UNATHORIZED_TOKEN_SUFIX = 'unauthorized_token_name'
def auth_url(self):
"""Return redirect url"""
token = self.set_unauthorized_token()...
return self.oauth_authorization_request(token)
def process_error(self, data):
if 'oauth_problem' in data:
if data['oauth_problem'] == 'user_refused':
raise AuthCanceled(self, 'User refused the access')
Variable | Value |
---|---|
self | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/backends/oauth.py
in set_unauthorized_token
token = utoken
break
else:
raise AuthTokenError(self, 'Incorrect tokens')
return token
def set_unauthorized_token(self):
token = self.unauthorized_token()...
name = self.name + self.UNATHORIZED_TOKEN_SUFIX
tokens = self.strategy.session_get(name, []) + [token]
self.strategy.session_set(name, tokens)
return token
def request_token_extra_arguments(self):
Variable | Value |
---|---|
self | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/backends/oauth.py
in unauthorized_token
decoding = None if six.PY3 else 'utf-8'
state = self.get_or_create_state()
response = self.request(
self.REQUEST_TOKEN_URL,
params=params,
auth=OAuth1(key, secret, callback_uri=self.get_redirect_uri(state),
decoding=decoding),
method=self.REQUEST_TOKEN_METHOD...
)
content = response.content
if response.encoding or response.apparent_encoding:
content = content.decode(response.encoding or
response.apparent_encoding)
else:
Variable | Value |
---|---|
decoding | None |
key | 'raOk6VNlOJY1FhGsgOCg' |
params | {} |
secret | 'R6SXI2CZCD9KWs9Tcbp1aewh9wKkuZHwq6ePTuhI' |
self | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
state | 'XqSMqeJIhSE3nJecxAOjY6bvUAOvMvOO' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/social_core/backends/base.py
in request
if self.SSL_PROTOCOL:
session = SSLHttpAdapter.ssl_adapter_session(self.SSL_PROTOCOL)
response = session.request(method, url, *args, **kwargs)
else:
response = request(method, url, *args, **kwargs)
except ConnectionError as err:
raise AuthFailed(self, str(err))
response.raise_for_status()...
return response
def get_json(self, url, *args, **kwargs):
return self.request(url, *args, **kwargs).json()
def get_querystring(self, url, *args, **kwargs):
Variable | Value |
---|---|
args | () |
kwargs | {'auth': <requests_oauthlib.oauth1_auth.OAuth1 object at 0x7f6ec72106a0>, 'headers': {}, 'params': {}, 'timeout': None} |
method | 'POST' |
response | <Response [401]> |
self | <social_core.backends.twitter.TwitterOAuth object at 0x7f6eb521f1d0> |
url | 'https://api.twitter.com/oauth/request_token' |
/home/magpile/apps/magpile/env/lib64/python3.6/site-packages/requests/models.py
in raise_for_status
if 400 <= self.status_code < 500:
http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url)
elif 500 <= self.status_code < 600:
http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url)
if http_error_msg:
raise HTTPError(http_error_msg, response=self)...
def close(self):
"""Releases the connection back to the pool. Once this method has been
called the underlying ``raw`` object must not be accessed again.
*Note: Should not normally need to be called explicitly.*
Variable | Value |
---|---|
http_error_msg | ('401 Client Error: Unauthorized for url: ' 'https://api.twitter.com/oauth/request_token') |
reason | 'Unauthorized' |
self | <Response [401]> |
AnonymousUser
Variable | Value |
---|---|
next | '/psss-christchurch/jun-84/' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_FORWARDED_REQUEST_URI | '/oauth/login/twitter/?next=/psss-christchurch/jun-84/' |
HTTP_HOST | 'magpile.com' |
HTTP_HTTPS | 'on' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '34.231.247.254' |
HTTP_X_FORWARDED_HOST | 'magpile.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'magpile.com' |
HTTP_X_FORWARDED_SSL | 'on' |
PATH_INFO | '/oauth/login/twitter/' |
QUERY_STRING | 'next=/psss-christchurch/jun-84/' |
REMOTE_ADDR | '127.0.0.1' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/oauth/login/twitter/?next=/psss-christchurch/jun-84/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'opal15.opalstack.com' |
SERVER_PORT | '38691' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.core | 1 |
uwsgi.node | b'opal15.opalstack.com' |
uwsgi.version | b'2.0.19.1' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f6eb7c7ed38> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
magpile.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 7 |
ADMINS | [('Dan', 'dan@magpile.com')] |
ADS_CURRENT_PRICE | 20 |
ADS_SLOTS | 2 |
AD_CURRENCY | 'USD' |
AD_DAY_PRODUCT_ID | 504231 |
AD_DAY_RATE | 4 |
AD_WEEK_PRODUCT_ID | 514355 |
AD_WEEK_RATE | 10 |
ALLOWED_HOSTS | ['.magpile.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('twitter_users.backends.TwitterBackend', 'social_core.backends.twitter.TwitterOAuth', 'email-auth.EmailBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_PROFILE_MODULE | 'users.UserProfile' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/magpile/apps/magpile/magpile/magpile' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
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': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '127.0.0.1', 'NAME': 'magpile', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'magpile'}} |
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 | 'Magpile <alerts@magpile.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.humanize'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.eu.mailgun.org' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'postmaster@alerts.magpile.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 |
FILE_CHARSET | 'utf-8' |
FILE_TYPES | ['image/jpeg', 'image/png', 'image/gif'] |
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' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.humanize', 'mags', 'comments', 'users', 'store', 'stats', 'ads', 'paddle', 'twitter_users', 'registration', 'markdown_deux', 'social_django'] |
INTERNAL_IPS | [] |
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')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | None |
LOGOUT_URL | '/logout/' |
MAGPILE_APPS | ['mags', 'comments', 'users', 'store', 'stats', 'ads', 'paddle'] |
MANAGERS | [] |
MAX_INVITES | 10 |
MEDIA_ROOT | '/home/magpile/apps/magpile_media/' |
MEDIA_URL | 'https://media.magpile.com/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['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', 'store.middleware.StoreMiddleware', 'middleware.SectionMiddleware', 'social_django.middleware.SocialAuthExceptionMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PADDLE_API_AUTH_CODE | '********************' |
PADDLE_API_BASE_URL | '********************' |
PADDLE_CURRENCY | 'GBP' |
PADDLE_PLANS | {498745: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Basic', 'price': 300}, 498746: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Regular', 'price': 600}, 498747: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Test', 'price': 0}, 499119: {'currency': 'gbp', 'interval': 'month', 'interval_count': 1, 'name': 'Plus', 'price': 900}} |
PADDLE_VENDOR_ID | 9513 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PAYPAL_APP_ID | 'APP-2YE54566B8285563W' |
PAYPAL_PASSWORD | '********************' |
PAYPAL_RECEIVER_EMAIL | 'store@magpile.com' |
PAYPAL_SIGNATURE | '********************' |
PAYPAL_USER | 'dan_api1.magpile.com' |
PREPEND_WWW | False |
ROOT_URLCONF | 'magpile.urls' |
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 |
SERVER_EMAIL | 'Magpile <alerts@magpile.com>' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | '.magpile.com' |
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 | 'magpile.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIAL_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', 'users.pipeline.get_username', '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') |
SOCIAL_AUTH_TWITTER_KEY | '********************' |
SOCIAL_AUTH_TWITTER_SECRET | '********************' |
STATICFILES_DIRS | ('/home/magpile/apps/magpile/magpile/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/magpile/apps/magpile_static/' |
STATIC_URL | 'https://static.magpile.com/' |
STORE_COMMISSION | {'Basic': 0.15, 'Plus': 0.05, 'Regular': 0.08, 'Test': 0} |
STORE_FROM_EMAIL | 'Magpile <store@magpile.com>' |
STORE_HIDDEN_EXTRA | '76gugo287yt87yas' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/magpile/apps/magpile/magpile/magpile/../templates'], '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', 'django.template.context_processors.media', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
TWITTER_KEY | '********************' |
TWITTER_SECRET | '********************' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
VENDOR_APPS | ['twitter_users', 'registration', 'markdown_deux', 'social_django'] |
WSGI_APPLICATION | 'magpile.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.