Skip to main content

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")),
)

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

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

djangocms_cznic_auctions-1.1.1.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_cznic_auctions-1.1.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_cznic_auctions-1.1.1.tar.gz.

File metadata

  • Download URL: djangocms_cznic_auctions-1.1.1.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for djangocms_cznic_auctions-1.1.1.tar.gz
Algorithm Hash digest
SHA256 50b719340226cca80d67132d749715f7e5ed2e4bb1e8b394fce143c0442ccba6
MD5 cd5f011dfe0675da832f051ac188ff70
BLAKE2b-256 374b9fcd49f2ae88613341e7e9af1236e2836187f6591b73dcc4e90b372673eb

See more details on using hashes here.

File details

Details for the file djangocms_cznic_auctions-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_cznic_auctions-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 760c0c0eedba3d625a8b0d883fd7d8a2855cff4745d9ea95903fe66c2ef77edf
MD5 d199d5f933876f36e5b53c96f0ad83f3
BLAKE2b-256 0cc39391a0717d2df10a20e4c19941a976f2b9fafddb8e00cad6c59a6f1f2087

See more details on using hashes here.

Supported by

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