This is a minimal Django 1.11 project. It was created with these steps:
- Create a virtualenv
- Manually install Django and other dependencies
pip freeze > requirements.txt
django-admin startproject project .
- Update
project/settings.py
to configureSECRET_KEY
,DATABASE
andSTATIC_ROOT
entries ./manage.py startapp welcome
, to create the welcome page's app
From this initial state you can:
- create new Django apps
- update settings to suit your needs
- install more Python libraries and add them to the
requirements.txt
file
The sample application code and templates in this repository contain database connection settings and credentials that rely on being able to use sqlite.
To run this project in your development machine, follow these steps:
-
(optional) Create and activate a virtualenv (you may want to use virtualenvwrapper).
-
Install dependencies:
pip install -r requirements.txt
-
Create a development database:
./manage.py migrate
-
If everything is alright, you should be able to start the Django development server:
./manage.py runserver
-
Open your browser and go to http://127.0.0.1:8000, you will be greeted with a welcome page.