<filename>backend/volontulo_org/urls.py
# -*- coding: utf-8 -*-

"""
.. module:: __init__
"""

from os import path

from django.conf import settings
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.views.static import serve


PROJECT_ROOT = path.dirname(path.dirname(__file__))

urlpatterns = [
    url(r'', include('apps.volontulo.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^static/(?P<path>.*)$', serve, {
        'document_root': path.join(PROJECT_ROOT, 'static'),
    }),
    url(r'^media/(?P<path>.*)$', serve, {
        'document_root': settings.MEDIA_ROOT,
    }),
]

<filename>backend/volontulo_org/urls.py
# -*- coding: utf-8 -*-

"""
.. module:: __init__
"""

from os import path

from django.conf import settings
from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.views.static import serve


PROJECT_ROOT = path.dirname(path.dirname(__file__))

urlpatterns = [
    url(r'', include('apps.volontulo.urls')),
    url(r'^admin/', include(admin.site.urls)),

    url(r'^static/(?P<path>.*)$', serve, {
        'document_root': path.join(PROJECT_ROOT, 'static'),
    }),
    url(r'^media/(?P<path>.*)$', serve, {
        'document_root': settings.MEDIA_ROOT,
    }),
]

# -*- coding: utf-8 -*- .. module:: __init__