Djangocric: Django Reusable app to access live scores and more.
Djangocric: Django Reusable app to access live cricket scores and more.
Djangocric is a Reusable Django app which provides access to live cricket scores, match summary, historical matches data, upcoming matches data, player details and many more.
You can install
Djangocric package from PyPI using
pip install djangocric
1. Open the
settings.py module of your project, And put
djangocric into the
INSTALLED_APPS = ( 'djangocric', )
2. Open the
urls.py file of your project, And include
urlpatterns = [ re_path(r'^cric/', include('djangocric.urls')), ]
3. Setup the Templates for djangocric.
Important Note: Djangocric App is a part of Djangoengine project. And if you want to access UI part of Djangocric App, You need to configure some Reusable/global templates to your django project or you can create your own templates, It's very easy.
TEMPLATES = [ 'DIRS': [os.path.join(BASE_DIR, 'templates'),], ]
templates folder inside
BASE_DIR and Then create
djangoadmin folders inside the templates folder.
Then download the djangoadmin templates and put them inside the
4. Static files configuration.
settings.py module and Configure Static files and media files or you can can use your own configuration.
STATIC_URL = '/static/' STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static-local'),) STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'static') MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'media')
static-local folder inside
BASE_DIR, Then create
djangoadmin folders inside that
And also download the djangoadmin static files and put them inside the
Complete the Djangocric setup by running the following command in sequence.
python manage.py makemigrations python manage.py migrate python manage.py collectstatic python manage.py runserver
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size djangocric-1.0.0-py3-none-any.whl (7.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size djangocric-1.0.0.tar.gz (5.1 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for djangocric-1.0.0-py3-none-any.whl