Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 51 lines (37 sloc) 1.108 kB
36052d8 @zalun static files are working now
zalun authored
1 from django.conf.urls.defaults import *
0533569 @zalun static files are running in prod and dev env, Bespin installation scr…
zalun authored
2 from django.views import static
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
3 from django.conf import settings
77db141 @zalun basic file structure
zalun authored
4
8d911c6 @clouserw flightdeck prefix is unnecessary
clouserw authored
5 from base import views as base_views
fe93e1a urls_locals switched off, example page is working
Piotr Zalewa authored
6
0533569 @zalun static files are running in prod and dev env, Bespin installation scr…
zalun authored
7
181da0d @zalun switching off admin URL for servers with DEBUG=False
zalun authored
8 urls = [
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
9 # home
1233e39 @zalun Refactoring
zalun authored
10 url(r'^$', base_views.homepage, name='home'),
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
11 ]
181da0d @zalun switching off admin URL for servers with DEBUG=False
zalun authored
12
13 if settings.DEBUG:
fe93e1a urls_locals switched off, example page is working
Piotr Zalewa authored
14
65e9da3 @zalun Description moved
zalun authored
15 from django.contrib import admin
16 admin.autodiscover()
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
17 # admin
18 urls.extend([
19 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
20 (r'^admin/', include(admin.site.urls))
21 ])
496e033 @zalun views are loading the jetpack and version, switch between base and ve…
zalun authored
22
181da0d @zalun switching off admin URL for servers with DEBUG=False
zalun authored
23 urls.extend([
1233e39 @zalun Refactoring
zalun authored
24 url(r'^media/(?P<path>.*)$', static.serve,
25 {'document_root': settings.MEDIA_ROOT}, name='media'),
0533569 @zalun static files are running in prod and dev env, Bespin installation scr…
zalun authored
26
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
27 # API Browser
0f16f56 @zalun XPI views moved out from jetpack
zalun authored
28 (r'^xpi/', include('xpi.urls')),
29
30 # API Browser
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
31 (r'^api/', include('api.urls')),
aaecd63 @zalun new models prepared
zalun authored
32
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
33 # Tutorial
34 (r'^tutorial/', include('tutorial.urls')),
bab5a2a @zalun tutorial added
zalun authored
35
65e9da3 @zalun Description moved
zalun authored
36 # Person
9b98cd0 @zalun refactoring - tabs to spaces + settings to conf
zalun authored
37 (r'^user/', include('person.urls')),
65e9da3 @zalun Description moved
zalun authored
38
39 # Jetpack
082de1c @andymckay add in monitor page (bug 604073)
andymckay authored
40 (r'', include('jetpack.urls')),
08f01c7 @zalun check.py refactoring
zalun authored
41
42 # Monitor
7cfde65 @zalun all paths ending with worker-javascript.js will load the media/lib/ac…
zalun authored
43 (r'', include('base.urls')),
44
45 # Worker HACK
46 (r'worker-javascript.js$', static.serve, {
47 'document_root': settings.MEDIA_ROOT,
48 'path': 'lib/ace/worker-javascript.js'})
15624cf grappelli made optional
Piotr Zalewa authored
49 ])
aaecd63 @zalun new models prepared
zalun authored
50 urlpatterns = patterns('', *urls)
Something went wrong with that request. Please try again.