from django.conf.urls.defaults import * from views import get, get_current, nop_form import os NOP_STATIC_DIR = os.path.join(os.path.dirname(__file__), 'site_media') urlpatterns = patterns('', url(r'^get_current/?$', get_current), url(r'^(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P\d{1,2})/(?P\d{1,2})/?$', get), url(r'^$', nop_form), url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': NOP_STATIC_DIR}), )