symposion_app/symposion_project/urls.py

39 lines
1.3 KiB
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-07-12 05:31:29 +00:00
import symposion.views
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-07-13 18:02:34 +00:00
url(r"^account/signup/$", symposion.views.SignupView.as_view(), name="account_signup"),
url(r"^account/login/$", symposion.views.LoginView.as_view(), name="account_login"),
2012-05-29 19:16:41 +00:00
url(r"^account/", include("account.urls")),
2012-07-12 05:31:29 +00:00
url(r"^dashboard/", symposion.views.dashboard, name="dashboard"),
2012-07-12 05:21:02 +00:00
url(r"^speaker/", include("symposion.speakers.urls")),
url(r"^proposals/", include("symposion.proposals.urls")),
url(r"^sponsors/", include("symposion.sponsorship.urls")),
2012-07-10 22:18:48 +00:00
url(r"^boxes/", include("symposion.boxes.urls")),
url(r"^teams/", include("symposion.teams.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)