semvec/pypi-packages huggingface dataset:
django-highlander 0.0.1.dev0
Django management Command that prevents simultaneous instances
License: MIT

django-highlander
=================

There can be only one!

This is a Django `manage.py` Command class for long running tasks stated from crontab.

This will assure there is only one instance running at any time, so crontab will not be able to start a second
instance unless the previous one finished.

How to use
----------

Just inherit from Highlander instead of BaseCommand:

    from djangohighlander.command import Highlander

    class Command(Highlander):
        def handle(self, *args, **options):
            ...
django-logon-testcase 0.1.1
Simple enhancement to the TestCase which creates user and loggs him in.
License: MIT
Keywords: django-logon-testcase

=============================
Django Logon TestCase
=============================

.. image:: https://badge.fury.io/py/django-logon-testcase.svg
    :target: https://badge.fury.io/py/django-logon-testcase

.. image:: https://travis-ci.org/PetrDlouhy/django-logon-testcase.svg?branch=master
    :target: https://travis-ci.org/PetrDlouhy/django-logon-testcase

.. image:: https://codecov.io/gh/PetrDlouhy/django-logon-testcase/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/PetrDlouhy/django-logon-testcase

Simple enhancement to the TestCase which creates user and loggs him in.

Documentation
-------------

The full documentation is at https://django-logon-testcase.readthedocs.io.

Quickstart
----------

Install Django Logon TestCase::

    pip install django-logon-testcase

Use it in your tests:

.. code-block:: python

    from django.test import TestCase

    from logon_testcase import LogonMixin

    class MyTestCase(LogonMixin, TestCase):
         ...

The logged user is available in `self.user` variable.

Features
--------

You can get your own user for the test by overriding `get_user` function:

.. code-block:: python

    class MyTestCase(LogonMixin):
         def get_user(self):
             return User.objects.create()


Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2017-08-10)
++++++++++++++++++

* First release on PyPI.