from django.conf.urls.defaults import patterns, include, url from theme.views import home_t,home_c from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: (r'^search_c/$', home_c), (r'^search_t/$', home_t), (r'^home/',include('theme.themes.urls')), (r'^search_t/(?P\d{1,5})/$', home_t), (r'^search_c/(?P\d{1,5})/$', home_c), (r'^files/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), (r'^search/', include('haystack.urls')), # url(r'^$', 'theme.views.home', name='home'), # url(r'^theme/', include('theme.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), )