urls_main.py 242 Bytes
from django.conf.urls import patterns, include

from django.conf import settings

if settings.SITE_PREFIX:
  prefix = r'^%s/' % settings.SITE_PREFIX.lstrip('/')
else:
  prefix = r'^'

urlpatterns = patterns('',
  (prefix, include('urls')),
)