semvec/pypi-packages huggingface dataset:
django-garpix-slider 0.1.14
Django application slider carousel without jQuery-dependency.
License: MIT
Keywords: django garpix slider slideshow

Install
=======

::

    $ pip install django-garpix-slider

Add ‘garpix\_slider’ to INSTALLED\_APPS in settings.py:

::

    INSTALLED_APPS = (
        ...
        'garpix_slider',
        ...
    )

Make migrate:

::

    $ python manage.py migrate

Enjoy!

Using
=====

1. Add to your base template:

    {% load garpix\_slider %}

    {% garpix\_slider\_css %}
    {% garpix\_slider\_js %}

2. Add some Slider and SliderItem in admin panel. Set some *code* (for
   example - ‘my\_slider’) for your Slider.

3. Include slider on your page in your template:

   {% garpix\_slider ‘my\_slider’ images\_count=6 images\_in\_row=3 show\_arrows=True %}

Repository
==========

https://github.com/Garpix/django-garpix-slider

License
=======

MIT
django-garpix-helpers 0.1.3
Django helpers.
License: MIT
Keywords: django garpix helpers

Install
=======

::

    $ pip install django-garpix-helpers

Using
=====

**ActiveManager**

Get only active objects.

In your model:

::

    from garpix_helpers import ActiveModel

    class MyModel(ActiveModel):
        ...

Querieng:

    MyModel.active_objects.filter(...)

or

    MyModel.objects.filter(is_active=True)

Querieng:

::

    MyModel.active_objects.filter(...)

**Abstract Models**

- ActiveModel
- CreatedUpdatedModel
- ImageModel
- ImageRequiredModel
- TitleModel
- TitleRequiredModel

See sources for explanation.

**get\_file\_path**

Slugified file names:

::

    /uploads/YEAR/MONTH/SLUGIFIED_FILENAME.EXTENSION

In your model:

::

    from garpix_helpers import get_file_path

    class MyModel(models.Model):
        ...
        image = models.ImageField(upload_to=get_file_path)

Repository
==========

https://github.com/Garpix/django-garpix-helpers

License
=======

MIT