dushyantss / django-tutorial-mysite

djangoproject.com tutorial for mysite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-tutorial-mysite

djangoproject.com tutorial for mysite

Dependency Management

We are using pip-tools for dependency management. We use the layered requirements approach. The steps are as follows:

  • We have two requirement files, requirements.in and dev-requirements.in
  • If we have a project dependency we use requirements.in, if we have a dev only dependency, we add it to dev-requirements.in.
  • When we add a new dependency to requirements.in, we need to run pip-compile, if we add to dev-requirements.in, we need to run pip-compile dev-requirements.in.
  • To install in production(no dev dependencies), use pip-sync. To install dev dependencies use pip-sync requirements.txt dev-requirements.txt.
  • To update dependencies, use pip-compile --upgrade, if upgrading dev dependencies use pip-compile --upgrade dev-requirements.in.

About

djangoproject.com tutorial for mysite

License:MIT License


Languages

Language:Python 95.5%Language:HTML 4.5%