2011-10-17 01:34:04 +02:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
from settings import DEPLOY_PATH, DEBUG
|
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
(r'^blog/', include("blog.urls")),
|
|
|
|
(r'^projects/', include("projects.urls")),
|
|
|
|
(r'^admin/', include(admin.site.urls)),
|
|
|
|
(r'^', include("main.urls")),
|
|
|
|
)
|
|
|
|
|
|
|
|
if DEBUG:
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '%s/static' % DEPLOY_PATH})
|
2011-11-04 22:10:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^', include("pages.urls"))
|
2011-10-17 01:34:04 +02:00
|
|
|
)
|