# HG changeset patch # User Steve Losh # Date 1237935081 14400 # Node ID 9f1be6d74c1bee9504be36d971f698f6f8434014 # Parent 37dd8547d666705678be5f79e30ab32143bcd838 Cleanup Tuesdays - Cleaned the URLs up a bit. diff -r 37dd8547d666 -r 9f1be6d74c1b blog/urls.py --- a/blog/urls.py Tue Mar 24 18:08:11 2009 -0400 +++ b/blog/urls.py Tue Mar 24 18:51:21 2009 -0400 @@ -1,6 +1,6 @@ from django.conf.urls.defaults import * -urlpatterns = patterns('stevelosh.blog.views', +urlpatterns = patterns('blog.views', url(r'^$', 'list', name='blog-list-newest'), url(r'^page/(\d+)/$', 'list', name='blog-list-page'), url(r'^comment/$', 'comment', name='blog-post-comment'), diff -r 37dd8547d666 -r 9f1be6d74c1b blog/views.py --- a/blog/views.py Tue Mar 24 18:08:11 2009 -0400 +++ b/blog/views.py Tue Mar 24 18:51:21 2009 -0400 @@ -57,7 +57,7 @@ spam=spam) new_comment.save() - return HttpResponseRedirect(reverse('stevelosh.blog.views.entry', + return HttpResponseRedirect(reverse('blog-entry', args=(entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, diff -r 37dd8547d666 -r 9f1be6d74c1b projects/urls.py --- a/projects/urls.py Tue Mar 24 18:08:11 2009 -0400 +++ b/projects/urls.py Tue Mar 24 18:51:21 2009 -0400 @@ -1,6 +1,6 @@ from django.conf.urls.defaults import * -urlpatterns = patterns('stevelosh.projects.views', +urlpatterns = patterns('projects.views', url(r'^$', 'list', name='project-list'), url(r'^comment/$', 'comment', name='project-post-comment'), url(r'^(.*)/$', 'project', name='project-view'), diff -r 37dd8547d666 -r 9f1be6d74c1b projects/views.py --- a/projects/views.py Tue Mar 24 18:08:11 2009 -0400 +++ b/projects/views.py Tue Mar 24 18:51:21 2009 -0400 @@ -45,5 +45,4 @@ spam=spam) new_comment.save() - return HttpResponseRedirect(reverse('stevelosh.projects.views.project', - args=(project.slug,))) \ No newline at end of file + return HttpResponseRedirect(reverse('project-view', args=(project.slug,))) \ No newline at end of file diff -r 37dd8547d666 -r 9f1be6d74c1b rss/urls.py --- a/rss/urls.py Tue Mar 24 18:08:11 2009 -0400 +++ b/rss/urls.py Tue Mar 24 18:51:21 2009 -0400 @@ -6,6 +6,6 @@ 'projects': LatestProjects, 'all': LatestEverything, } -urlpatterns = patterns('stevelosh.rss.views', +urlpatterns = patterns('rss.views', url(r'^(?P.+)/$', 'feeds', {'feed_dict': feeds}), ) \ No newline at end of file diff -r 37dd8547d666 -r 9f1be6d74c1b templates/blog/entry.html --- a/templates/blog/entry.html Tue Mar 24 18:08:11 2009 -0400 +++ b/templates/blog/entry.html Tue Mar 24 18:51:21 2009 -0400 @@ -16,7 +16,7 @@ {% block content %}

- + {{ entry.title|typogrify }}

@@ -50,7 +50,7 @@

Add your comment:

+ action="{% url blog-post-comment %}">

What's your name?

diff -r 37dd8547d666 -r 9f1be6d74c1b templates/blog/list.html --- a/templates/blog/list.html Tue Mar 24 18:08:11 2009 -0400 +++ b/templates/blog/list.html Tue Mar 24 18:51:21 2009 -0400 @@ -6,7 +6,7 @@ {% for entry in entries %}

- + {{ entry.title|typogrify }}

diff -r 37dd8547d666 -r 9f1be6d74c1b templates/projects/list.html --- a/templates/projects/list.html Tue Mar 24 18:08:11 2009 -0400 +++ b/templates/projects/list.html Tue Mar 24 18:51:21 2009 -0400 @@ -6,7 +6,7 @@ {% for project in projects %}

- + {{ project.name|typogrify }}

diff -r 37dd8547d666 -r 9f1be6d74c1b templates/projects/project.html --- a/templates/projects/project.html Tue Mar 24 18:08:11 2009 -0400 +++ b/templates/projects/project.html Tue Mar 24 18:51:21 2009 -0400 @@ -19,7 +19,7 @@ {% block content %}

- + {{ project.name|typogrify }}

@@ -53,7 +53,7 @@

Add your comment:

+ action="{% url project-post-comment %}">

What's your name?