ReznikovRoman / cookiecutter-django-drf

Cookiecutter template for Django and DRF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django cookiecutter template

Installation

  1. Install Cookiecutter
$ pip install "cookiecutter>=1.7.0"
  1. Run it against this repository
$ cookiecutter https://github.com/ReznikovRoman/cookiecutter-django-drf
  1. You'll be prompted for some values. Provide them, then a Django project will be created for you.

Example:

full_name [Roman Reznikov]: John Doe
email [romanreznikov2002@yandex.ru]: john@gmail.com
github_username [ReznikovRoman]: JohnDoe
project_name [Django Project]: Reddit
project_slug [reddit]: 
project_short_description []: Reddit - project for ...
timezone [Europe/Moscow]: 
use_sentry [y]: 
use_pycharm [y]: n
use_black [n]:
  1. New folder (reddit_app) will be created, now you can enter the project:
$ cd reddit_app
$ ls
  1. Create a git repo:
$ git init
$ git add .
$ git commit -m "Initial commit"
  1. Install project requirements:
$ python -m venv venv
$ source venv/bin/activate
$ pip install pip-tools
$ make compile-requirements
$ make sync-requirements
$ pip install -r requirements.txt
  1. Build and run docker containers
$ docker-compose -f docker-compose.yml build
$ docker-compose -f docker-compose.yml up

About

Cookiecutter template for Django and DRF


Languages

Language:Python 89.2%Language:Shell 4.2%Language:Dockerfile 3.5%Language:Makefile 3.1%