Activity matching query does not exist.
Request Method: | GET |
---|---|
Request URL: | https://www.guidebase.com/trips/?activity=3%2B4%2B5%2B6%2B7 |
Django Version: | 2.2.9 |
Exception Type: | DoesNotExist |
Exception Value: | Activity matching query does not exist. |
Exception Location: | /var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/db/models/query.py in get, line 408 |
Python Executable: | /var/www/guidebase/.venv-6ed0aff/bin/python3.6 |
Python Version: | 3.6.8 |
Python Path: | ['/var/www/guidebase', '/var/www/guidebase', '/var/www/guidebase/.venv-6ed0aff/bin', '/var/www/guidebase/.venv-6ed0aff/lib/python36.zip', '/var/www/guidebase/.venv-6ed0aff/lib/python3.6', '/var/www/guidebase/.venv-6ed0aff/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages'] |
Server time: | Thu, 28 Mar 2024 22:39:10 +0000 |
/var/www/guidebase/.venv-6ed0aff/lib/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)
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 | DoesNotExist('Activity matching query does not exist.',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f60ace240b8>> |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
/var/www/guidebase/.venv-6ed0aff/lib/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 TripListView at 0x7f60955ab158> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f60ace2d0f0>> |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
resolver | <URLResolver 'guidebase.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=guidebase.apps.trips.views.TripListView, args=(), kwargs={}, url_name=list, app_names=['trips'], namespaces=['trips'], route=^trips/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f60ace240b8> |
wrapped_callback | <function TripListView at 0x7f60955ab158> |
/var/www/guidebase/.venv-6ed0aff/lib/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 TripListView at 0x7f60955ab158> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f60ace2d0f0>> |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
resolver | <URLResolver 'guidebase.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=guidebase.apps.trips.views.TripListView, args=(), kwargs={}, url_name=list, app_names=['trips'], namespaces=['trips'], route=^trips/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f60ace240b8> |
wrapped_callback | <function TripListView at 0x7f60955ab158> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/views/generic/base.py
in view
self.head = self.get
self.setup(request, *args, **kwargs)
if not hasattr(self, 'request'):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | () |
cls | <class 'guidebase.apps.trips.views.TripListView'> |
initkwargs | {} |
kwargs | {} |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/utils/decorators.py
in _wrapper
# bound_method has the signature that 'decorator' expects i.e. no
# 'self' argument, but it's a closure over self so it can call
# 'func'. Also, wrap method.__get__() in a function because new
# attributes can't be set on bound method objects, only on functions.
bound_method = partial(method.__get__(self, type(self)))
for dec in decorators:
bound_method = dec(bound_method)
return bound_method(*args, **kwargs)…
# Copy any attributes that a decorator adds to the function it decorates.
for dec in decorators:
_update_method_wrapper(_wrapper, dec)
# Preserve any existing attributes of 'method', including the name.
update_wrapper(_wrapper, method)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'>,) |
bound_method | <function csrf_exempt.<locals>.wrapped_view at 0x7f6093e94048> |
dec | <function csrf_exempt at 0x7f60abf44268> |
decorators | [<function csrf_exempt at 0x7f60abf44268>] |
kwargs | {} |
method | <function View.dispatch at 0x7f60ac62c400> |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/views/decorators/csrf.py
in wrapped_view
def csrf_exempt(view_func):
"""Mark a view function as being exempt from the CSRF view protection."""
# view_func.csrf_exempt = True would also work, but decorators are nicer
# if they don't have side effects, so return a new function.
def wrapped_view(*args, **kwargs):
return view_func(*args, **kwargs)…
wrapped_view.csrf_exempt = True
return wraps(view_func)(wrapped_view)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'>,) |
kwargs | {} |
view_func | functools.partial(<bound method View.dispatch of <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668>>) |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | () |
handler | <bound method BaseListView.get of <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668>> |
kwargs | {} |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/views/generic/list.py
in get
is_empty = not self.object_list.exists()
else:
is_empty = not self.object_list
if is_empty:
raise Http404(_("Empty list and '%(class_name)s.allow_empty' is False.") % {
'class_name': self.__class__.__name__,
})
context = self.get_context_data()…
return self.render_to_response(context)
class MultipleObjectTemplateResponseMixin(TemplateResponseMixin):
"""Mixin for responding with a template and list of objects."""
template_name_suffix = '_list'
Variable | Value |
---|---|
allow_empty | True |
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/trips/?activity=3%2B4%2B5%2B6%2B7'> |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
/var/www/guidebase/guidebase/apps/trips/views.py
in get_context_data
def __init__(self, *args, **kwargs):
self.is_filtered = False
self.trip_count = 0
super().__init__(*args, **kwargs)
def get_context_data(self, *, object_list=None, **kwargs):
context = super().get_context_data(**kwargs)
context['filter_form'] = FilterForm(initial=self.get_filterform_initial())…
context['is_filtered'] = self.is_filtered
context['list_object_count'] = self.trip_count
context['list_object_name'] = 'adventure'
context['excluded_filter_fields'] = [
'min_price', 'max_price', 'postal_town', 'administrative_area_level_2',
'administrative_area_level_1', 'country', 'search', 'single_activity',
Variable | Value |
---|---|
__class__ | <class 'guidebase.apps.trips.views.TripListView'> |
context | {'is_paginated': False, 'object_list': <QuerySet [<Trip: Bushcraft and Survival Two Day Course>]>, 'page_obj': <Page 1 of 1>, 'paginator': <django.core.paginator.Paginator object at 0x7f6093bbe4e0>, 'trip_list': <QuerySet [<Trip: Bushcraft and Survival Two Day Course>]>, 'view': <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668>} |
kwargs | {} |
object_list | None |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
/var/www/guidebase/guidebase/apps/trips/views.py
in get_filterform_initial
activities = initial.pop('activity', '')
if activities:
if isinstance(activities, list):
activities = activities[0]
activity_list = activities.split(GET_DELIMITER)
initial['activity'] = [Activity.objects.get(pk=int(value)) for value in activity_list]…
initial['postal_town'] = initial.get('city')
initial['administrative_area_level_2'] = initial.get('subregion')
initial['administrative_area_level_1'] = initial.get('region')
location_text = ', '.join([x for x in [
Variable | Value |
---|---|
activities | '3+4+5+6+7' |
activity_list | ['3', '4', '5', '6', '7'] |
initial | <QueryDict: {}> |
self | <guidebase.apps.trips.views.TripListView object at 0x7f6093ccd668> |
value | 'trip_duration' |
/var/www/guidebase/guidebase/apps/trips/views.py
in <listcomp>
activities = initial.pop('activity', '')
if activities:
if isinstance(activities, list):
activities = activities[0]
activity_list = activities.split(GET_DELIMITER)
initial['activity'] = [Activity.objects.get(pk=int(value)) for value in activity_list]…
initial['postal_town'] = initial.get('city')
initial['administrative_area_level_2'] = initial.get('subregion')
initial['administrative_area_level_1'] = initial.get('region')
location_text = ', '.join([x for x in [
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f6093ccd2b0> |
value | '4' |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/db/models/manager.py
in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)…
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
for name, method in inspect.getmembers(queryset_class, predicate=inspect.isfunction):
Variable | Value |
---|---|
args | () |
kwargs | {'pk': 4} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7f6095494400> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/cacheops/query.py
in get
if 'fetch' in self._cacheprofile['ops']:
qs = self
else:
qs = self._clone().cache()
else:
qs = self
return qs._no_monkey.get(qs, *args, **kwargs)…
def first(self):
if self._should_cache('get'):
return self._no_monkey.first(self._clone().cache())
return self._no_monkey.first(self)
Variable | Value |
---|---|
args | () |
kwargs | {'pk': 4} |
qs | <QuerySet [<Activity: Absailing>, <Activity: Cycling>, <Activity: Hiking>, <Activity: Kayaking>, <Activity: Mountaineering>, <Activity: Multi Activity>, <Activity: Rock Climbing>, <Activity: Scrambling>, <Activity: Surfing>, <Activity: Stand Up Paddleboarding>, <Activity: Wild Swimming>, <Activity: Yoga>]> |
self | <QuerySet [<Activity: Absailing>, <Activity: Cycling>, <Activity: Hiking>, <Activity: Kayaking>, <Activity: Mountaineering>, <Activity: Multi Activity>, <Activity: Rock Climbing>, <Activity: Scrambling>, <Activity: Surfing>, <Activity: Stand Up Paddleboarding>, <Activity: Wild Swimming>, <Activity: Yoga>]> |
/var/www/guidebase/.venv-6ed0aff/lib/python3.6/site-packages/django/db/models/query.py
in get
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name…
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'pk': 4} |
num | 0 |
self | <QuerySet [<Activity: Absailing>, <Activity: Cycling>, <Activity: Hiking>, <Activity: Kayaking>, <Activity: Mountaineering>, <Activity: Multi Activity>, <Activity: Rock Climbing>, <Activity: Scrambling>, <Activity: Surfing>, <Activity: Stand Up Paddleboarding>, <Activity: Wild Swimming>, <Activity: Yoga>]> |
AnonymousUser
Variable | Value |
---|---|
activity | '3+4+5+6+7' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'www.guidebase.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.93.59.171' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/trips/' |
QUERY_STRING | 'activity=3%2B4%2B5%2B6%2B7' |
RAW_URI | '/trips/?activity=3%2B4%2B5%2B6%2B7' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '34398' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '127.0.0.1' |
SERVER_PORT | '2000' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 2000), raddr=('127.0.0.1', 34398)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f6093e8b0b8> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f60942b7e48> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
guidebase.settings.production
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ADMIN_ANALYTICS_GOOGLE_API_KEY | '********************' |
ADMIN_ANALYTICS_ID | 'UA-154581110-1' |
ALLOWED_HOSTS | ['guidebase.com', 'www.localhost', '127.0.0.1', 'localhost:2000', 'localhost', 'www.guidebase.com', 'www.guidebase.onespace.media'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('social_core.backends.google.GoogleOAuth2', 'django.contrib.auth.backends.ModelBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'users.User' |
BASE_ROOT | '/var/www/guidebase' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_BROKER_URL | 'redis://localhost:6379/0' |
CITIES_CITY_MODEL | 'cities.City' |
CITIES_CONTINENT_MODEL | 'cities.Continent' |
CITIES_COUNTRY_MODEL | 'cities.Country' |
CITIES_POSTAL_CODES | [] |
COMMISSION_PERCENTAGE | 0.0 |
CONTACT_EMAIL | 'tom@guidebase.com' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | True |
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.contrib.gis.db.backends.postgis', 'HOST': '', 'NAME': 'guidebase', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'guidebase'}} |
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_EXTENSIONS | ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension'] |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Guide Base <notifications@guidebase.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_NOTIFICATIONS_CONFIG | {'USE_JSONFIELD': True} |
EMAIL_BACKEND | 'mailer.backend.DbBackend' |
EMAIL_HOST | 'smtp.mandrillapp.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'developers@onespacemedia.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Guide Base] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
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 | 420 |
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' |
GIT_COMMIT_HASH | 'ee6d99c' |
GOOGLE_FONTS_KIT_URL | 'https://fonts.googleapis.com/css?family=Barlow+Condensed:400,700|Roboto:400,500,700&display=swap' |
GOOGLE_GEOCODING_API_KEY | '********************' |
GOOGLE_TAG_MANAGER | 'UA-154581110-1' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.sessions', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sitemaps', 'django.contrib.gis', 'django.forms', 'sorl.thumbnail', 'captcha', 'django_jinja', 'django_lazy_image', 'osm_jet', 'cms', 'reversion', 'historylinks', 'watson', 'cms.apps.pages', 'cms.apps.links', 'cms.apps.media', 'social_django', 'guidebase.apps.activities', 'guidebase.apps.components', 'guidebase.apps.contact', 'guidebase.apps.emails', 'guidebase.apps.guides', 'guidebase.apps.news', 'guidebase.apps.payments', 'guidebase.apps.redirects', 'guidebase.apps.reviews', 'guidebase.apps.sections', 'guidebase.apps.settings', 'guidebase.apps.site', 'guidebase.apps.trips', 'guidebase.apps.user_messages', 'guidebase.apps.users', 'jet.dashboard', 'jet', 'django.contrib.admin', 'adminsortable2', 'cities', 'notifications', 'server_management', 'django_extensions', 'cacheops', 'webpack_loader', 'mailer'] |
INTERNAL_IPS | [] |
IN_CIRCLECI | False |
JET_CHANGE_FORM_SIBLING_LINKS | False |
JET_DEFAULT_THEME | 'osm' |
JET_INDEX_DASHBOARD | 'guidebase.apps.site.dashboard.OSMDashboard' |
JET_WIDGET_SELECTOR | True |
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'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('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-gb' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': True, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s ' '%(process)d %(thread)d %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'verbose', 'level': 'DEBUG'}, 'rollbar': {'access_token': '********************', 'class': 'rollbar.logger.RollbarHandler', 'environment': 'production'}}, 'loggers': {'django.db.backends': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}, 'guidebase': {'handlers': ['rollbar'], 'level': 'WARNING', 'propagate': False}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/account/trips/' |
LOGIN_URL | '/account/login/' |
LOGOUT_REDIRECT_URL | None |
MAILER_EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
MANAGERS | () |
MAX_UPLOADED_FILE_SIZE | 104857600 |
MEDIA_ROOT | '/var/www/guidebase_media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.cookie.CookieStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'guidebase.apps.redirects.middleware.RedirectFallbackMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'watson.middleware.SearchContextMiddleware', 'historylinks.middleware.HistoryLinkFallbackMiddleware', 'cms.middleware.PublicationMiddleware', 'cms.apps.pages.middleware.PageMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NEWS_APPROVAL_SYSTEM | False |
NOCAPTCHA | True |
NODE_MODULES_ROOT | '/var/www/guidebase_static' |
NODE_MODULES_URL | '/static/' |
NUMBER_GROUPING | 0 |
ONLINE_DEFAULT | True |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | True |
PUBLICATION_MIDDLEWARE_EXCLUDE_URLS | ('^admin/.*',) |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
ROLLBAR_CLIENT_TOKEN | '********************' |
ROLLBAR_SERVER_TOKEN | '********************' |
ROOT_URLCONF | 'guidebase.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 | ('HTTP_X_FORWARDED_PROTO', 'https') |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_ROOT | '/var/www/guidebase_secure' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SECURE_URL | '/secure-files/' |
SENDFILE_BACKEND | 'sendfile.backends.nginx' |
SENDFILE_ROOT | '/var/www/guidebase_secure' |
SENDFILE_URL | '/secure' |
SEND_BROKEN_LINK_EMAILS | False |
SERVER_EMAIL | 'Guide Base <notifications@guidebase.com>' |
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_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.signed_cookies' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'guidebase.settings.production' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_DOMAIN | 'guidebase.com' |
SITE_ID | 1 |
SITE_NAME | 'Guide Base' |
SITE_ROOT | '/var/www/guidebase/guidebase' |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
SOCIAL_AUTH_LOGIN_REDIRECT_URL | '/admin/' |
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', 'social_core.pipeline.user.get_username', 'social_core.pipeline.social_auth.associate_by_email', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details', 'guidebase.apps.site.auth_pipeline.make_staff') |
SOCIAL_AUTH_PROTECTED_USER_FIELDS | ['first_name', 'last_name'] |
STATICFILES_DIRS | ('/var/www/guidebase/guidebase/assets', '/var/www/guidebase/guidebase/static') |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/guidebase_static' |
STATIC_URL | '/static/' |
STRIPE_API_KEY_PUBLIC | '********************' |
STRIPE_API_KEY_SECRET | '********************' |
STRIPE_APPLICATION_API | '********************' |
STRIPE_CURRENCY | 'GBP' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django_jinja.backend.Jinja2', 'DIRS': ['/var/www/guidebase/guidebase/assets/svg', '/var/www/guidebase/guidebase/templates'], 'OPTIONS': {'app_dirname': 'templates', 'auto_reload': False, 'autoescape': True, 'bytecode_cache': {'backend': 'django_jinja.cache.BytecodeCache', 'enabled': False, 'name': 'default'}, '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.contrib.messages.context_processors.messages', 'django.template.context_processors.request', 'cms.context_processors.settings', 'cms.apps.pages.context_processors.pages', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension', 'webpack_loader.contrib.jinja2ext.WebpackExtension', 'guidebase.apps.site.extensions.DjangoNow'], 'match_extension': ('.html', '.txt'), 'match_regex': '^(?!admin/|reversion/|jet.dashboard/|adminsortable2/|sitemap\\.xml|debug_toolbar/|django/forms/|auth/|captcha/|users/reset|registration/password_reset_subject\\.txt).*', 'newstyle_gettext': True, 'translation_engine': 'django.utils.translation'}}, {'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/guidebase/guidebase/templates'], '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.contrib.messages.context_processors.messages', 'django.template.context_processors.request', 'cms.context_processors.settings', 'cms.apps.pages.context_processors.pages', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}] |
TEMPLATE_DEBUG | True |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_PRESERVE_FORMAT | True |
THUMBNAIL_QUALITY | 60 |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/London' |
TINYPNG_API_KEY | '********************' |
TYPEKIT_KIT_ID | '' |
USE_I18N | False |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WEBPACK_LOADER | {'DEFAULT': {'BUNDLE_DIR_NAME': 'build/', 'STATS_FILE': '/var/www/guidebase/webpack-stats.json'}} |
WHITELISTED_DOMAINS | ['onespacemedia.com'] |
WSGI_APPLICATION | 'guidebase.wsgi.application' |
WYSIWYG_OPTIONS | {'block_formats': 'Paragraph=p;Header 2=h2;Header 3=h3;Header 4=h4;Header ' '5=h5;Header 6=h6;', 'content_css': '/static/build/css/wysiwyg.bundle.css', 'convert_urls': False, 'height': 500, 'image_advtab': True, 'menubar': False, 'paste_as_text': True, 'plugins': ['advlist autolink link image lists charmap hr anchor pagebreak ' 'customquote highlight', 'wordcount visualblocks visualchars code fullscreen cmsimage hr ' 'template', 'table contextmenu directionality textcolor colorpicker ' 'textpattern noneditable'], 'style_formats': [{'items': [{'classes': 'wys-Button', 'selector': 'a', 'title': 'Button'}], 'title': 'Links'}, {'items': [{'classes': 'wys-Title-small', 'selector': 'h1,h2,h3,h4,h5,h6', 'title': 'Small'}, {'classes': 'wys-Title-medium', 'selector': 'h1,h2,h3,h4,h5,h6', 'title': 'Medium'}, {'classes': 'wys-Title-large', 'selector': 'h1,h2,h3,h4,h5,h6', 'title': 'Large'}], 'title': 'Titles'}, {'items': [{'classes': 'wys-Standfirst', 'selector': 'p', 'title': 'Standfirst'}], 'title': 'Text'}], 'templates': [{'description': 'A test template', 'title': 'Test', 'url': '/static/build/html/test.html'}], 'toolbar1': 'code | cut copy pastetext | undo redo | bullist numlist | link ' 'unlink anchor cmsimage | customquote highlight charmap', 'toolbar2': 'styleselect formatselect | bold italic underline hr | alignleft ' 'aligncenter alignright | table | removeformat | subscript ' 'superscript', 'toolbar3': '', 'toolbar_items_size': 'small', 'valid_elements': '*[*]'} |
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.