urls.py 1.36 KB
Newer Older
fred's avatar
fred committed
1
from django.conf.urls import patterns, include, url
fred's avatar
fred committed
2 3
from django.conf import settings

fred's avatar
fred committed
4 5 6 7 8 9 10 11
from django.views.generic import RedirectView
from django.core.urlresolvers import reverse_lazy

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', 'panikweb.views.home', name='home'),
fred's avatar
fred committed
12
    url(r'^onair.json$', 'panikweb.views.onair', name='onair'),
fred's avatar
fred committed
13
    url(r'^program$', 'panikweb.views.program', name='program'),
Simon Daron's avatar
Simon Daron committed
14
    url(r'^grid$', 'panikweb.views.grid', name='grid'),
fred's avatar
fred committed
15 16
    url(r'^emissions/', include('emissions.urls')),
    url(r'^ckeditor/', include('ckeditor.urls')),
Simon Daron's avatar
Simon Daron committed
17
    url(r'^get$', 'panikweb.views.get', name='get'),
Simon Daron's avatar
Simon Daron committed
18
    url(r'^player$', 'panikweb.views.player', name='player'),
fred's avatar
fred committed
19

fred's avatar
fred committed
20 21 22 23
    (r'^api/v2/', include('fiber.rest_api.urls')),
    (r'^admin/fiber/', include('fiber.admin_urls')),
    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}),

fred's avatar
fred committed
24 25 26 27 28 29 30
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()

fred's avatar
fred committed
31 32 33
from django.conf.urls.static import static
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

fred's avatar
fred committed
34 35 36 37
urlpatterns += patterns('',
    (r'', 'fiber.views.page'),
)

fred's avatar
fred committed
38 39 40 41
try:
    from local_urls import *
except ImportError, e:
    pass