fake-count-0.0
توضیحات
Django app for displaying a random number based on the time of day.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fake-count-0.0 |
| نام | fake-count |
| نسخه کتابخانه | 0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | bsana7931@gmail.com |
| آدرس صفحه اصلی | https://github.com/pro100git/django_fake_counter |
| آدرس اینترنتی | https://pypi.org/project/fake-count/ |
| مجوز | BSD License |
============
Fake Counter
============
Fake Counter is a simple Django app for displaying a random number based on the time of day.
Quick start
-----------
1. Add "fake_count" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'fake_count',
)
2. 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 200
3. Load "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>
نحوه نصب
نصب پکیج whl fake-count-0.0:
pip install fake-count-0.0.whl
نصب پکیج tar.gz fake-count-0.0:
pip install fake-count-0.0.tar.gz