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",
# ]
- If your django application requires extra application, then add
app_requires = ["your", "required", "apps"]
in theapp/__init__.py
file. - In project using your application, add following code to the
pro/settings.py
afterINSTALLED_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
Release history Release notifications | RSS feed
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-app-requires-0.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72137eec4ae69f6b56dbb45ebe2ba3f3c20892ed9e7fdd7e341282bc46b46c02 |
|
MD5 | 3130e7fa93e97bf548e2a0396e431aa7 |
|
BLAKE2b-256 | c0ad93c5099001172e3d28f7af224b9454db01a8ede4cb3c9af2494dfdad4c63 |
Close
Hashes for django_app_requires-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ddaec8e70542dd52e180f61dec304431558a6fab357818a6638414691643af |
|
MD5 | f0c4ac57fbfeea902074cf0d33d4ac79 |
|
BLAKE2b-256 | 2046619875c32d904dc26f16bb60d4bf3104fe4e75edf619776ecbc7a09961ea |