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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s