I decided that I want to upgrade the Django 1.2 project to Django 1.3 to use the new static file mechanisms. I uninstalled my old version of Django and followed the documentation instructions for installing the development version from svn.
The changes seem to have been accepted. That is, python -c "import django; print django.get_version ()" gives "1.3 alpha 1 SVN-14686". However, I cannot use 1.3 functions in my old project. If I do "python manage.py collectstatic --help", I get "Unknown command:" collectstatic ".
I tried to create a new project and do the same, and the collectstatic team worked. I burst into django.core.management, but can't really understand much. The docstring for get_commands () mentions:
The dictionary is cached on the first call and reused on subsequent calls.
Maybe this does not matter at all, but I wonder if my problem has something in common with caching (that is, the old version of the command dictionary is cached, which does not have new 1.3 commands?). Any thoughts?
source
share