9f1be6d74c1b

Cleanup Tuesdays - Cleaned the URLs up a bit.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 24 Mar 2009 18:51:21 -0400
parents 37dd8547d666
children 115fd0ac6843
branches/tags (none)
files blog/urls.py blog/views.py projects/urls.py projects/views.py rss/urls.py templates/blog/entry.html templates/blog/list.html templates/projects/list.html templates/projects/project.html

Changes

--- 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'),
--- 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,
--- 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'),
--- 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
--- 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<url>.+)/$', 'feeds', {'feed_dict': feeds}),
 )
\ No newline at end of file
--- 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 %}
     <div id="blog-entry">
         <h1 id="blog-entry-title">
-            <a href="{% url stevelosh.blog.views.entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
+            <a href="{% url blog-entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
                 {{ entry.title|typogrify }}
             </a>
         </h1>
@@ -50,7 +50,7 @@
     <div id="blog-entry-new-comment">
         <h1>Add your comment:</h1>
         <form id="new-comment-form" method="post" 
-              action="{% url stevelosh.blog.views.comment %}">
+              action="{% url blog-post-comment %}">
             <p class="form-label">
                 What's your name?
             </p>
--- 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 %}
             <div class="blog-list-entry">
                 <h2 class="blog-list-entry-title">
-                    <a href="{% url stevelosh.blog.views.entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
+                    <a href="{% url blog-entry entry.pub_date.year, entry.pub_date.month, entry.pub_date.day, entry.slug %}">
                         {{ entry.title|typogrify }}
                     </a>
                 </h2>
--- 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 %}
 			<div class="projects-list-entry">
 				<h2 class="projects-list-entry-title">
-					<a href="{% url stevelosh.projects.views.project project.slug %}">
+					<a href="{% url project-view project.slug %}">
 						{{ project.name|typogrify }}
 					</a>
 				</h2>
--- 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 %}
     <div id="projects-project">
         <h1 id="projects-project-name">
-            <a href="{% url stevelosh.projects.views.project project.slug %}">
+            <a href="{% url project-view project.slug %}">
                     {{ project.name|typogrify }}
             </a>
         </h1>
@@ -53,7 +53,7 @@
     <div id="projects-project-new-comment">
         <h1>Add your comment:</h1>
         <form id="new-comment-form" method="post" 
-              action="{% url stevelosh.projects.views.comment %}">
+              action="{% url project-post-comment %}">
             <p class="form-label">
                 What's your name?
             </p>