forked from radoraykov/recycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
26 lines (19 loc) · 905 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from ecomap.views import spots, spot, home
# Uncomment the next two lines to enable the admin:
from ecomap.admin import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', home.HomeView.as_view(), name='home'),
url(r'^spots/$', spots.SpotsView.as_view(), name='spots'),
url(r'^spot/(?P<id>[0-9]+)$', spot.SpotView.as_view(), name='spot'),
# url(r'^mysite/', include('mysite.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)