adam_avramov

Untitled

Oct 2nd, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. projectdir/settings/production.py
  2. ---------------------------------
  3. from common import *    # most settings are in settings/common.py
  4. ROOT_URLCONF = 'urlconfs.production'
  5.  
  6.  
  7. projectdir/urlconfs/production.py
  8. ---------------------------------
  9. from common import *    # all urls for prod are in urlconfs/common.py
  10.  
  11.  
  12. projectdir/urlconfs/common.py
  13. -----------------------------
  14. from django.conf.urls.defaults import patterns, include, url
  15. from django.contrib import admin
  16.  
  17. admin.autodiscover()
  18.  
  19. urlpatterns = patterns('',
  20.  
  21.     url(r'^admin/', include(admin.site.urls)),
  22.     url(r'^grappelli/', include('grappelli.urls')),
  23.  
  24.     url(r'^$', 'apps.songs.views.home', name='home'),
  25.     url(r'^songs/', 'apps.songs.views.songs', name='songs'),
  26.  
  27. )
Advertisement
Add Comment
Please, Sign In to add comment