old_contents: from __future__ import absolute_import
  
  from django.conf.urls import url, include
  from django.conf import settings
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  
  urlpatterns = [
      url(r'^api/admin/', include(admin.site.urls)),
      url(r'^api/accounts/', include('account.urls', namespace='accounts')),
      url(r'^api/config/', include('common.urls', namespace='config')),
      url(r'^api/projects/', include('project.urls', namespace='projects')),
      url(r'^api/partners/', include('partner.urls', namespace='partners')),
      # url(r'^robots.txt$', include('robots.urls')),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
  if settings.DEBUG:
      urlpatterns += staticfiles_urlpatterns()
  
new_contents: from __future__ import absolute_import
  
  from django.conf.urls import url, include
  from django.conf import settings
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  
  urlpatterns = [
      url(r'^api/admin/', include(admin.site.urls)),
      url(r'^api/accounts/', include('account.urls', namespace='accounts')),
      url(r'^api/config/', include('common.urls', namespace='config')),
      url(r'^api/projects/', include('project.urls', namespace='projects')),
      url(r'^api/partners/', include('partner.urls', namespace='partners')),
  ]
  
  urlpatterns += staticfiles_urlpatterns('/api/static/')
  
subject: make staticfiles_urlpatterns as default in main url