from django.conf import settings from django.conf.urls.defaults import patterns, url, include from django.views.generic.simple import direct_to_template urlpatterns = patterns('', # Example: # (r'^news/', include('news.foo.urls')), ) if getattr(settings, "DEBUG", False): # Load template urls for reference def h(*args, **kwargs): t = "%s/%s" % (kwargs['base'], kwargs['template']) if t.endswith('/'): t = "%sindex.html" % t kwargs['template'] = t return direct_to_template(*args, **kwargs) urlpatterns = patterns('', url(r"^(?Phtml)/(?P