How do I uninstall Django Evolution?
I installed it in my dev project. I would like to remov开发者_JAVA技巧e it and any trace of it in my database and my django app, not to mention my python install. I found it didn't quite do what I needed, but that's another topic, and I'm moving to South.
Can I just delete the evolution tables in my django db, and remove it from the app settings? Or is there more to it?
Part 1: Remove the python egg (example when installed with easy-install and python 2.5)
bash$ locate easy-install.pth
/usr/lib/python2.5/site-packages/easy-install.pth
bash$ nano /usr/lib/python2.5/site-packages/easy-install.pth
and delete the egg if it is there (was not there in my case).
bash$ easy_install -m django-evolution
see where the egg was installed, and finally remove it:
bash$ rm -rf /usr/lib/python2.5/site-packages/django_evolution-0.6.1-py2.5.egg
Part 2: remove django_evolution from django
delete django_evolution from INSTALLED_APPS, i.e., open your settings.py and delete the line with 'django_evolution'
Part 3: clean up DB
To delete the django_evolution table:
Log in to your db (example with mysql):
bash$ mysql -u username -p
mysql> use XXX_django; # replace XXX_django by your django database (you can use "show databases;" to see which one is yours)
mysql> drop table django_evolution;
精彩评论