from django.conf.urls.defaults import patterns, include from django.contrib import admin # replace this with wherever you unloaded the site_data directory SITE_DATA_PATH = '/home/cwebber/env/stormcloud/site_data/' urlpatterns = patterns( '', (r'^djadmin/(.*)', admin.site.root), (r'^etc/images/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(SITE_DATA_PATH, 'gfx/')}), (r'^etc/css/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(SITE_DATA_PATH, 'css/')}), (r'^etc/js/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(SITE_DATA_PATH, 'js/')}), ) # static patterns urlpatterns += patterns( '', (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'static/index.html'}, 'stormcloud_index'), (r'^where/$', 'django.views.generic.simple.direct_to_template', {'template': 'static/where.html'}, 'stormcloud_where'), (r'^registry/$', 'django.views.generic.simple.direct_to_template', {'template': 'static/registry.html'}, 'stormcloud_registry'), (r'^music/$', 'django.views.generic.simple.direct_to_template', {'template': 'static/music.html'}, 'stormcloud_music'), (r'^rsvp/$', 'django.views.generic.simple.direct_to_template', {'template': 'static/rsvp.html'}, 'stormcloud_rsvp'), )