Django

Django is a web application framework built on Python.

Emerge
Test if Python's import of django:

Sample project
First create the project in the working directory:

To start development server navigate to the project directory and run:

It will use port  by default; the port can be changed by adding a chosen port number after the runserver command above. Do not use this server for production! It should only be used for development.

Apache modules
When planning on using Apache for production emerge the WSGI (Web Server Gateway Interface) module:

Enable the WSGI module in Apache's configuration file:

Example to set up a given virtual host with WSGI:

IMPORTANT: For some funny reason the default wsgi.py file (what you should have renamed to myProject.py, if you follow the example) created by:

is not properly configured to work with Apache or other severs expect for Django's own. To fix it you must add this line in your wsgi.py file:

Usage
As of June 16th, 2015 (UTC) dev-python/django-1.7.7 supports 2.7, 3.3 and 3.4 therefore you are free to choose any of them.

Moving on
At this point continue by following this tutorial:

https://docs.djangoproject.com/en/1.8/intro/tutorial01/