Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

from django.conf.urls.defaults import * 

from django.contrib import admin 

from django.conf import settings 

 

if settings.LAUNCH_PAGE: 

    urlpatterns = patterns('madrona.common.views', 

        url(r'^$', 'launch', name='launch'), 

        url(r'^map/', 'map', name='map'), 

    ) 

else: 

    urlpatterns = patterns('madrona.common.views', 

        url(r'^$', 'map', name='map'), 

    ) 

 

urlpatterns += patterns('madrona', 

    (r'^accounts/', include('madrona.openid.urls')), 

    (r'^accounts/profile/', include('madrona.user_profile.urls')), 

    (r'^faq/', include('madrona.simplefaq.urls')), 

    (r'^features/', include('madrona.features.urls')), 

    (r'^help/', include('madrona.help.urls')), 

    (r'^kml/', include('madrona.kmlapp.urls')), 

    (r'^layers/', include('madrona.layers.urls')), 

    (r'^loadshp/', include('madrona.loadshp.urls')), 

    (r'^manipulators/', include('madrona.manipulators.urls')), 

    (r'^news/', include('madrona.news.urls')), 

    (r'^screencasts/', include('madrona.screencasts.urls')), 

    (r'^staticmap/', include('madrona.staticmap.urls')), 

    (r'^studyregion/', include('madrona.studyregion.urls')), 

    (r'^bookmark/', include('madrona.bookmarks.urls')), 

    (r'^layer_manager/', include('madrona.layer_manager.urls')), 

    # Optional 

    #(r'^heatmap/', include('madrona.heatmap.urls')), 

) 

 

urlpatterns += patterns('', 

    (r'^admin/', include(admin.site.urls)), 

) 

 

# Useful for serving files when using the django dev server 

urlpatterns += patterns('', 

    (r'^media(.*)/upload/', 'madrona.common.views.forbidden'), 

    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), 

)