forked from mightylemon/mightylemon
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
executable file
·32 lines (27 loc) · 1.03 KB
/
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
27
28
29
30
31
32
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
# override the default handler500 so i can pass MEDIA_URL
handler500 = "mightylemon.views.server_error"
urlpatterns = patterns("",
url(r"^about/$", "django.views.generic.simple.direct_to_template", {
"template": "about.html",
}),
url(r"^hire-me/$", "django.views.generic.simple.direct_to_template", {
"template": "hire-me.html",
}),
url(r"^admin/doc/", include("django.contrib.admindocs.urls")),
url(r"^admin/(.*)", admin.site.root),
url(r"^blog/", include("blog.urls")),
url(r"^comments/", include("django.contrib.comments.urls")),
url(r"^links/", include("links.urls")),
url(r"^events/", include("events.urls")),
url(r"^$", "blog.views.homepage", name="oebfare_home"),
)
if settings.LOCAL_DEVELOPMENT:
urlpatterns += patterns("django.views",
url(r"^static/(?P<path>.*)", "static.serve", {
"document_root": settings.MEDIA_ROOT,
})
)