I am trying to understand the static structure that django 1.3 is trying to pursue:
I have a project with this structure:
Project someapp static someapp css etcetera models.py views.py urls.py urls.py manage.py settings.py
Now I want to overwrite the django admin. Therefore, I have to set these parameters in settings.py, which I liked below (basepath is the shortcut path to the current directory):
If I use the manage.py command to collect, it collects all static files (including admin files) in the "static" directory, as expected ... (in the main project directory)
However, this content is not shown until I add this directory to the STATICFILES_DIRS tuple, but then I need to change the STATIC_ROOT directory parameter, because otherwise I will get an error, they cannot be the same ...
I think I'm ignoring the obvious, because what I have to do to make it work seems redundant
python django
RoundTripToNowhere
source share