Dockerize and make ready to deploy Django projects
Project description
django-dockerizer
A package used to dockerize and make ready Django projects to deploy.
Installation
- Run
pip install django-dockerizer
Usage
Without celery
- Run
dockerize
command in project's base directory (in the same directory with manage.py file)
With celery
- Run
dockerize --celery
command in project's base directory (in the same directory with manage.py file)
Requirements
- It creates
requirements.txt
files inbin/dev
andbin/prod
folders. And all packages which installed in virtual environment(if there is an activated one) or in the system, will be written inrequirements.txt
files. Just be sure there are Django, psycopg2-binary, celery, django_celery_results, django_celery_beat in INSTALLED_APPS in settings.py
Database
- It configures docker-compose for Postgresql database, so be sure your DATABASE configuration in settings.py is okay for Postgresql database with credentials in .env file
Credits
Originally developed by Isa Arifoglu
License
Released under MIT License.
Supporting
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_dockerizer-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b893ffd50a8054418e7689ce53dfcebcf2e156fb454f13943733a932fe4d27e4 |
|
MD5 | 00f061cc2c2a798342ac0561c3cf532a |
|
BLAKE2b-256 | 95f8fd507de81b2ea262c9923b2a805c84451a7c99e3525fef65be5c0b58b8b8 |