urls.py
changeset 5 7358eeae14d8
parent 2 8d8ada9849be
child 6 4e819dd96e1f
--- a/urls.py	Thu Sep 17 18:52:21 2009 -0400
+++ b/urls.py	Thu Sep 24 15:20:30 2009 +0530
@@ -1,4 +1,8 @@
 from django.conf.urls.defaults import *
+from django.conf import settings
+from django.views.generic.simple import direct_to_template
+
+import os.path
 
 # Uncomment the next two lines to enable the admin:
 # from django.contrib import admin
@@ -14,4 +18,9 @@
 
     # Uncomment the next line to enable the admin:
     # (r'^admin/', include(admin.site.urls)),
+    url (r'^$', direct_to_template, {"template": "homepage.html"}, name="home"),
+    (r'^register/','content.views.register'),
+    (r'^logout/','content.views.logout'),
+    (r'^regthank/(?P<id>\d+)/$', 'content.views.regthank'),
+    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'site-content'}),
 )