valentinogagliardi / Ponee

Licence: mit
A lightweight Django template ready for Heroku

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ponee

Django Rest React Pycon
🐍 Demo repo for Pycon X talk "Decoupling Django with Django REST (and a sprinkle of React)"
Stars: ✭ 72 (+75.61%)
Mutual labels:  heroku, django, django-rest-framework
Project Dashboard With Django
Agile Project Management dashboard with Django REST and Vue.js
Stars: ✭ 25 (-39.02%)
Mutual labels:  heroku, django, django-rest-framework
Generator Django Rest
Yeoman generator for a Django REST/GraphQL API, an optional React SPA & lots more!
Stars: ✭ 77 (+87.8%)
Mutual labels:  heroku, django, django-rest-framework
Crud App Vuejs Django
This is simple crud app and searchFilter made using vuejs and django. Used to explain the tutorial present on https://medium.com/@shubhambansal_89125/crud-app-using-vue-js-and-django-516edf4e4217 https://medium.com/@shubhambansal_89125/searchfilter-using-django-and-vue-js-215af82e12cd
Stars: ✭ 174 (+324.39%)
Mutual labels:  heroku, django, django-rest-framework
Django Bookworm
A fun project to store my learning from each book that I read.
Stars: ✭ 23 (-43.9%)
Mutual labels:  django, django-rest-framework
Docker Tutorial
Docker 基本教學 - 從無到有 Docker-Beginners-Guide 教你用 Docker 建立 Django + PostgreSQL 📝
Stars: ✭ 906 (+2109.76%)
Mutual labels:  django, django-rest-framework
Zhihu
django + vue 仿知乎
Stars: ✭ 24 (-41.46%)
Mutual labels:  django, django-rest-framework
Django Rest Framework Social Oauth2
python-social-auth and oauth2 support for django-rest-framework
Stars: ✭ 941 (+2195.12%)
Mutual labels:  django, django-rest-framework
Heroku Buildpack Python
The official Heroku buildpack for Python apps.
Stars: ✭ 849 (+1970.73%)
Mutual labels:  heroku, django
Drf Tus
A Tus (tus.io) library for Django Rest Framework
Stars: ✭ 15 (-63.41%)
Mutual labels:  django, django-rest-framework
Book Code
《Django开发从入门到实战》书籍各章节源代码
Stars: ✭ 28 (-31.71%)
Mutual labels:  django, django-rest-framework
Server
Django server for Travel Mate (Project: nomad)
Stars: ✭ 36 (-12.2%)
Mutual labels:  django, django-rest-framework
Django Photoblog
Photographer portfolio website powered by Django Framework. Features photo gallery with infinite scrolling, tagging, thumbnail generation and CMS for creating pages. Configured for Heroku and S3.
Stars: ✭ 19 (-53.66%)
Mutual labels:  heroku, django
Algo Phantoms Backend
💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨
Stars: ✭ 36 (-12.2%)
Mutual labels:  django, django-rest-framework
Django rest example
Django/DRF rest application example.
Stars: ✭ 17 (-58.54%)
Mutual labels:  django, django-rest-framework
Heroku Django Template
A Django 2.0 base template featuring all recommended best practices for deployment on Heroku and local development.
Stars: ✭ 887 (+2063.41%)
Mutual labels:  heroku, django
Seven23 server
Fully manual budget app to track your expenses. Opensource, with privacy by design.
Stars: ✭ 20 (-51.22%)
Mutual labels:  django, django-rest-framework
Djangorestframework Book
Django REST framework 3 中文文档, API参考, 最佳实践指南
Stars: ✭ 28 (-31.71%)
Mutual labels:  django, django-rest-framework
Djangorestframework Mvt
Serve Mapbox Vector Tiles with Django and Postgres
Stars: ✭ 33 (-19.51%)
Mutual labels:  django, django-rest-framework
Cmdb
CMDB 配置管理系统 资产管理系统
Stars: ✭ 747 (+1721.95%)
Mutual labels:  django, django-rest-framework

ponee

A lightweight Django template ready for Heroku

Motivation

Loosely inspired by the beloved django-cookiecutter, ponee is a lightweight Django template without too many assumptions.

What's included

  • Custom user
  • 12-Factor based setting via django-environ
  • Requirements for production and development
  • Django REST framework
  • Django CORS headers
  • Security settings
  • Heroku support with django-heroku
  • Testing and coverage

Ponee uses PostgreSQL for development.

Installation

Prepare a virtual environment in a folder of choice and install Django:

mkdir mynewproject && cd $_
python3 -m venv venv
source venv/bin/activate
pip install django

Then install the template:

django-admin startproject \ 
    --template https://github.com/valentinogagliardi/ponee/archive/master.zip \
    --name=Procfile \
    --extension=py,example yournewproject .

Install the dependencies:

pip install -r ./requirements/dev.txt

Copy the example env to .env and adjust the variables as needed:

cp .env.example .env

Before starting off make the migrations for the custom User:

python manage.py makemigrations
python manage.py migrate

and your good to run the development server!

Deploy on Heroku

Before starting off you should have a Git repo in your project folder:

git init

Login on Heroku with the Heroku CLI:

heroku login

Create a new app (you can change its name later):

heroku apps:create --region eu

Copy .env.prod.example to .env.prod and adjust the variables as needed. Now run:

python configure_prod_envs.py

The script reads all the env variables from .env.prod and runs heroku config:set for each.

Finally make a commit and push the code:

git add .
git commit -m "First commit"
git push heroku master

Test

Running tests:

python manage.py test

Running tests with coverage:

coverage run --omit='*/venv/*' manage.py test
coverage report
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].