Skip to main content

No project description provided

Project description

Kapt ads

A minimal application for advertising management with Django.

preview kapt_ads

Requirements

  • Python 3.10+
  • Django 4.2+

Installation

  • run pip install kapt_ads
  • add the following apps to your INSTALLED_APPS (in the same order):
    "kapt_ads",  # kapt-ads must appear before django_quill
    "django_quill"
    
  • run python manage.py migrate kapt_ads
  • include kapt-ads urls in your root url conf (avoid using "ads" in your path)
    path("kaptiver/", include("kapt_ads.urls")),
    

Settings

KAPT_ADS_LOCATION_FORMAT_CHOICES: choices of ads formats. Defaults to:

(
    ("square", _("Square")),
    ("horizontal_banner", _("Horizontal banner")),
    ("vertical_banner", _("Vertical banner")),
)

KAPT_ADS_QUILL_CONFIGS: a dictionary describing the config for the Quill text editor. See documentation of django-quill.

KAPT_ADS_MEDIA_DIRECTORY: name of the directory in which images will be stored (default: "kaptiver")

Django CMSPlugin Ads

A plugin for Django CMS is provided in this package. To use it:

  • add kapt_ads.contrib.cmsplugin_ads to your INSTALLED_APPS
  • run python manage.py migrate cmsplugin_ads

Settings

KAPT_CMSPLUGIN_ADS_CACHE_DURATION: number of seconds the ads should be cached (default: 3600)

KAPT_CMSPLUGIN_ADS_TEMPLATES: choices of templates to display the ads (default: (("ads.html", _("Default")),))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kapt_ads-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

kapt_ads-0.1.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file kapt_ads-0.1.0.tar.gz.

File metadata

  • Download URL: kapt_ads-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for kapt_ads-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed65f4bc4a82430972037e4af3093f19a3dba49b34bac37f3027ed07722af314
MD5 c7067ec2c0e9648db92d74712ef7c194
BLAKE2b-256 9c11af30833ea82bcc0837c2098419b72ed5b4ce1dd64045d54995cbb2d17c61

See more details on using hashes here.

File details

Details for the file kapt_ads-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kapt_ads-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for kapt_ads-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d19ee722ce60fff43fa972faee79f7468f4779f66f398410d9e86dbf086a4040
MD5 591ad99ab4e15ccd374a595142f3b63e
BLAKE2b-256 6e8c939603784e78f41f979701afa9398e86ad19b64bf690986197cdfc3032d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page