Skip to content

Commit

Permalink
Add django-enable cli utility
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Dec 27, 2020
1 parent 32025c7 commit 48f8439
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/20.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add CLI utility
12 changes: 9 additions & 3 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ Sample execution flow

.. code-block:: bash
python -mapp_enabler install djangocms-blog~=1.2.1
django-enabler install djangocms-blog~=1.2.1
python manage.py migrate
After this the django application is configured and functional.

Additional configuration steps might be required according to the application
features and support level and must be documented by the application itself.

Alternatively you can execute the module itself:

.. code-block:: bash
python -mapp_enabler install djangocms-blog~=1.2.1
.. _enable_cmd:

Expand All @@ -55,7 +61,7 @@ Example:

.. code-block:: bash
python -mapp_enabler enabler djangocms_blog
django-enabler enable djangocms_blog
See :ref:`limitations` for limitations and caveats.
Expand All @@ -74,7 +80,7 @@ Installation is executed via the ``install`` command which a

.. code-block:: bash
python -mapp_enabler install djangocms-blog~=1.2.0
django-enabler install djangocms-blog~=1.2.0
.. note:: ``django-app-enabler`` is not intended as a replacement (or sidekick) of existing package / dependencies manager.
The installation step is only intended as a convenience command for those not sticking to any specific workflow.
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ app_enabler = *.html *.png *.gif *js *jpg *jpeg *svg *py *mo *po
docs =
django<3.1

[options.entry_points]
console_scripts =
django-enabler = app_enabler.main:execute

[upload]
repository = https://upload.pypi.org/legacy/

Expand Down

0 comments on commit 48f8439

Please sign in to comment.