This release is a pre-release and may not be stable for production use.
Django Oscar Promotions is an app for Dashboard-editable promotional content in Oscar. It was formerly a part of Oscar core, but has now been separated into a standalone app.
Installation
Add the following entries to INSTALLED_APPS:
INSTALLED_APPS = [
...,
'oscar_promotions.apps.PromotionsConfig',
'oscar_promotions.dashboard.apps.PromotionsDashboardConfig',
]
And the following URL patterns to your project’s URL configuration:
urlpatterns = [
...,
path("", apps.get_app_config("oscar_promotions").urls),
path("dashboard/promotions/", apps.get_app_config("oscar_promotions_dashboard").urls),
]
You can, if you prefer, include the dashboard URLs inside the URL configuration of your forked dashboard app.
If you want the dashboard views to be accessible from the dashboard menu, add them to OSCAR_DASHBOARD_NAVIGATION. The snippet below will add two menu items to the Content menu.
OSCAR_DASHBOARD_NAVIGATION[5]['children'] += [
{
'label': 'Content blocks',
'url_name': 'oscar_promotions_dashboard:promotion-list',
},
{
'label': 'Content blocks by page',
'url_name': 'oscar_promotions_dashboard:promotion-list-by-page',
},
]
Add the promotions context processor to your TEMPLATES setting:
TEMPLATES = {
'context_processors': [
...
'oscar_promotions.context_processors.promotions',
]
}
Metadata
Release files for django-oscar-promotions 1.0.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-oscar-promotions-1.0.0b1.tar.gz | 16.2 kB | Without provenance | Details for django-oscar-promotions-1.0.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_oscar_promotions-1.0.0b1-py3-none-any.whl | Python 3 | none | any | Details for django_oscar_promotions-1.0.0b1-py3-none-any.whl |
Total release size: 44.3 kB
Release files / django-oscar-promotions-1.0.0b1.tar.gz
| Download URL | django-oscar-promotions-1.0.0b1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
233e7dede0d3545dfa3af5ecfa99445f45ae5ddd21d46e3479977b851a6d278a
|
|
BLAKE2b-256 checksum How to use checksums |
3f858ea98ddf72cd6a2e65115e06410b6546e3bc22743c3fade980b2c21e6a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Release files / django_oscar_promotions-1.0.0b1-py3-none-any.whl
| Download URL | django_oscar_promotions-1.0.0b1-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
259a59148bb923767da915d692d11ce85b00e75020f2c4457794a7bbbe237ff3
|
|
BLAKE2b-256 checksum How to use checksums |
00cf84c5b51032edda4ebca7ad60995de7e6f1152db2b234598135292edf22a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Security for django-oscar-promotions 1.0.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.