Fake Counter
Fake Counter is a simple Django app for displaying a random number based on the time of day.
Quick start
Add “fake_count” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'fake_count', )Add these settings to “settings.py” file in your project:
CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': os.path.join(BASE_DIR, 'fake_count_cache'), } } # optional MAX_COUNT_DAY = integer value # default 500 MAX_COUNT_NIGHT = integer value # default 200Load “fake_count_tmpl” in your html template and use it like “fake_counter”:
{% load fake_count_tmpl %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <p>Some text</p> <p>{% fake_counter %}</p> </body> </html>
Metadata
Release files for fake-count 0.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 | Provenance | Actions |
|---|---|---|---|---|
| fake_count-0.0.tar.gz | 2.8 kB | Without provenance | Details for fake_count-0.0.tar.gz |
Release files / fake_count-0.0.tar.gz
| Download URL | fake_count-0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6247db2eda08235817b5716d8aa3d86b71878942f80b6558f17fc40ba87fea04
|
|
BLAKE2b-256 checksum How to use checksums |
2c970d2c3e756c308025a5d804290384b070204a90127cdbaf304d375e3498e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8
|
Security for fake-count 0.0
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.