docs | |
---|---|
tests | |
license | |
release | |
contribute | |
share |
Django application for show advertising configurable. This application allows you to display advertising in a box (one or many images) and set (Time, url, etc.).
- Python 3.7 or higher.
- Django 3.0.8 or higher.
Install the package using pip:
pip install django-advertising
- Add 'advertising.apps.AdvertisingsConfig' to INSTALLED_APPS:
INSTALLED_APPS = (
...
'advertising.apps.AdvertisingsConfig',
)
- Apply migrations:
python manage.py makemigrations advertising
python manage.py migrate advertising
- Add this script in your file .html to use:
<script src="{% static 'advertising/js/events.js' %}"></script>
- Add this line in your file .html to use:
{% load image %}
{% get_images_advertising height=300 campaign='CMP1' %}
- Height: Min height element size.
- Campaign: Id unique Advertising Model. (String)
If you wish to play with media queries, use the img-advertising class.
It lets do something like that, where a campaign you can add different images and automatically change based on the set time.
- Fork this repo and install it
- Follow PEP8, Style Guide for Python Code
- Write code
- Write unit test
- Send pull request
- Issue Tracker: https://github.com/mapeveri/django-advertising/issues
- Source Code: https://github.com/mapeveri/django-advertising
- The project is licensed under the BSD License.