' homepage' is not a registered namespace
| Request Method: | GET |
|---|---|
| Request URL: | http://localhost:8000/ |
| Django Version: | 2.0.6 |
| Exception Type: | NoReverseMatch |
| Exception Value: | ' homepage' is not a registered namespace |
| Exception Location: | /Users/timvogt/newdjango/lib/python3.6/site-packages/django/urls/base.py in reverse, line 86 |
| Python Executable: | /Users/timvogt/newdjango/bin/python3 |
| Python Version: | 3.6.5 |
| Python Path: | ['/Users/timvogt/coolapp', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', '/Users/timvogt/newdjango/lib/python3.6/site-packages'] |
| Server time: | Mon, 25 Jun 2018 20:46:07 +0000 |
/Users/timvogt/coolapp/homepage/templates/homepage/base.html, error at line 2| 1 | <p> |
|---|---|
| 2 | <a href='{% url ' homepage:index ' %}'>main</a> |
| 3 | <a href='{% url ' homepage:topics ' %}'>topics</a> {% block content %} {% endblock content %} |
from .models import Topic
def index(request):
"""the homepage for the homepage"""
return render(request, 'homepage/index.html', name="something")
Base.html:
<a href='{% url ' something ' %}'>main</a>
Follow the same process for every view and template
Sent via the BlackBerry Hub for Android
Original Message
From: timt...@gmail.com
Sent: June 26, 2018 20:08
To: django...@googlegroups.com
Reply-to: django...@googlegroups.com
Subject: NoReverseMatch at / ' homepage' is not a registered namespace
and get these errors:
Tim
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/588239f0-581b-4764-bd96-51d23faa5ab3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You don't have of did not configure the urls.pythere should be an url which points to the view
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e5ecca0b-e638-470d-98d7-32ce1477f62a%40googlegroups.com.