symposion_app/symposion/urls.py

28 lines
876 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"^about/", include("symposion.about.urls")),
url(r"^account/", include("account.urls")),
# url(r"^openid/", include(PinaxConsumer().urls)),
2012-05-22 04:49:32 +00:00
url(r"^(?P<slug>%s)/$" % WIKI_SLUG, "cms.views.page", name="cms_page"),
url(r"^markitup/", include("markitup.urls")),
2012-02-05 18:53:49 +00:00
)
2012-05-29 19:16:41 +00:00
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)