Reverse for 'hotel-detail' with keyword arguments '{'slug': '', 'cityslug': 'zhuhai'}' not found. 1 pattern(s) tried: ['hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\Z']
Request Method: | GET |
---|---|
Request URL: | https://www.china-travel-guide.net/hotels/zhuhai/brand/no-brand/ |
Django Version: | 3.2.19 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'hotel-detail' with keyword arguments '{'slug': '', 'cityslug': 'zhuhai'}' not found. 1 pattern(s) tried: ['hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\Z'] |
Exception Location: | /app/.heroku/python/lib/python3.9/site-packages/django/urls/resolvers.py, line 698, in _reverse_with_prefix |
Python Executable: | /app/.heroku/python/bin/python |
Python Version: | 3.9.16 |
Python Path: | ['/app/.heroku/python/bin', '/app', '/app/.heroku/python/lib/python39.zip', '/app/.heroku/python/lib/python3.9', '/app/.heroku/python/lib/python3.9/lib-dynload', '/app/.heroku/python/lib/python3.9/site-packages', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf', '/app/.heroku/python/lib/python3.9/site-packages/odf'] |
Server time: | Fri, 29 Mar 2024 09:45:57 +0000 |
In template /app/maincontent/templates/maincontent/hotel_list_city_brand.html
, error at line 30
20 | <section class="hero" style='background-image: url("{{ city.path1920x500 }}")'></section> |
---|---|
21 | |
22 | {% include "iconsmenu.html" %} |
23 | |
24 | <div class="mainpanel"> |
25 | <h1 class="content-title">{{ brandcaps }} Hotels in {{ city.name }}</h1> |
26 | <div class="cards-container"> |
27 | <section class="cards"> |
28 | {% for hot in hotels %} |
29 | <div class="card"> |
30 | <a class="cardlink" href="{% url 'hotel-detail' slug=hot.slug cityslug=hot.cityslug %}"> |
31 | <img src="{{ hot.hotel_pic1|resizeagodaimage:238 }}" alt="{{ hot.hotel_name_en }}, {{ hot.hotel_city_hardcode}}" title="{{ hot.hotel_name_en }} Guide" style="width:100%"> |
32 | <div class="card-body"> |
33 | <h5 class="card-title">{{hot.hotel_name_en}}</h5> |
34 | <p class="card-text" style="color:#e27f1e">{{hot.hotel_brand}}</p> |
35 | <p class="card-text">{{hot.hotel_description|truncatechars:120 }}</p> |
36 | <p class="card-text" style="color:#e27f1e">Rooms from: {{hot.hotel_ratesfrom}}USD</p> |
37 | </div> |
38 | </a> |
39 | </div> |
40 | {% endfor %} |
/app/.heroku/python/lib/python3.9/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@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 | NoReverseMatch("Reverse for 'hotel-detail' with keyword arguments '{'slug': '', 'cityslug': 'zhuhai'}' not found. 1 pattern(s) tried: ['hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\\\Z']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f6bc218c7c0>> |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
/app/.heroku/python/lib/python3.9/site-packages/django/core/handlers/base.py
, line 181, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function hotellistcitybrand at 0x7f6bc00a2af0> |
callback_args | () |
callback_kwargs | {'brand': 'no-brand', 'cityslug': 'zhuhai'} |
middleware_method | <function CsrfViewMiddleware.process_view at 0x7f6bc0291040> |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f6bc218c7c0> |
wrapped_callback | <function hotellistcitybrand at 0x7f6bc00a2af0> |
/app/maincontent/views.py
, line 1077, in hotellistcitybrand
hotelcount = len(hotels)
try:
city = get_object_or_404(City, slug=cityslug)
except:
city = cityslug.capitalize()
firsthotel = hotels[0]
brandcaps = firsthotel.hotel_brand
return render(request, 'maincontent/hotel_list_city_brand.html', {'hotels': hotels, 'hotelcount': hotelcount, 'city': city, 'brandcaps': brandcaps, 'city': city, 'showgoogleads': True})…
class AirportDetailView(DetailView):
model = Airport
Variable | Value |
---|---|
brand | 'no-brand' |
brandcaps | 'No brand' |
city | <City: Zhuhai> |
cityslug | 'zhuhai' |
firsthotel | <Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch> |
hotelcount | 21 |
hotels | <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']> |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
/app/.heroku/python/lib/python3.9/site-packages/django/shortcuts.py
, line 19, in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'brandcaps': 'No brand', 'city': <City: Zhuhai>, 'hotelcount': 21, 'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'showgoogleads': True} |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
status | None |
template_name | 'maincontent/hotel_list_city_brand.html' |
using | None |
/app/.heroku/python/lib/python3.9/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'brandcaps': 'No brand', 'city': <City: Zhuhai>, 'hotelcount': 21, 'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'showgoogleads': True} |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
template | <django.template.backends.django.Template object at 0x7f6bbe982310> |
template_name | 'maincontent/hotel_list_city_brand.html' |
using | None |
/app/.heroku/python/lib/python3.9/site-packages/django/template/backends/django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
request | <WSGIRequest: GET '/hotels/zhuhai/brand/no-brand/'> |
self | <django.template.backends.django.Template object at 0x7f6bbe982310> |
/app/.heroku/python/lib/python3.9/site-packages/django/template/base.py
, line 170, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
self | <django.template.base.Template object at 0x7f6bbe9827f0> |
/app/.heroku/python/lib/python3.9/site-packages/django/test/utils.py
, line 100, in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal that can be
intercepted by the test Client.
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)…
class _TestState:
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
self | <django.template.base.Template object at 0x7f6bbe9827f0> |
/app/.heroku/python/lib/python3.9/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('</h1>\n' ' <div class="cards-container">\n' ' <section class="cards">\n' ' ') |
bits | ['', '\n', '', '\n' '\n' '<!doctype html>\n' '<html lang="en">\n' '\n' ' <head>\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1, ' 'shrink-to-fit=no">\n' ' <meta name="description" content="View and book all ', '21', ' ', 'No brand', ' hotels in ', 'Zhuhai', '. Discover all that the ', 'No brand', "'s in ", 'Zhuhai', ' have to offer, and get a great deal when you\'re ready to book.">\n' ' <meta name="keywords" content="', 'No brand', ' hotels in ', 'Zhuhai', ', ', 'Zhuhai', ' ', 'No brand', ' hotels, cheap ', 'Zhuhai', ' ', 'No brand', ' hotels, book ', 'No brand', ' hotels in ', 'Zhuhai', '">\n <title>', 'No brand', ' Hotels in ', 'Zhuhai', ', China | China-Travel-Guide.net</title>\n ', '\n' '\n' ' <link ' 'href="https://s3.us-east-2.amazonaws.com/travelguidechi/styles.css" ' 'rel="stylesheet">\n' ' <link rel="icon" ' 'href="https://s3.us-east-2.amazonaws.com/travelguidechi/bootstrap/favicon.ico">\n' ' <link href="https://fonts.googleapis.com/css?family=Roboto:500,300,700" ' 'rel="stylesheet" type="text/css">\n' ' <script async ' 'src="https://www.googletagmanager.com/gtag/js?id=UA-119605475-1"></script>\n' ' <script>\n' ' window.dataLayer = window.dataLayer || [];\n' ' function gtag(){dataLayer.push(arguments);}\n' " gtag('js', new Date()); gtag('config', 'UA-119605475-1');\n" ' </script>\n', '\n </head>\n\n <body>\n\n ', '<div class="nav">\n' '\n' ' <input type="checkbox" id="nav-check">\n' '\n' ' <div class="nav-header">\n' ' <div class="nav-title">\n' ' <a href="/"><img ' 'src="https://d2bzyssqvoukfe.cloudfront.net/eyJidWNrZXQiOiJ0cmF2ZWxndWlkZWNoaSIsImtleSI6ImltYWdlcy9DaGluYVRyYXZlbEd1aWRlLnBuZyJ9" ' 'height="30"></a>\n' ' </div>\n' ' </div>\n' '\n' ' <div class="nav-btn">\n' ' <label for="nav-check">\n' ' <span></span>\n' ' <span></span>\n' ' <span></span>\n' ' </label>\n' ' </div>\n' '\n' ' <div class="nav-links">\n' ' <a href="/chinacitiesall/">China City Guides</a>\n' ' <a href="/allattractions/">China Attraction Guides</a>\n' ' <a href="/chinaprovincesall/">China Province Guides</a>\n' ' <a href="/trains/allroutes/">China Trains</a>\n' ' <a href="/chinaairportlist/">China Airports</a>\n' ' <a href="/chinametrosystems/">China Metro Systems</a>\n' ' <a href="/hotels/allcities/">China Hotels</a>\n' ' </div>\n' '\n' '</div>', '\n\n <section class="hero" style=\'background-image: url("', 'https://d2bzyssqvoukfe.cloudfront.net/eyJidWNrZXQiOiJ0cmF2ZWxndWlkZWNoaSIsImtleSI6ImltYWdlcy9jaXR5L3podWhhaS96aHVoYWkuanBnIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxOTIwLCJoZWlnaHQiOjUwMCwiZml0IjoiY292ZXIifX19', '")\'></section>\n\n ', '\n' '\n' '<div class="ca">\n' ' <div class="sticky">\n' ' <div class="topredtitlebar">Book China Travel</div>\n' '\n' ' \n' '\n' ' <a href="/r/1/"><div class="mobile-footer-cell"><img class="icon" ' "src='https://s3.us-east-2.amazonaws.com/travelguidechi/icons/003-hotel.svg'><br>Hotels</div></a>\n" ' <a href="/r/2/"><div class="mobile-footer-cell"><img class="icon" ' "src='https://s3.us-east-2.amazonaws.com/travelguidechi/icons/001-plane.svg'><br>Flights</div></a>\n" ' <a href="/r/3/"><div class="mobile-footer-cell"><img class="icon" ' "src='https://s3.us-east-2.amazonaws.com/travelguidechi/icons/002-train.svg'><br>Trains</div></a>\n" ' <a href="/r/4/"><div class="mobile-footer-cell"><img class="icon" ' "src='https://s3.us-east-2.amazonaws.com/travelguidechi/icons/005-kaminarimon-gate.svg'><br>Tours</div></a>\n" ' <a href="/r/5/"><div class="mobile-footer-cell"><img class="icon" ' "src='https://s3.us-east-2.amazonaws.com/travelguidechi/icons/004-ticket.svg'><br>Tickets</div></a>\n" ' \n' '\n' ' </div>\n' '</div>', '\n\n <div class="mainpanel">\n <h1 class="content-title">', 'No brand', ' Hotels in ', 'Zhuhai', '</h1>\n' ' <div class="cards-container">\n' ' … <trimmed 4144 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
node | <ForNode: for hot in hotels, tail_len: 19> |
self | [<django.template.defaulttags.LoadNode object at 0x7f6bbf7a4a90>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f6bbf7a4400>, <TextNode: '\n\n<!doctype html>\n<html l'>, <Variable Node: hotelcount>, <TextNode: ' '>, <Variable Node: brandcaps>, <TextNode: ' hotels in '>, <Variable Node: city.name>, <TextNode: '. Discover all that the '>, <Variable Node: brandcaps>, <TextNode: "'s in ">, <Variable Node: city.name>, <TextNode: ' have to offer, and get a'>, <Variable Node: brandcaps>, <TextNode: ' hotels in '>, <Variable Node: city.name>, <TextNode: ', '>, <Variable Node: city.name>, <TextNode: ' '>, <Variable Node: brandcaps>, <TextNode: ' hotels, cheap '>, <Variable Node: city.name>, <TextNode: ' '>, <Variable Node: brandcaps>, <TextNode: ' hotels, book '>, <Variable Node: brandcaps>, <TextNode: ' hotels in '>, <Variable Node: city.name>, <TextNode: '">\n <title>'>, <Variable Node: brandcaps>, <TextNode: ' Hotels in '>, <Variable Node: city.name>, <TextNode: ', China | China-Travel-Gu'>, <django.template.loader_tags.IncludeNode object at 0x7f6bbf6caac0>, <TextNode: '\n </head>\n\n <body>\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6bbe9facd0>, <TextNode: '\n\n <section class="h'>, <Variable Node: city.path1920x500>, <TextNode: '")\'></section>\n\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6bbeab8a60>, <TextNode: '\n\n <div class="mainp'>, <Variable Node: brandcaps>, <TextNode: ' Hotels in '>, <Variable Node: city.name>, <TextNode: '</h1>\n <div clas'>, <ForNode: for hot in hotels, tail_len: 19>, <TextNode: '\n </section>\n '>, <django.template.loader_tags.IncludeNode object at 0x7f6bbf3cb250>, <TextNode: '\n\n </body>\n</html>\n'>] |
/app/.heroku/python/lib/python3.9/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
self | <ForNode: for hot in hotels, tail_len: 19> |
/app/.heroku/python/lib/python3.9/site-packages/django/template/defaulttags.py
, line 214, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
i | 9 |
item | <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界> |
len_values | 21 |
loop_dict | {'counter': 10, 'counter0': 9, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 12, 'revcounter0': 11} |
node | <django.template.defaulttags.URLNode object at 0x7f6bbf77a4f0> |
nodelist | ['\n <div class="card">\n <a class="cardlink" href="', '/hotels/zhuhai/7-days-inn-zhuhai-jiuzhou-ferry-branch/', '">\n <img src="', 'http://pix3.agoda.net/hotelimages/759/759865/759865_15072109250032655628.jpg?s=238x', '" alt="', '7 Days Inn Zhuhai Jiuzhou Ferry Branch', ', ', 'Zhuhai', '" title="', '7 Days Inn Zhuhai Jiuzhou Ferry Branch', ' Guide" style="width:100%">\n' ' <div class="card-body">\n' ' <h5 class="card-title">', '7 Days Inn Zhuhai Jiuzhou Ferry Branch', '</h5>\n <p class="card-text" style="color:#e27f1e">', 'No brand', '</p>\n <p class="card-text">', 'Set in a prime location of Zhuhai, 7 Days Inn Zhuhai Jiuzhou Ferry Branch ' 'puts everything the city has to offer just ou…', '</p>\n' ' <p class="card-text" style="color:#e27f1e">Rooms from: ', '32', 'USD</p>\n' ' </div>\n' ' </a>\n' ' </div>\n' ' ', '\n <div class="card">\n <a class="cardlink" href="', '/hotels/zhuhai/starway-hotel-bihai-branch-zhuhai/', '">\n <img src="', 'http://pix2.agoda.net/hotelimages/561/561861/561861_13123016110017983843.jpg?s=238x', '" alt="', 'Starway Hotel Bihai Branch Zhuhai', ', ', 'Zhuhai', '" title="', 'Starway Hotel Bihai Branch Zhuhai', ' Guide" style="width:100%">\n' ' <div class="card-body">\n' ' <h5 class="card-title">', 'Starway Hotel Bihai Branch Zhuhai', '</h5>\n <p class="card-text" style="color:#e27f1e">', 'No brand', '</p>\n <p class="card-text">', 'The 3-star Starway Hotel Bihai Branch Zhuhai offers comfort and convenience ' 'whether you're on business or holiday in Zh…', '</p>\n' ' <p class="card-text" style="color:#e27f1e">Rooms from: ', '30', 'USD</p>\n' ' </div>\n' ' </a>\n' ' </div>\n' ' ', '\n <div class="card">\n <a class="cardlink" href="', '/hotels/zhuhai/3-bedrooms-with-sea-view-in-zhuhai-near-beach/', '">\n <img src="', 'http://pix2.agoda.net/hotelimages/agoda-homes/5486354/18fa69112a709eee6f6c42b5540b8e33.jpg?s=238x', '" alt="', '3 bedrooms with sea view in Zhuhai, near beach', ', ', 'Zhuhai', '" title="', '3 bedrooms with sea view in Zhuhai, near beach', ' Guide" style="width:100%">\n' ' <div class="card-body">\n' ' <h5 class="card-title">', '3 bedrooms with sea view in Zhuhai, near beach', '</h5>\n <p class="card-text" style="color:#e27f1e">', 'No brand', '</p>\n <p class="card-text">', '', '</p>\n' ' <p class="card-text" style="color:#e27f1e">Rooms from: ', '69', 'USD</p>\n' ' </div>\n' ' </a>\n' ' </div>\n' ' ', '\n <div class="card">\n <a class="cardlink" href="', '/hotels/zhuhai/dreamer-full-seascape-4-rooms-nordic-style/', '">\n <img src="', 'http://pix5.agoda.net/hotelimages/agoda-homes/5302317/f0037804e74cb558c76024dccf43bd5c.jpg?s=238x', '" alt="', ' Dreamer full seascape 4 rooms nordic style, ', ', ', 'Zhuhai', '" title="', ' Dreamer full seascape 4 rooms nordic style, ', ' Guide" style="width:100%">\n' ' <div class="card-body">\n' ' <h5 class="card-title">', ' Dreamer full seascape 4 rooms nordic style, ', '</h5>\n <p class="card-text" style="color:#e27f1e">', 'No brand', '</p>\n <p class="card-text">', '', '</p>\n' ' <p class="card-text" style="color:#e27f1e">Rooms from: ', '174', 'USD</p>\n' ' </div>\n' ' </a>\n' ' </div>\n' ' ', '\n <div class="card">\n <a class="cardlink" href="', '/hotels/zhuhai/muji-central-location-apartment/… <trimmed 8700 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for hot in hotels, tail_len: 19> |
unpack | False |
values | <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']> |
/app/.heroku/python/lib/python3.9/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
self | <django.template.defaulttags.URLNode object at 0x7f6bbf77a4f0> |
/app/.heroku/python/lib/python3.9/site-packages/django/template/defaulttags.py
, line 449, in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'hotels': <QuerySet [<Hotel: 7 Days Inn Zhuhai Jiuzhou Ferry Branch>, <Hotel: Starway Hotel Bihai Branch Zhuhai>, <Hotel: 3 bedrooms with sea view in Zhuhai, near beach>, <Hotel: Dreamer full seascape 4 rooms nordic style, >, <Hotel: Muji Central location Apartment>, <Hotel: Sweet Jane European three room two hall>, <Hotel: Modern LOFT has two bedrooms and two bathrooms>, <Hotel: Warm and exquisite living room adjacent to Macao>, <Hotel: Small fresh air three room two hall>, <Hotel: 复式投影巨幕影院榻榻米风,享受二人世界>, <Hotel: Studio apartment in Zhuhai downtown, near beach >, <Hotel: Contemporary and contracted wind two rooms>, <Hotel: Contemporary and contracted wind 3 rooms 2 halls>, <Hotel: 珠海随意时光海景公寓>, <Hotel: Vientiane World Shenzhen Bay Happy Valley >, <Hotel: 珠海随意时光海景公寓>, <Hotel: Zhuhai Chimelong Ocean Kingdom White Whale Hotel>, <Hotel: High-rise River View Light Luxury Apartment>, <Hotel: Enjoy the mountain view and rooms facing south >, <Hotel: Hainan Ping villa on the South China Sea>, '...(remaining elements truncated)...']>, 'hotelcount': 21, 'city': <City: Zhuhai>, 'brandcaps': 'No brand', 'showgoogleads': True}] |
current_app | '' |
kwargs | {'cityslug': 'zhuhai', 'slug': ''} |
reverse | <function reverse at 0x7f6bc20343a0> |
self | <django.template.defaulttags.URLNode object at 0x7f6bbf77a4f0> |
url | '' |
view_name | 'hotel-detail' |
/app/.heroku/python/lib/python3.9/site-packages/django/urls/base.py
, line 86, in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
args | [] |
current_app | '' |
current_path | None |
kwargs | {'cityslug': 'zhuhai', 'slug': ''} |
ns_converters | {} |
ns_pattern | '' |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'travelsite.urls' (None:None) '^/'> |
urlconf | 'travelsite.urls' |
view | 'hotel-detail' |
viewname | 'hotel-detail' |
/app/.heroku/python/lib/python3.9/site-packages/django/urls/resolvers.py
, line 698, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "keyword arguments '{'slug': '', 'cityslug': 'zhuhai'}'" |
args | () |
candidate_pat | '/hotels/%(cityslug)s/%(slug)s/' |
candidate_subs | {'cityslug': 'zhuhai', 'slug': ''} |
converters | {'cityslug': <django.urls.converters.SlugConverter object at 0x7f6bc20d7040>, 'slug': <django.urls.converters.SlugConverter object at 0x7f6bc20d7040>} |
defaults | {} |
k | 'cityslug' |
kwargs | {'cityslug': 'zhuhai', 'slug': ''} |
lookup_view | 'hotel-detail' |
lookup_view_s | 'hotel-detail' |
m | None |
match | True |
msg | ("Reverse for 'hotel-detail' with keyword arguments '{'slug': '', 'cityslug': " "'zhuhai'}' not found. 1 pattern(s) tried: " "['hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\\\Z']") |
n | None |
params | ['cityslug', 'slug'] |
pattern | 'hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\Z' |
patterns | ['hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\Z'] |
possibilities | [([('hotels/%(cityslug)s/%(slug)s/', ['cityslug', 'slug'])], 'hotels/(?P<cityslug>[-a-zA-Z0-9_]+)/(?P<slug>[-a-zA-Z0-9_]+)/\\Z', {}, {'cityslug': <django.urls.converters.SlugConverter object at 0x7f6bc20d7040>, 'slug': <django.urls.converters.SlugConverter object at 0x7f6bc20d7040>})] |
possibility | [('hotels/%(cityslug)s/%(slug)s/', ['cityslug', 'slug'])] |
result | 'hotels/%(cityslug)s/%(slug)s/' |
self | <URLResolver 'travelsite.urls' (None:None) '^/'> |
text_candidate_subs | {'cityslug': 'zhuhai', 'slug': ''} |
v | 'zhuhai' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_CONNECT_TIME | '0' |
HTTP_HOST | 'www.china-travel-guide.net' |
HTTP_TOTAL_ROUTE_TIME | '0' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_VIA | '1.1 vegur' |
HTTP_X_FORWARDED_FOR | '18.232.179.191' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REQUEST_ID | 'ae69b10e-86e7-4e3b-9dff-62e342ae8ee3' |
HTTP_X_REQUEST_START | '1711705557747' |
PATH_INFO | '/hotels/zhuhai/brand/no-brand/' |
QUERY_STRING | '' |
RAW_URI | '/hotels/zhuhai/brand/no-brand/' |
REMOTE_ADDR | '10.1.40.191' |
REMOTE_PORT | '13747' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '22557' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/19.8.1' |
gunicorn.socket | <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.19.37.82', 22557), raddr=('10.1.40.191', 13747)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f6bb4eed2e0> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f6bbf8d4850> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
travelsite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['www.china-travel-guide.net'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_S3_CUSTOM_DOMAIN | 's3.us-east-2.amazonaws.com/travelguidechi' |
AWS_S3_OBJECT_PARAMETERS | {'CacheControl': 'max-age=94608000', 'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT'} |
AWS_S3_REGION_NAME | 'us-east-2' |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'travelguidechi' |
BASE_DIR | '/app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '128.199.222.144:11211'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CELERY_BROKER_URL | 'amqp://localhost' |
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.db.backends.postgresql_psycopg2', 'HOST': 'ec2-44-194-4-127.compute-1.amazonaws.com', 'NAME': 'd4pt2prg4ttlen', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'jhmavnkazuksei'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EASY_MAPS_GOOGLE_MAPS_API_KEY | '********************' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
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 | False |
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' |
IGNORABLE_404_URLS | [] |
IMPORT_EXPORT_USE_TRANSACTIONS | True |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'maincontent', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.sites', 's3direct', 'storages', 'import_export', 'robots', 'haversine', 'debug_toolbar') |
INTERNAL_IPS | ['180.150.112.207'] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian 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'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('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'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler'}}, 'root': {'handlers': ['console'], 'level': 'ERROR'}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ('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', 'django.middleware.security.SecurityMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_ROOT | '/app/travelsite' |
ROOT_URLCONF | 'travelsite.urls' |
S3DIRECT_DESTINATIONS | {'ctgcitys3': {'allowed': ['image/jpeg', 'image/png', 'video/mp4'], 'cache_control': 'max-age=2592000', 'content_disposition': 'attachment', 'content_length_range': (5000, 20000000), 'key': '********************', 'server_side_encryption': 'AES256'}, 'ctgs3': {'allowed': ['image/jpeg', 'image/png', 'video/mp4'], 'cache_control': 'max-age=2592000', 'content_disposition': 'attachment', 'content_length_range': (5000, 20000000), 'key': '********************', 'server_side_encryption': 'AES256'}, 'genericarticle': {'allowed': ['image/jpeg', 'image/png', 'video/mp4'], 'cache_control': 'max-age=2592000', 'content_disposition': 'attachment', 'content_length_range': (5000, 20000000), 'key': '********************', 'server_side_encryption': 'AES256'}} |
S3DIRECT_REGION | 'us-east-2' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
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_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | True |
SERVER_EMAIL | 'root@localhost' |
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 | True |
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 | 'travelsite.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 |
STATICFILES_DIRS | ('/app/travelsite/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
STATIC_ROOT | '/app/travelsite/staticfiles' |
STATIC_URL | 'https://s3.us-east-2.amazonaws.com/travelguidechi/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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']}}] |
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' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'travelsite.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.