summaryrefslogtreecommitdiff
path: root/nop/urls.py
blob: 85857ce2dba8b77b4a0712c5ea86fda1a01e8370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from django.conf.urls import patterns, url, include
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<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<hour>\d{1,2})/(?P<minute>\d{1,2})/?$',
        get),
    url(r'^/?$', nop_form),
    url(r'^/static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': NOP_STATIC_DIR}),
)