2011-01-06 03:02:08 +03:00
|
|
|
from django.conf import settings
|
2010-12-16 02:31:13 +03:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2011-04-30 00:51:50 +04:00
|
|
|
|
2010-12-16 02:31:13 +03:00
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
# from django.contrib import admin
|
|
|
|
# admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2011-12-03 00:07:54 +04:00
|
|
|
# Main pages
|
2012-02-22 21:10:24 +04:00
|
|
|
(r'^b2g/', include('b2g.urls')),
|
2012-02-24 20:50:10 +04:00
|
|
|
(r'^collusion/', include('collusion.urls')),
|
2012-02-22 21:10:24 +04:00
|
|
|
(r'^apps/', include('marketplace.urls')),
|
|
|
|
(r'^persona/', include('persona.urls')),
|
2012-03-02 03:10:53 +04:00
|
|
|
(r'', include('landing.urls')),
|
2011-12-03 00:07:54 +04:00
|
|
|
(r'', include('mozorg.urls')),
|
2012-02-13 20:02:04 +04:00
|
|
|
(r'', include('research.urls')),
|
2011-04-18 21:30:42 +04:00
|
|
|
|
2011-04-30 00:51:50 +04:00
|
|
|
# L10n example.
|
|
|
|
(r'^l10n_example/', include('l10n_example.urls')),
|
|
|
|
|
2010-12-16 02:31:13 +03:00
|
|
|
# Uncomment the admin/doc line below to enable admin documentation:
|
|
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
|
|
# (r'^admin/', include(admin.site.urls)),
|
|
|
|
)
|
2011-01-06 03:02:08 +03:00
|
|
|
|
|
|
|
## In DEBUG mode, serve media files through Django.
|
|
|
|
if settings.DEBUG:
|
|
|
|
# Remove leading and trailing slashes so the regex matches.
|
|
|
|
media_url = settings.MEDIA_URL.lstrip('/').rstrip('/')
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^%s/(?P<path>.*)$' % media_url, 'django.views.static.serve',
|
|
|
|
{'document_root': settings.MEDIA_ROOT}),
|
|
|
|
)
|