Skip to content

brianmrdev/cookiecutter-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cookiecutter-django

Simple cookiecutter for django

Installation

First you must install cookiecutter:

$ pip install cookiecutter

Then you can use it to generate a project:

$ cookiecutter gh:brianmrdev/cookiecutter-django

Folder structure

The generated project will be in the folder my-project (the name of your project) and will contain the following files:

.
β”œβ”€β”€ apps                                # contains all applications
β”‚   β”œβ”€β”€ accounts                        # django app for accounts
β”‚   β”‚   β”œβ”€β”€ migrations                  # migrations for accounts app
β”‚   β”‚   β”œβ”€β”€ tests                       # tests for accounts app
β”‚   β”‚   β”‚   └── test_models.py
β”‚   β”‚   β”œβ”€β”€ admin.py
β”‚   β”‚   β”œβ”€β”€ apps.py
β”‚   β”‚   β”œβ”€β”€ models.py                   # models for accounts app
β”‚   β”‚   β”œβ”€β”€ urls.py                     # urls for accounts app
β”‚   β”‚   └── views.py
β”‚   β”œβ”€β”€ core                            # core application
β”‚   β”‚   β”œβ”€β”€ migrations                  # migrations for core app
β”‚   β”‚   β”œβ”€β”€ tests                       # tests
β”‚   β”‚   β”‚   β”œβ”€β”€ test_middleware.py
β”‚   β”‚   β”‚   β”œβ”€β”€ test_models.py
β”‚   β”‚   β”‚   β”œβ”€β”€ test_validators.py
β”‚   β”‚   β”œβ”€β”€ apps.py
β”‚   β”‚   β”œβ”€β”€ middleware                  # middlewares
β”‚   β”‚   β”œβ”€β”€ models.py                   # basic models. Can be used by any application
β”œβ”€β”€ config                              # contains all configuration files
β”‚   β”œβ”€β”€ settings                        # settings for project
β”‚   β”‚   β”œβ”€β”€ base.py                     # base settings
β”‚   β”‚   β”œβ”€β”€ develop.py                  # develop settings
β”‚   β”‚   β”œβ”€β”€ production.py               # production settings
β”‚   β”‚   └── staging.py                  # staging settings
β”‚   β”œβ”€β”€ asgi.py                         # asgi file (used by uvicorn)
β”‚   β”œβ”€β”€ wsgi.py                         # wsgi file (used by gunicorn)
β”‚   └── urls.py                         # urls main file
β”œβ”€β”€ requirements                        # requirements folder
β”‚   β”œβ”€β”€ base.txt                        # base requirements
β”‚   β”œβ”€β”€ develop.txt                     # develop requirements
β”‚   β”œβ”€β”€ production.txt                  # production requirements
β”‚   β”œβ”€β”€ staging.txt                     # staging requirements
β”‚   └── test.txt                        # test requirements
└── manage.py

About

Cookiecutter for django

Topics

Resources

License

Stars

Watchers

Forks