Wednesday, March 25, 2015

What is Django?


It is a high level Python Web Framework that encourages rapid development and clean pragmatic design. To install the framework, the reference link under reference section needs to be downloaded and installed. 

minimal Installation steps were given in the docs/install/install.text file. The steps to be followed in general are below 

1. Install python 
First of all, get the python framework from the link https://www.python.org/download/ 
The download gave a package 

And it gave the installation success like this below 

Apparently, there seems to be a Java Python implementation also, which is called Jython downloadable from http://www.jython.org/ 

To verify whether the python is installed, type “python” in terminal, it was giving something like below 

Python 2.7.6 (default, Sep  9 2014, 15:04:36) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Now, we need to import django, before installation, tried to run the django command it gave error like below 

>>> import django
Traceback (most recent call last):
  File "", line 1, in
ImportError: No module named django
>>> 

Now for the installation, this text file was not giving any specific info, So after a search, it gave the below https://docs.djangoproject.com/en/1.7/topics/install/ 

and the installation is simple once after downloading the django package. enter the below command 

sudo python setup.py install 

after this, running the django command was giving like below. 

>>> import django
>>> print(django.get_version())
1.9
>>> 

References:


No comments:

Post a Comment