from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls import include,patterns,url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from pub import views

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^pub/', include('pub.urls')),
                       url(r'^admin/', include(admin.site.urls)),
                       (r'^static_site/(?P<path>.*)$', 'django.views.static.serve',
                        {'document_root': settings.MEDIA_ROOT}),
                       )

urlpatterns += staticfiles_urlpatterns()
