DjangoCMS CZ.NIC Auctions
A group of Django CMS plugins for displaying a table with a list of domains in an auction. The data source is set in the website administration in the Constance config section. The default value is https://auctions-master.nic.cz/v1/public/auctions/.
Install
pip install djangocms-cznic-auctions
Add into settings.py:
INSTALLED_APPS = [
"constance",
"cznic_auctions",
...
]
AUCTIONS_CONFIG = (
("AUCTIONS_LIST_URL", ("https://auctions-master.nic.cz/v1/public/auctions/", "Auctions list URL.", str)),
("AUCTIONS_NOT_VERIFY_CERTIFICATE", (False, "Do not verify certificate.", bool)),
)
CONSTANCE_CONFIG = OrderedDict(
AUCTIONS_CONFIG,
)
CONSTANCE_CONFIG_FIELDSETS = {
"CZ.NIC Auctions": dict(AUCTIONS_CONFIG).keys(),
}
Add into urls.py:
urlpatterns = i18n_patterns(
...
path("auctions/", include(("cznic_auctions.urls", "auctions"), namespace="auctions")),
)
Custom templates
You can define your own template for the domain list.
Add into settings.py:
from cznic_auctions.constants import LIST_TEMPLATES
CZNIC_AUCTIONS_TEMPLATES = LIST_TEMPLATES + [
("my-awesome-template/list.html", "My awesome template"),
]
Site example
Along with the program, an example is stored in the repository that you can run in the docker.
Download the example:
curl https://gitlab.nic.cz/djangocms-apps/djangocms-cznic-auctions/-/archive/main/djangocms-cznic-auctions-main.zip?path=example --output example.zip
Extract the archive and go to the folder:
unzip example.zip
cd djangocms-cznic-auctions-main-example/example/
Build the image:
docker build -t auctions .
Run the site:
docker run --rm -d -p 8000:8000 --name auctions_example auctions
Open the site in your browser: http://localhost:8000/. You'll see what's in the screenshots.
Login to the administration: http://localhost:8000/admin with username admin and password admin.
Stop the site:
docker stop auctions_example
License
BSD License
Metadata
Release files for djangocms-cznic-auctions 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djangocms_cznic_auctions-1.5.0.tar.gz | 22.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djangocms_cznic_auctions-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.3 kB
Release files / djangocms_cznic_auctions-1.5.0.tar.gz
| Download URL | djangocms_cznic_auctions-1.5.0.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16f8cf789106ea8fdcd361f87185d8c78e7930fa3130afcaeb675f674cdd7ed1
|
|
BLAKE2b-256 checksum How to use checksums |
49e15e5d09b22d97fab1223f02fe8bb9fd77d5c002a7bb0d66fc7726a5d64529
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / djangocms_cznic_auctions-1.5.0-py3-none-any.whl
| Download URL | djangocms_cznic_auctions-1.5.0-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c130d5caf30fa734a58b6a131e3756bc9c9312d61dd38e033f6007fab3e216f
|
|
BLAKE2b-256 checksum How to use checksums |
43c7c7a9f3c88a361b24c209123e4d323142106cdfb107068eef2a94fd1e260c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|