OK, here’s the simplest way/setting for Django. I am using mac, but it should be similar for other linux.
First. Installing an official release.
- Download the latest release from download page.
- Untar the downloaded file (e.g. tar xzvf Django-X.Y.tar.gz, where X.Y is the version number of the latest release).
- Change into the directory created in step 2 (e.g. cd Django-X.Y).
- If you’re using Linux, Mac OS X or some other flavor of Unix, enter the command sudo python setup.py install at the shell prompt.
After install it, run python in the command line, and check:
Second, is to Configure your database and create your first app.
From the command line, cd into a directory where you’d like to store your code, then run the following command:
django-admin.py startproject mysite
mysite/ manage.py mysite/ __init__.py settings.py urls.py wsgi.py
Now run the server by doing:
python manage.py runserver.
You will see somthing like this in your terminal:
Validating models... 0 errors found.Django version 1.4, using settings 'mysite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C.