from . import settings

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^blog/', include('blog.urls', namespace='blog')),
    url(r'^', include('home.urls', namespace='home')),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns

if settings.DEBUG == True:
    urlpatterns += staticfiles_urlpatterns()

from . import settings

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^blog/', include('blog.urls', namespace='blog')),
    url(r'^', include('home.urls', namespace='home')),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns

if settings.DEBUG == True:
    urlpatterns += staticfiles_urlpatterns()
else:
    urlpatterns += patterns(
        '',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}))

Add urls for static files in non-debug