Powered by Maicol with the goal of optimize our development processes, we are happy to introduce our Django projects boilerplate packed and ready to use with the following features:
- Python 3.8
- Django 3.0.6
- Django REST Framework 3.11.0
- 12 Factor based settings
- PostgreSQL as database engine
- Docker as container engine
- Run tests with unittest or pytest
- django-allauth 0.41.0
-
First, get Cookiecutter. Trust me, it's awesome:
$ pip install cookiecutter
-
Run against this repo
$ cookiecutter https://github.com/mcra02/cookiecutter-django-api.git
You'll be prompted for some values. Provide them, then a Django project will be created for you.
-
Enter the project and take a look around:
$ cd project/ $ ls
-
Migration generated
$ python manage.py makemigrations
-
Migration database
$ python manage.py migrate
-
Run development
$ python manage.py runserver 0.0.0.0:8000
-
Build dockerfile
$ docker build -t "project_name" .
-
Migration database
$ docker run -itd --name backend-osffni -p 3000:8000 project_name
Please fill free to submit pull requests as well as open issues.