Closed tobias47n9e closed 9 years ago
Instead of hardcoding localhost:8000
in the tests, can we instead use reverse
to obtain the url at runtime? Such as:
from django.core.urlresolvers import reverse
reverse(viewname='blog:index')
Also, all urls in the blog
app should come under their own namespace, preferably blog
, so that things like blog:index
and blog:blog
are easy to refer to the index and blog post within the blog app without name clashes.
@coolharsh55: Thanks for the suggestions. I also noticed that I need to close this, because the PR should go into the blog
branch.
This is the first skeleton of the blog app. From the url-root all patterns starting with '/blog/' will be redirected to the blog. As of now the blog only has one simple view that sends a text as HttpResponse. The reachability of the page and the unreachability of the subpages is tested. The folder contriblog is now part of the INSTALLED_APPS.
Part of: #45