|
Revision 43:544f3cf6a4f0, 498 bytes
(checked in by Jeffrey Gelens <jeffrey@…>, 3 months ago)
|
|
Upgraded source to work with Django Trunk (soon 1.0)
|
| Line | |
|---|
| 1 | from django.conf.urls.defaults import * |
|---|
| 2 | from django.conf import settings |
|---|
| 3 | from django.contrib import admin |
|---|
| 4 | admin.autodiscover() |
|---|
| 5 | |
|---|
| 6 | urlpatterns = patterns('', |
|---|
| 7 | (r'^admin/(.*)', admin.site.root), |
|---|
| 8 | (r'^comments/', include('django.contrib.comments.urls')), |
|---|
| 9 | (r'^', include('blog.urls')), |
|---|
| 10 | ) |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | if settings.DEBUG: |
|---|
| 14 | urlpatterns += patterns('', |
|---|
| 15 | (r'^static/(?P<path>.*)$', 'django.views.static.serve', |
|---|
| 16 | {'document_root': '/Users/jeffrey/Code/Apps/gelens_org/static'}), |
|---|
| 17 | ) |
|---|