Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
django [2017/06/28 10:26] steve |
django [2017/06/28 11:02] steve |
||
---|---|---|---|
Line 21: | Line 21: | ||
>>> import django | >>> import django | ||
>>> print(django.get_version()) | >>> print(django.get_version()) | ||
+ | </code> | ||
+ | |||
+ | Using ''setup.py'', python does not have an uninstall function. You can, however, delete the packages files directly, acheiving the same result for the importable modules: | ||
+ | |||
+ | <code> | ||
+ | rm -fr /usr/local/lib/python2.7/dist-packages/Django-1.11.2-py2.7.egg | ||
+ | </code> | ||
+ | |||
+ | Django also leaves files in ''bin/'' | ||
+ | |||
+ | <code> | ||
+ | rm /usr/local/bin/django-admin /usr/local/bin/django-admin.py | ||
</code> | </code> |