updated urls
This commit is contained in:
parent
303877add6
commit
02319e51c8
1 changed files with 7 additions and 12 deletions
|
@ -1,29 +1,24 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
|
from django.conf.urls.static import static
|
||||||
|
|
||||||
from django.views.generic.simple import direct_to_template
|
from django.views.generic.simple import direct_to_template
|
||||||
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
from pinax.apps.account.openid_consumer import PinaxConsumer
|
# from pinax.apps.account.openid_consumer import PinaxConsumer
|
||||||
|
|
||||||
|
|
||||||
handler500 = "pinax.views.server_error"
|
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = patterns("",
|
urlpatterns = patterns("",
|
||||||
url(r"^$", direct_to_template, {
|
url(r"^$", direct_to_template, {
|
||||||
"template": "homepage.html",
|
"template": "homepage.html",
|
||||||
}, name="home"),
|
}, name="home"),
|
||||||
url(r"^admin/invite_user/$", "pinax.apps.signup_codes.views.admin_invite_user", name="admin_invite_user"),
|
|
||||||
url(r"^admin/", include(admin.site.urls)),
|
url(r"^admin/", include(admin.site.urls)),
|
||||||
url(r"^about/", include("about.urls")),
|
url(r"^about/", include("symposion.about.urls")),
|
||||||
url(r"^account/", include("pinax.apps.account.urls")),
|
url(r"^account/", include("account.urls")),
|
||||||
url(r"^openid/", include(PinaxConsumer().urls)),
|
# url(r"^openid/", include(PinaxConsumer().urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if settings.SERVE_MEDIA:
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
urlpatterns += patterns("",
|
|
||||||
url(r"", include("staticfiles.urls")),
|
|
||||||
)
|
|
Loading…
Reference in a new issue