This is a cookiecutter template for Django-3.1 with DRF-3.11, which can save you hours from the manual setup
- 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.
Install cookiecutter
command line util:
sudo pip3 install cookiecutter
# or more secure (but add ~/.local/bin to $PATH env)
pip3 install --user cookiecutter
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
Go to http://localhost:8000/<app_name>/test_setup.html
# For the initial deployment
zappa deploy dev
# For subsequent deployments
zappa update dev