Created
February 26, 2009 14:37
-
-
Save philippbosch/70878 to your computer and use it in GitHub Desktop.
django project settings templates for django-pb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.sysconfig import get_python_lib | |
execfile(get_python_lib() + "/pb/settings_base.py") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls.defaults import * | |
from django import VERSION as DJANGO_VERSION | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', | |
(r'^admin/doc/', include('django.contrib.admindocs.urls')), | |
) | |
if DJANGO_VERSION[0]==1 and DJANGO_VERSION[1]>=1: | |
urlpatterns += patterns('', (r'^admin/', include(admin.site.urls))) | |
else: | |
urlpatterns += patterns('', (r'^admin/(.*)', admin.site.root)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment