Setting up a Django work environment
In my journey to learn python, the next step is to learn Django. Django is a web framework powered by python, so to use it we need to make sure we have python installed:
1
2
adrian@my-xubuntu:~$ python -V
Python 2.7.3
Now we can go ahead and install the Django package
1
sudo apt-get install python-django
That installation makes Django automatically available to python, so you can do something like this:
1
2
3
4
5
6
7
adrian@my-xubuntu:~$ python
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 4, 1, 'final', 0)