DjangoCMS CZ.NIC Auctions
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangocms_cznic_auctions-1.4.0.tar.gz.
File metadata
- Download URL: djangocms_cznic_auctions-1.4.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5a88c7a26c35a67e809170c810e10b02475fe83cb1b253326e1460247a8c53b
|
|
| MD5 |
d9196683c3a3bf32e033e2a6cf54f0fa
|
|
| BLAKE2b-256 |
ee4f1addc253461a1afba491a4365b690aa72ee67d2005f41e40eb9f2f8c7781
|
File details
Details for the file djangocms_cznic_auctions-1.4.0-py3-none-any.whl.
File metadata
- Download URL: djangocms_cznic_auctions-1.4.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1252ea16a2b97953405ec9c3e32a16121bb4e878b828ce8a6f2cb293bb4b765e
|
|
| MD5 |
18407d45eb911fd8688166e50acabd03
|
|
| BLAKE2b-256 |
3b653e8ce750f36ee89e471c5eaf657a2a786ca0d116b227a0979468f73ac6f9
|