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/03/01 | 10. We are not care about Django's version and fastutils' version, so let the end user to choose the version. | |
v0.2.5 | 2021/03/01 | 11. Fix bdist_wheel problem that including useless files. |
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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6983784ebcbd1fe5eace50dd74b9bcd198b29f59d8db1e8846d6de2942b3f11 |
|
MD5 | d7888b42d96239e403c95eec6282694d |
|
BLAKE2b-256 | 09f4f176324a9757537266a5d96e17b67ae9bc1e0399ccdffebeeae102824c63 |
Close
Hashes for django_app_requires-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1393853f3af7ad5fed01d2a569bdf03caadbff8e96a1602a34f78762387386 |
|
MD5 | 832bfd13d21531f7ad7f7a33d67b0a45 |
|
BLAKE2b-256 | 170adb6cb7c4556ce94debcd976886d4c4da9fa4d0fc6553714d6ad5faadbdd2 |