DJango – Installation and create a simple Django project

Assume you have Python 2.7.8 and virtualenv installed on an Ubuntu. Refer to the following references if they are not yet ready.

 

1. Create a new virtualenv.

pyenv virtualenv 2.7.8 django-poc

 

2. Switch to that newly created virtualenv.

pyenv activate django-poc

 

3. Install the Django.

pip install django

 

4. Verify the installation.

python -c "import django; print(django.get_version())"

 

5. Scaffold a new project called django_poc.

django-admin.py startproject django_poc

 

6. cd to django_poc and start the Django app at port 8000 by:

python manage.py runserver 0.0.0.0:8000

 

7. Welcome to Django!
install-and-create-django-project
 

Done =)

Reference: Writing your first Django app, part 1

One thought on “DJango – Installation and create a simple Django project”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.