Django for Professionals by William S. Vincent

Django for Professionals by William S. Vincent

Author:William S. Vincent [William S. Vincent]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2019-07-19T00:00:00+00:00


environs[django]

There are many different ways to work with environment variables in Python but for this project we’ll use the environs package, which has a Django-specific option that installs a number of additional packages that help with configuration.

On the command line, install environs[django]. Note that you’ll probably need to add single quotes '' around the package if you’re using Zsh as your terminal shell, so run pipenv install 'environs[django]==8.0.0'. We’ll also need to spin down our Docker container and rebuild it with the new package.

Command Line $ docker-compose exec web pipenv install 'environs[django]==8.0.0' $ docker-compose down $ docker-compose up -d --build



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.