Well you beat me too it, I had too much wheat I think, feeling blah, I don’t know how people focus for 8 hours at home.
Yeah, originally I had only one def, sigh, well hello anyway, pleased to meet you and thank you for your book. Learning it to write a web page for my bro who is going from sales to mowing acreages and he wants a simple web page. That it’ll be.
Rhetorical question, why is coding documentation i.e. render() django doc so bloody hard to understand.
cheers tc
ps sorry, not sure what I’ve done now, lol.
[code]Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.9.6
Python Version: 2.7.12
Installed Applications:
[‘collection’,
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’]
Installed 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.auth.middleware.SessionAuthenticationMiddleware’,
‘django.contrib.messages.middleware.MessageMiddleware’,
‘django.middleware.clickjacking.XFrameOptionsMiddleware’]
Template error:
In template /home/tc/projects/webapp/collection/templates/index.html, error at line 0
Reverse for ‘about’ with arguments ‘()’ and keyword arguments ‘{}’ not found. 0 pattern(s) tried: [] 1 : {% extends ‘base.html’ %}
2 : {% block title %}
3 : Homepage - {{ block.super }}
4 : {% endblock title %}
5 :
6 : {% block content %}
7 :
Von Rat
8 :
9 :
{{ cn }}
10 : {% endblock content %}
Traceback:
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response
149. response = self.process_exception_by_middleware(e, request)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/tc/projects/webapp/collection/views.py” in index
6. return render(request, ‘index.html’, {‘cn’: cn},)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/shortcuts.py” in render
67. template_name, context, request=request, using=using)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/loader.py” in render_to_string
97. return template.render(context, request)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/backends/django.py” in render
95. return self.template.render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in render
206. return self._render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in _render
197. return self.nodelist.render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in render
992. bit = node.render_annotated(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in render_annotated
959. return self.render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py” in render
173. return compiled_parent._render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in _render
197. return self.nodelist.render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in render
992. bit = node.render_annotated(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/base.py” in render_annotated
959. return self.render(context)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py” in render
513. six.reraise(*exc_info)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py” in render
499. url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py” in reverse
600. return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
File “/home/tc/projects/webapp/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py” in _reverse_with_prefix
508. (lookup_view_s, args, kwargs, len(patterns), patterns))
Exception Type: NoReverseMatch at /
Exception Value: Reverse for ‘about’ with arguments ‘()’ and keyword arguments ‘{}’ not found. 0 pattern(s) tried: []
[/code]