symposion_app/symposion_project/urls.py

31 lines
918 B
Python
Raw Normal View History

2012-02-05 18:53:49 +00:00
from django.conf import settings
from django.conf.urls.defaults import *
2012-05-29 19:16:41 +00:00
from django.conf.urls.static import static
2012-02-05 18:53:49 +00:00
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()
2012-05-29 19:16:41 +00:00
# from pinax.apps.account.openid_consumer import PinaxConsumer
2012-02-05 18:53:49 +00:00
WIKI_SLUG = r"(([\w-]{2,})(/[\w-]{2,})*)"
2012-02-05 18:53:49 +00:00
urlpatterns = patterns("",
url(r"^$", direct_to_template, {
"template": "homepage.html",
}, name="home"),
url(r"^admin/", include(admin.site.urls)),
2012-05-29 19:16:41 +00:00
url(r"^account/", include("account.urls")),
2012-07-12 05:21:02 +00:00
url(r"^speaker/", include("symposion.speakers.urls")),
url(r"^proposals/", include("symposion.proposals.urls")),
2012-07-10 22:18:48 +00:00
url(r"^boxes/", include("symposion.boxes.urls")),
url(r"^markitup/", include("markitup.urls")),
2012-07-10 22:18:48 +00:00
url(r"^", include("symposion.cms.urls")),
2012-02-05 18:53:49 +00:00
)
2012-07-10 22:18:48 +00:00
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)