FlightDeck/urls.py

54 строки
1.2 KiB
Python
Исходник Обычный вид История

2010-10-09 02:24:25 +04:00
from django.conf.urls.defaults import *
from django.views import static
from django.conf import settings
2010-01-21 21:09:06 +03:00
2010-10-14 03:52:46 +04:00
from base import views as base_views
2011-03-15 23:49:46 +03:00
urls = [url(r'^$', base_views.homepage, name='home')]
if settings.DEBUG:
from django.contrib import admin
admin.autodiscover()
# admin
urls.extend([
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls))
])
urls.extend([
url(r'^media/(?P<path>.*)$', static.serve,
{'document_root': settings.MEDIA_ROOT}, name='media'),
2011-05-16 20:16:43 +04:00
# XPI build
2010-12-10 14:05:18 +03:00
(r'^xpi/', include('xpi.urls')),
2011-08-08 21:43:43 +04:00
# AMO upload
(r'^amo/', include('amo.urls')),
# /docs are an Apache rewrite
(r'^tutorial/', include('tutorial.urls')),
2010-06-19 16:32:20 +04:00
(r'^user/', include('person.urls')),
2011-04-08 04:27:31 +04:00
# Search
(r'^search/', include('search.urls')),
2011-05-16 20:16:43 +04:00
# Repackage
(r'^repackage/', include('repackage.urls')),
# Jetpack
2010-12-22 03:48:10 +03:00
(r'', include('jetpack.urls')),
2011-02-01 18:23:39 +03:00
# Monitor
(r'', include('base.urls')),
# Worker HACK
(r'worker-javascript.js$', static.serve, {
'document_root': settings.MEDIA_ROOT,
'path': 'lib/ace/worker-javascript.js'})
2010-02-07 05:15:11 +03:00
])
urlpatterns = patterns('', *urls)