This is a Django project template for use with django-admin startproject
.
It implements the single project and app folder layout described by, among others, softwarecrafts.uk (wayback) and noumenal.es (wayback).
django-admin startproject --template=https://github.com/Kagee/django-single-folder-project-template/archive/refs/heads/main.zip project_name .
This wil make a Django project name project_name
in the current folder.
We setup the project in the current folder so we do not make two levels of folders name project_name
.
The project folder template is a combination of the upstream project_template
and app_template
folders.
In addition to this, the template will
- Add itself as a installed app in
INSTALLED_APPS
- Configures a template directory in
project_name/templates
usingTEMPLATES.DIRS
- Configures a static folder in
project_name/static
usingSTATICFILES_DIRS
This is a template for a project using Django where, I quote
... building a single Django app is too much boilerplate.
It is useful for very simple prototypes or demos, or where you are sure that your app will not be re-used in another Django project.
Since this is pretty much just a minor modification of the default Django project and app templates, it has the same license as Django, see LICENSE.