I have a simple django project created, as well as a static-only application to host the static files. That static-only application works fine at http://example.com/static/polls/style.css The problem is that I don't want to host all of my files inside that static application. Ideally, these app-specific styles should live inside the django directory at /home/user/webapps/djangoapp/project/polls/static Otherwise, whenever I add a new app or module, I have to manually copy over all the static to /home/user/webapps/static Is there a solution? My current settings.py:
asked 21 Dec '13, 11:26 MyDjangoLear... |
Unless you build your own solution to serve these files all automatically from their respective application directories this is not possible. It is standard Django practice for production environments to serve static files all from a single location, which is why they provide the For more information on deploying static files with Django please see this link. answered 21 Dec '13, 17:14 waynek |