Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Cookiecutter Django | 10,322 | 1 | a day ago | 5 | January 15, 2018 | 108 | bsd-3-clause | Python | ||
Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. | ||||||||||
Django Vue Template | 1,453 | 4 months ago | 41 | mit | Python | |||||
Django Rest + Vue JS Template | ||||||||||
Django React Boilerplate | 1,440 | 10 months ago | 42 | mit | Python | |||||
Django 3, React, Bootstrap 4 with Python 3 and webpack project boilerplate | ||||||||||
Pontoon | 1,259 | a day ago | 332 | bsd-3-clause | Python | |||||
Mozilla's Localization Platform | ||||||||||
Guides | 948 | 4 years ago | 13 | mit | ||||||
Guides for learning + doing better web and app development. Created by Coding for Entrepreneurs. | ||||||||||
Heroku Django Template | 851 | 3 years ago | 14 | Python | ||||||
A Django 2.0 base template featuring all recommended best practices for deployment on Heroku and local development. | ||||||||||
Bakerydemo | 689 | a day ago | 21 | bsd-3-clause | Python | |||||
Next generation Wagtail demo, born in Reykjavik | ||||||||||
Django Project Template | 622 | 7 months ago | 8 | Python | ||||||
Project template layout for Django 3.0+ | ||||||||||
Generic Django Project | 576 | 6 years ago | 4 | Python | ||||||
Generic Django Project I Use For All New Applications | ||||||||||
Django Heroku | 466 | 2,236 | 6 | 8 months ago | 7 | December 15, 2021 | 34 | bsd-3-clause | Python | |
[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56 |
This is a simple Django 3.0+ project template with my preferred setup. Most Django project templates make way too many assumptions or are just way too complicated. I try to make the least amount of assumptions possible while still trying provide a useful setup. Most of my projects are deployed to Heroku, so this is optimized for that but is not necessary.
$ django-admin.py startproject \
--template=https://github.com/jpadilla/django-project-template/archive/master.zip \
--name=Procfile \
--extension=py,md,env \
project_name
$ mv example.env .env
$ pipenv install --dev
These are common between environments. The ENVIRONMENT
variable loads the correct settings, possible values are: DEVELOPMENT
, STAGING
, PRODUCTION
.
ENVIRONMENT='DEVELOPMENT'
DJANGO_SECRET_KEY='dont-tell-eve'
DJANGO_DEBUG='yes'
These settings(and their default values) are only used on staging and production environments.
DJANGO_SESSION_COOKIE_SECURE='yes'
DJANGO_SECURE_BROWSER_XSS_FILTER='yes'
DJANGO_SECURE_CONTENT_TYPE_NOSNIFF='yes'
DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS='yes'
DJANGO_SECURE_HSTS_SECONDS=31536000
DJANGO_SECURE_REDIRECT_EXEMPT=''
DJANGO_SECURE_SSL_HOST=''
DJANGO_SECURE_SSL_REDIRECT='yes'
DJANGO_SECURE_PROXY_SSL_HEADER='HTTP_X_FORWARDED_PROTO,https'
It is possible to deploy to Heroku or to your own server.
$ heroku create
$ heroku addons:add heroku-postgresql:hobby-dev
$ heroku pg:promote DATABASE_URL
$ heroku config:set ENVIRONMENT=PRODUCTION
$ heroku config:set DJANGO_SECRET_KEY=`./manage.py generate_secret_key`
The MIT License (MIT)
Copyright (c) 2012-2017 José Padilla
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.