mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Add extras for optional requirements
This commit is contained in:
parent
cfdaf6caca
commit
a2dffdb8e4
3 changed files with 14 additions and 1 deletions
3
AUTHORS
3
AUTHORS
|
|
@ -3,4 +3,5 @@ Gilles Fabio
|
|||
Jannis Leidel
|
||||
Marc Abramowitz
|
||||
Michael van Tellingen
|
||||
Mike Fogel
|
||||
Mike Fogel
|
||||
Peter Bittner
|
||||
|
|
|
|||
|
|
@ -32,6 +32,12 @@ Install django-configurations:
|
|||
|
||||
pip install django-configurations
|
||||
|
||||
or, alternatively, if you want to use URL-based values:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
pip install django-configurations[cache,database,email,search]
|
||||
|
||||
Then subclass the included ``configurations.Configuration`` class in your
|
||||
project's **settings.py** or any other module you're using to store the
|
||||
settings constants, e.g.:
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -41,6 +41,12 @@ setup(
|
|||
'django-cadmin = configurations.management:execute_from_command_line',
|
||||
],
|
||||
},
|
||||
extras_require={
|
||||
'cache': ['django-cache-url'],
|
||||
'database': ['dj-database-url'],
|
||||
'email': ['dj-email-url'],
|
||||
'search': ['dj-search-url'],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Framework :: Django',
|
||||
|
|
|
|||
Loading…
Reference in a new issue