NewsBlur-viq/urls.py

48 lines
2.3 KiB
Python
Raw Normal View History

from django.conf.urls.defaults import include, url, patterns
2009-06-16 03:08:55 +00:00
from django.conf import settings
from apps.reader import views as reader_views
from apps.static import views as static_views
2009-06-16 03:08:55 +00:00
urlpatterns = patterns('',
url(r'^$', reader_views.index, name='index'),
(r'^reader/', include('apps.reader.urls')),
(r'^add/?', reader_views.index),
(r'^try/?', reader_views.index),
(r'^site/(?P<feed_id>\d+)?', reader_views.index),
(r'^folder/(?P<folder_name>\d+)?', reader_views.index),
2012-05-02 19:00:17 -07:00
(r'^social/\d+/.*?', reader_views.index),
(r'^user/.*?', reader_views.index),
(r'^null/.*?', reader_views.index),
(r'^story/.*?', reader_views.index),
(r'^rss_feeds/', include('apps.rss_feeds.urls')),
(r'^classifier/', include('apps.analyzer.urls')),
(r'^profile/', include('apps.profile.urls')),
(r'^import/', include('apps.feed_import.urls')),
(r'^api/', include('apps.api.urls')),
(r'^recommendations/', include('apps.recommendations.urls')),
(r'^statistics/', include('apps.statistics.urls')),
(r'^social/', include('apps.social.urls')),
(r'^oauth/', include('apps.oauth.urls')),
(r'^mobile/', include('apps.mobile.urls')),
(r'^m/', include('apps.mobile.urls')),
(r'^push/', include('apps.push.urls')),
url(r'^about/?', static_views.about, name='about'),
url(r'^faq/?', static_views.faq, name='faq'),
url(r'^api/?', static_views.api, name='api'),
url(r'^press/?', static_views.press, name='press'),
url(r'^feedback/?', static_views.feedback, name='feedback'),
2011-12-06 17:57:02 -08:00
url(r'^iphone/?', static_views.iphone, name='iphone'),
url(r'^firefox/?', static_views.firefox, name='firefox'),
url(r'zebra/', include('zebra.urls', namespace="zebra", app_name='zebra')),
2009-06-16 03:08:55 +00:00
)
if settings.DEBUG:
2009-06-16 03:08:55 +00:00
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
2009-07-25 02:21:12 +00:00
)
urlpatterns += patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_ROOT}),
)