Skip to content

jeffmax/simple-django-template

Repository files navigation

Simple Django Project Template

This is a simple django project meant to quickly test or prototype something in Django.

Quick start

virtualenv test_env
cd test_env
source bin/activate
git clone https://github.com/jeffmax/simple-django-template.git myapp
cd myapp
pip install -r requirements.txt
./run-server.sh

Navigate to http://localhost:8000 and you should see OK.

Features

Single directory

No separate app directory. The root directory itself will be put on the PYTHONPATH and serve as an app directory.

Convenience scripts

  • run-server.sh: setup the necessary environment variables and run a django test server (now uses uwsgi, not runserver)
  • run-tests.sh: setup the necesseary environment variables and run django tests. Must be run from the directory it resides in for PYTHONPATH reasons.

Notes

  • The settings file is setup to use a sqlite3 database to make the django TestCase happy.
  • There is an empty models.py file because the django testrunner insists on finding one or it will not find your tests.py.
  • DEBUG is set to True in the settings file.

Credits

About

A template for simple single directory django project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published