-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathurls.py
22 lines (18 loc) · 838 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
from django.conf.urls import patterns, url, include
from django.contrib import admin; admin.autodiscover()
from django.conf import settings
from django.views.generic import TemplateView
import faq.views
urlpatterns = patterns('',
# Just a simple example "home" page to show a bit of help/info.
url(r'^$', TemplateView.as_view(template_name="home.html")),
# This is the URLconf line you'd put in a real app to include the FAQ views.
url(r'^faq/', include('faq.urls')),
# Everybody wants an admin to wind a piece of string around.
url(r'^admin/', include(admin.site.urls)),
# Normally we'd do this if DEBUG only, but this is just an example app.
url(regex = r'^static/(?P<path>.*)$',
view = 'django.views.static.serve',
kwargs = {'document_root': settings.MEDIA_ROOT}
),
)