from django.conf import settings
from django.conf.urls import patterns, url, include
from django.conf.urls.static import static
from django.contrib.gis import admin
from huts.urls import hut_patterns, api_patterns

admin.autodiscover()

# main site
urlpatterns = patterns('',
  url(r'', include((hut_patterns, 'huts', 'huts'))),
  url(r'^api/', include((api_patterns, 'huts_api', 'huts_api'))),
)

# admin
urlpatterns += patterns('',
  url(r'^admin/doc/',  include('django.contrib.admindocs.urls')),
  url(r'^admin/',      include(admin.site.urls)),
)

# serve static and media files during development
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

from django.conf import settings
from django.conf.urls import patterns, url, include
from django.conf.urls.static import static
from django.contrib.gis import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from huts.urls import hut_patterns, api_patterns

admin.autodiscover()

# main site
urlpatterns = patterns('',
  url(r'', include((hut_patterns, 'huts', 'huts'))),
  url(r'^api/', include((api_patterns, 'huts_api', 'huts_api'))),
)

# admin
urlpatterns += patterns('',
  url(r'^admin/doc/',  include('django.contrib.admindocs.urls')),
  url(r'^admin/',      include(admin.site.urls)),
)

# serve static and media files during development
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Use proper setting for static files in development
Use proper setting for static files in development
