urls.py 380 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static

from admission import views


urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^(?P<ano>\d{4})/(?P<semestre>\w+)/$', views.detail, name='detail'),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)