All Projects → dulacp → cookiecutter-django-herokuapp

dulacp / cookiecutter-django-herokuapp

Licence: MIT license
A cookiecutter template for creating Django 1.7+ / Python 3 projects quickly, thought optimized for Heroku in the meantime.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
Batchfile
5799 projects
HTML
75241 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to cookiecutter-django-herokuapp

neovim-config
Modern NeoVim config for IDE-like development
Stars: ✭ 89 (+345%)
Mutual labels:  configuration
meta pinger
a Heroku-hosted Rails app that pings Heroku apps (including itself) at 10 minute intervals to keep the servers from idling :)
Stars: ✭ 50 (+150%)
Mutual labels:  heroku
kodepos
📮 Indonesian postal code search API by place name, village or city.
Stars: ✭ 32 (+60%)
Mutual labels:  heroku
ha-config-ataraxis
My Home Assistant Configs. If you like what you see, please ⭐️my repo. It would encourage me a lot 🤘
Stars: ✭ 146 (+630%)
Mutual labels:  configuration
animated-tailwindcss
A configuration to use Animate.css with Tailwind CSS.
Stars: ✭ 75 (+275%)
Mutual labels:  configuration
dotfiles
Dotfiles repo
Stars: ✭ 12 (-40%)
Mutual labels:  configuration
iam
💚 Introduction Bot for slack teams:
Stars: ✭ 12 (-40%)
Mutual labels:  heroku
Manuals-and-Tutorials
Manuals about everything I work with
Stars: ✭ 15 (-25%)
Mutual labels:  configuration
arkenv
Type-safe Kotlin configuration by delegates
Stars: ✭ 15 (-25%)
Mutual labels:  configuration
Web-Development-Path-And-Resources
Will Add a path and some resources in this repo for web D for my first year students
Stars: ✭ 46 (+130%)
Mutual labels:  heroku
demo-laravel-crud
My practice for basic CRUD of Laravel5 on Heroku.
Stars: ✭ 22 (+10%)
Mutual labels:  heroku
Chatbot
A Deep-Learning multi-purpose chatbot made using Python3
Stars: ✭ 36 (+80%)
Mutual labels:  heroku
flask-app-blueprint
Flask App Blueprint / Boilerplate including user registration/login, admin only section, CRUD on database, and more. Based on Python, Flask, PostgreSQL, et al. deployed on Heroku. The #1 starter project.
Stars: ✭ 144 (+620%)
Mutual labels:  heroku
config-loader
[DEPRECATED] A loader for webpack configuration files
Stars: ✭ 14 (-30%)
Mutual labels:  configuration
IPL-ML-2018
Predicting IPL match results. https://kuharan.github.io/IPL-ML-2018/
Stars: ✭ 14 (-30%)
Mutual labels:  heroku
profig
Powerful configuration management for Scala (JSON, properties, command-line arguments, and environment variables)
Stars: ✭ 25 (+25%)
Mutual labels:  configuration
nazar
Electronic component detection, identification and recognition system in realtime from camera image using react-native and tensorflow for classification along with Clarifai API with option to search the component details from web with description shown from Octopart fetched from server
Stars: ✭ 25 (+25%)
Mutual labels:  heroku
laravel-conditional-providers
THIS PACKAGE HAS BEEN DEPRECATED — Load Laravel service providers and facades based on the current environment.
Stars: ✭ 26 (+30%)
Mutual labels:  configuration
RDMnet
Implementation of ANSI E1.33
Stars: ✭ 29 (+45%)
Mutual labels:  configuration
hoc-element-table
📦 A Vue 3.x Table Component built on Webpack 5
Stars: ✭ 26 (+30%)
Mutual labels:  configuration

cookiecutter-django-herokuapp

A cookiecutter template for Django 1.10 / Python 3 only, that is really optimized for running on twelve-factor-app platforms (like Heroku or DigitalOcean).

Build status

Concept

I tried to be minimalistic, I mean no choice has been made concerning :

  • the css library, specify which one you want in the bower.json file
  • external django apps, I don't see the point to choose this for you ;)

In fact the only choice made here is deploying on a Twelve-Factor App Platform.

Requirements

This cookiecutter template uses features that exists only in cookiecutter 0.9.0 or higher.

Features


  • Python 3 only, sorry guys but I had to move on...
  • For Django 1.10
  • Heroku optimized stack
  • Gulp tasks to build the static files and support livereload
  • Static served by whitenoise from the django app (advice to setup a cache instance above like CloudFlare)
  • Instructions on how to configure the Amazon S3 bucket
  • Instructions on how to deploy the app in less than 5 minutes

Q&A

Why using waitress as the production server

Gunicorn is actually designed to be used behing a buffering reverse proxy (e.g. nginx). In other words, without this buffering reverse proxy you expose your production server to a slow network attacks. If you want to dig on this particular topic, read the great article of @etianen Don't use Gunicorn to host your Django sites on Heroku

Usage

First, get cookiecutter.

$ pip install cookiecutter

Now run it against this repo.

$ cookiecutter https://github.com/dulacp/cookiecutter-django-herokuapp.git

You'll be prompted for some questions, answer them, then it will create a Django project for you.

Static handling

Live reloading and Sass CSS compilation

You can take advantage of live reloading and Sass / Compass CSS compilation with the included Gulp tasks.

Make sure that nodejs is installed. Then in the project root run :

$ npm install

Now you just need :

$ gulp launch

Now your turn !

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].