python - Django:: Serve static files in different paths for each "app" -
i serve static (assets) files in following structure (which coincidentally same local path:
https app/[appname]/static/* local_path app/[appname]/static/*
currently, urls.py
app
folder
from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'', 'app.views.load'), )
how going map static requests each application
static folder?
i know not task python. in production, routed nginx before reaching python.. now, need implemented inside django.
Comments
Post a Comment