Differences

This shows you the differences between two versions of the page.


django [2017/06/28 17:02] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== django ======
  
 +  * [[Apache mod_wsgi]]
 +  * [[python]]
 +
 +Installing django makes the modules available as native python ones. Once installed, you can use ''import django''.
 +
 +<code>
 +wget https://www.djangoproject.com/m/releases/1.11/Django-1.11.2.tar.gz
 +</code>
 +
 +<code>
 +python setup.py build
 +python setup.py install
 +</code>
 +
 +Verify the install:
 +
 +<code>
 +python
 +>>> import django
 +>>> 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>

Navigation
QR Code
QR Code django (generated for current page)