Skip to main content

A simple tools auto add app extra requires.

Project description

django-app-requires

A simple tools auto add app extra requires.

Install

pip install django-app-requires

Usage

pro/settings


INSTALLED_APPS = [
    ...
    'django_app_requires',
    ...
]

from django_app_requires import add_requires
INSTALLED_APPS = add_requires(INSTALLED_APPS)

  1. If your django application requires extra application, then add app_requires = ["your", "required", "apps"] in the app/__init__.py file.
  2. In project using your application, add belowe code to the pro/settings.py after INSTALLED_APPS.
    from django_app_requires import add_requires
    INSTALLED_APPS = add_requires(INSTALLED_APPS)
    

Releases

v0.2.1 2020/10/26

  • Don't scan all app, exclude third-part apps.
  • Suggest to use collect_requirements command before doing project package.

v0.2.0 2020/10/25

  • Add collect_requirements function.

v0.1.1 2020/09/25

  • Add fastutils & magic-import in requirements.txt.
  • Fix problem of recursive required.

v0.1.0 2020/09/23

  • First release.

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

django-app-requires-0.2.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file django-app-requires-0.2.1.tar.gz.

File metadata

  • Download URL: django-app-requires-0.2.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8

File hashes

Hashes for django-app-requires-0.2.1.tar.gz
Algorithm Hash digest
SHA256 721e0c40da054ca48e7fd054d96a8552134e22e20a78c71e1effb2d61c2967ae
MD5 e9d4390f6a75e9efaa561d5f6ec569eb
BLAKE2b-256 f4062132387d6b6703c6dec493bce01b9ca56429482e5bebcccdca7d2a3e85ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page