A Django app that makes the use of coupons a simple task!
Project description
django-simple-coupons
A Django app that makes the use of coupons a simple task!
django-simple-coupons is a simple Django app to create and use promotional coupons in your website.
Downloading
django-simple-coupons is available on The Python Package Index (PyPI). You can simply use pip to install it:
$ pip install django-simple-coupons
Installing
1 - Add django_simple_coupons
inside INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
...
'django_simple_coupons',
]
2 - (Optional) If you want to use more than 12 chars (default) for your coupon code, add DSC_COUPON_CODE_LENGTH
variable in settings.py:
DSC_COUPON_CODE_LENGTH = 16
3 - (Optional) If you make use of another User model in your project, add DSC_USER_MODEL
variable in settings.py:
DSC_USER_MODEL = 'custom_auth.models.User' # app.module.class format (example)
4 - Run the migrations:
$ python manage.py makemigrations
$ python manage.py migrate
And that's it! django-simple-coupons should appear in your admin as Simple Coupons
.
Documentation
https://github.com/Wolfterro/django-simple-coupons/blob/master/docs/README.md
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
Built Distribution
Hashes for django-simple-coupons-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 384abac04991663691b1117090d61b73896c3eb6e76b07c2eb8dc5050cef2659 |
|
MD5 | a0014508298cdeb9b77e15d5db8eea9e |
|
BLAKE2b-256 | 619b250a27d4e1bae4d1dd35bf59d9ba56919e8aaf6ac19230cbf9fcbb669081 |
Hashes for django_simple_coupons-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0922305046fda63b59474962c997f27a6a768cd16e53958f10bcc1bfb1cd5c8d |
|
MD5 | fbab85b2eef6b7f8b672f6de51caa0de |
|
BLAKE2b-256 | b69f0ef090a09f815bb87db4d72ab5b908d28c18153dfcd534ea2900f919259f |