Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (46 sloc) 1.591 kb
36052d8c »
2010-10-08 static files are working now
1 import os
2
3 from django.conf.urls.defaults import *
05335690 »
2010-02-10 static files are running in prod and dev env, Bespin installation scr…
4 from django.views import static
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
5 from django.conf import settings
77db1410 »
2010-01-21 basic file structure
6
8d911c66 »
2010-10-13 flightdeck prefix is unnecessary
7 from base import views as base_views
fe93e1a7 »
2010-01-24 urls_locals switched off, example page is working
8
05335690 »
2010-02-10 static files are running in prod and dev env, Bespin installation scr…
9
fe93e1a7 »
2010-01-24 urls_locals switched off, example page is working
10
181da0d5 »
2010-09-16 switching off admin URL for servers with DEBUG=False
11 urls = [
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
12 # home
1233e39f »
2010-10-01 Refactoring
13 url(r'^$', base_views.homepage, name='home'),
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
14 ]
181da0d5 »
2010-09-16 switching off admin URL for servers with DEBUG=False
15
16 if settings.DEBUG:
fe93e1a7 »
2010-01-24 urls_locals switched off, example page is working
17
65e9da32 »
2010-10-14 Description moved
18 from django.contrib import admin
19 admin.autodiscover()
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
20 # admin
21 urls.extend([
22 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
23 (r'^admin/', include(admin.site.urls))
24 ])
496e0330 »
2010-02-10 views are loading the jetpack and version, switch between base and ve…
25
181da0d5 »
2010-09-16 switching off admin URL for servers with DEBUG=False
26 urls.extend([
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
27 # static files
28 # this should be used only in development server
36052d8c »
2010-10-08 static files are working now
29 url(r'^media/jetpack/(?P<path>.*)$', static.serve,
30 {'document_root': os.path.join(
b0fc3da5 »
2010-10-14 * Added figleaf and coverage to the code quality requirements section
31 settings.APP_MEDIA_PREFIX, 'jetpack', settings.APP_MEDIA_SUFFIX)
36052d8c »
2010-10-08 static files are working now
32 }, name='jetpack_media'),
33 url(r'^media/api/(?P<path>.*)$', static.serve,
34 {'document_root': os.path.join(
b0fc3da5 »
2010-10-14 * Added figleaf and coverage to the code quality requirements section
35 settings.APP_MEDIA_PREFIX, 'api', settings.APP_MEDIA_SUFFIX)
36052d8c »
2010-10-08 static files are working now
36 }, name='api_media'),
37 url(r'^media/tutorial/(?P<path>.*)$', static.serve,
38 {'document_root': os.path.join(
b0fc3da5 »
2010-10-14 * Added figleaf and coverage to the code quality requirements section
39 settings.APP_MEDIA_PREFIX, 'tutorial', settings.APP_MEDIA_SUFFIX)
36052d8c »
2010-10-08 static files are working now
40 }, name='tutorial_media'),
1233e39f »
2010-10-01 Refactoring
41 url(r'^media/(?P<path>.*)$', static.serve,
42 {'document_root': settings.MEDIA_ROOT}, name='media'),
05335690 »
2010-02-10 static files are running in prod and dev env, Bespin installation scr…
43
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
44 # API Browser
0f16f568 »
2010-12-10 XPI views moved out from jetpack
45 (r'^xpi/', include('xpi.urls')),
46
47 # API Browser
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
48 (r'^api/', include('api.urls')),
aaecd63a »
2010-05-06 new models prepared
49
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
50 # Tutorial
51 (r'^tutorial/', include('tutorial.urls')),
bab5a2ac »
2010-06-19 tutorial added
52
65e9da32 »
2010-10-14 Description moved
53 # Person
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
54 (r'^user/', include('person.urls')),
65e9da32 »
2010-10-14 Description moved
55
56 # Jetpack
9b98cd01 »
2010-09-30 refactoring - tabs to spaces + settings to conf
57 (r'', include('jetpack.urls'))
15624cf6 »
2010-02-07 grappelli made optional
58 ])
aaecd63a »
2010-05-06 new models prepared
59 urlpatterns = patterns('', *urls)
Something went wrong with that request. Please try again.