Description

About Django

Django is a free and open source web application framework, written in Python, which follows the model–view–controller (MVC) architectural pattern.

Django's primary goal is to ease the creation of complex, database-driven websites. Django emphasises reusability and "pluggability" of components, rapid development, and the principle of don't repeat yourself.

Python is used throughout, even for settings, files, and data models. Django also provides an optional administrative create, read, update and delete interface that is generated dynamically through introspection and configured via admin models.

On this environment

On this environment you will find python 2.7 and django 1.8 installed. There is already a sample project folder which you can run by typing the following commands

cd codeenv
python manage.py runserver 0.0.0.0:8000

This will start the django development webserver which you can then access by clicking the Webserver button at the top of your terminal.

To exit the webserver type Ctrl+C into the terminal.

If you want to create your own project you can:

  1. Delete the current sample project

    cd /var/code
    rm -rf /var/code/codeenv
  2. Create a new project using the django-admin command

    django-admin startproject [project name]

To find out more about django visit their excellent documents page at docs.djangoproject.com

 python  django  web