Install and Start Project Django

  • Posted on: 2 April 2015
  • By: oon

Install Django with pip package manager, for example inside (virtual) environment, install version 1.8 LTS:

pip install "django < 1.9"

You can check your install version (not only using pip also) with command django-admin

django-admin --version

 for example it will output: 1.8

Now we are ready to create Django project:

django-admin startproject rdjango

it will create directory rdjango, and inside the directory there will be these files:

./manage.py

./rdjango

./rdjango/__init__.py

./rdjango/settings.py

./rdjango/urls.py

./rdjango/wsgi.py

Configure database on settings.py if you want to use PostgreSQL or MySQL, then run:

python manage.py migrate

and now you can run the Django (development environment) using:

python manage.py runserver

[1]https://www.djangoproject.com/download/

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.