Skip to content

Commit

Permalink
Django crontab updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoooo committed Jun 11, 2019
1 parent 6d7e0ee commit 20dfde4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Welcome to WAVES Documentation !
=======================================
.. warning::
If you migrate from 1.6.X to 1.7, and if you have any stored password
A security issue has been fixed, you need to update your passwords in databases with this command:

./manage.py updates_keys


.. toctree::
:maxdepth: 1
Expand Down
9 changes: 8 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,19 @@ WAVES is developed with `Django <https://www.djangoproject.com/>`_. You may need

.. code-block:: bash
(.venv) user@host:~your_app$ ./manage.py wqueue start
(.venv) user@host:~your_app$ ./manage.py runserver
(.venv) user@host:~your_app$ ./manage.py crontab add
Go to http://127.0.0.1:8000/admin to setup your services
WAVES-core comes with default front pages visible at http://127.0.0.1:8000

.. seealso::
Django crontab for other crontab setup

.. note::
From previous release, a known bug occured while using wqueue command. This bug block you from using this daemon queue.
Please use "crontab" instead, and contact us if you experience issues.


2. Install WAVES-core inside existing Django project
----------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions waves/wcore/management/daemoncommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def handle(self, **options):
:param options: list of possible django command options
:return: Nothing
"""
# FIXME process queue unterminated processes
import warnings
warnings.warn("This method has a known bug: please use crontab setup see Docs")
exit(0)
try:
self.action = options.pop('action')
if self._class is None:
Expand Down

0 comments on commit 20dfde4

Please sign in to comment.