~campmumbai/+junk/padmaApi

« back to all changes in this revision

Viewing changes to urls.py

  • Committer: Sanjay B
  • Date: 2009-06-14 14:51:10 UTC
  • Revision ID: b@pad.ma-20090614145110-x8hc9mrqak6r1doo
first commit - fetches all data from pad.ma

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import *
 
2
import settings
 
3
 
 
4
# Uncomment the next two lines to enable the admin:
 
5
# from django.contrib import admin
 
6
# admin.autodiscover()
 
7
 
 
8
urlpatterns = patterns('',
 
9
    # Example:
 
10
    # (r'^padmaApi/', include('padmaApi.foo.urls')),
 
11
    (r'jPadma/', 'lists.views.fetchJson'),
 
12
    (r'list/', 'lists.views.listDetail'),
 
13
    (r'^$', 'lists.views.index'),
 
14
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
 
15
    # to INSTALLED_APPS to enable admin documentation:
 
16
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 
17
 
 
18
    # Uncomment the next line to enable the admin:
 
19
    # (r'^admin/(.*)', admin.site.root),
 
20
)
 
21
 
 
22
if settings.LOCAL_DEVELOPMENT:
 
23
    urlpatterns += patterns("django.views",
 
24
        url(r"%s(?P<path>.*)/$" % settings.MEDIA_URL[1:], "static.serve", {
 
25
            "document_root": settings.MEDIA_ROOT,
 
26
        })
 
27
    )
 
28
 
 
29