Echochi / django-playground

Create projects to get a feel for django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Development

Set the VIRTUAL_ENV path

$ source ./bin/activate

Install Django (and other requirements)

$ pip install -r requirements.txt

Check Django is installed correctly

$ python -m django --version

Create a new project, if necessary

A new project has already been created in src/

$ django-admin startproject <src>

This automatically creates a default app src/app/

Create a new app

$ cd src/
$ python manage.py startapp <appname>

Serve the app

$ python <src>/manage.py runserver 8000

Port is optional. The server starts on port 8000 by default.

Check your app

Navigate to http://localhost:8000 to see you app up and running.

About

Create projects to get a feel for django


Languages

Language:Python 94.9%Language:JavaScript 1.9%Language:HTML 1.9%Language:CSS 1.2%Language:Shell 0.1%