Skip to content

This is a cookiecutter template for Django-3.1 with DRF-3.11, which can save you hours from the manual setup

Notifications You must be signed in to change notification settings

rajkumarbestha/cookiecutter-django-drf-api

Repository files navigation

Cookiecutter for Django DRF-API

python 3.5 3.6 3.7 django-3.1 drf-3.11 coverage-5.1

This is a cookiecutter template for Django-3.1 with DRF-3.11, which can save you hours from the manual setup

Best Development Practices

Features

  • Latest Django 3.1, Python 3.7 stable releases.
  • PostgreSQL database(or SQLite for developing).
  • Django REST Framework for public and private APIs.
  • Applications structure is as per standards.
  • CORS is configured to allow localhost, check settings.py to add more origins.
  • Start writing your APIs in views.py or viewsets/ straightway.
  • Microsoft Azure DevOps Integrated build.
  • Ready for instant deployment to AWS Lambda through Zappa.

Requirements

Install cookiecutter command line util:

sudo pip3 install cookiecutter
# or more secure (but add ~/.local/bin to $PATH env)
pip3 install --user cookiecutter

Usage

Generate a new Cookiecutter template layout and start using your project with ease:

cookiecutter gh:rajkumarbestha/cookiecutter-django-drf-api
cd <your_project_name>
pip install -r requirements.txt
python manage.py runserver

Test your Setup

Go to http://localhost:8000/<app_name>/test_setup.html

Deployment

# For the initial deployment
zappa deploy dev

# For subsequent deployments
zappa update dev

About

This is a cookiecutter template for Django-3.1 with DRF-3.11, which can save you hours from the manual setup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published