Djenesis / contributr

An online tool for programmers to find projects they can contribute to and project maintainers to find contributors.
MIT License
16 stars 16 forks source link

Add blog app with simple view and necessary settings and url-patterns #46

Closed tobias47n9e closed 9 years ago

tobias47n9e commented 9 years ago

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

coolharsh55 commented 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.

tobias47n9e commented 9 years ago

@coolharsh55: Thanks for the suggestions. I also noticed that I need to close this, because the PR should go into the blog branch.