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

your_app/__init__.py

app_requires = [
    "your",
    "required",
    "apps",
]

pro/settings


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

from django_app_requires import add_requires
INSTALLED_APPS = add_requires(INSTALLED_APPS)

# so the final INSTALLED_APPS = [
#     "your",
#     "required",
#     "apps",
#     "your_app",
#     "django_app_requires",
# ]

  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 following code to the pro/settings.py after INSTALLED_APPS.
    from django_app_requires import add_requires
    INSTALLED_APPS = add_requires(INSTALLED_APPS)
    

Releases

Version Released Time Content Notice
v0.1.0 2020/09/23 1. First release.
v0.1.1 2020/09/25 2. Add fastutils & magic-import in requirements.txt.
3. Fix problems of recursive required.
v0.2.0 2020/10/25 4. Add collect_requirements function. Removed
v0.2.1 2020/10/26 5. Don't scan all app, exclude third-part apps.
6. Suggest to use collect_requirements command before doing project package.
v0.2.2 2020/10/26 7. Output sorting.
v0.2.3 2021/04/12 8. Remove collect_requirements command.
9. Test with Django 3.2.
v0.2.4 2021/06/09 10. We are not care about Django's version and fastutils' version, so let the end user to choose the version.

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.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

django_app_requires-0.2.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-app-requires-0.2.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for django-app-requires-0.2.4.tar.gz
Algorithm Hash digest
SHA256 72137eec4ae69f6b56dbb45ebe2ba3f3c20892ed9e7fdd7e341282bc46b46c02
MD5 3130e7fa93e97bf548e2a0396e431aa7
BLAKE2b-256 c0ad93c5099001172e3d28f7af224b9454db01a8ede4cb3c9af2494dfdad4c63

See more details on using hashes here.

File details

Details for the file django_app_requires-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: django_app_requires-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for django_app_requires-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24ddaec8e70542dd52e180f61dec304431558a6fab357818a6638414691643af
MD5 f0c4ac57fbfeea902074cf0d33d4ac79
BLAKE2b-256 2046619875c32d904dc26f16bb60d4bf3104fe4e75edf619776ecbc7a09961ea

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