Skip to content
Django-Cricket is a simple app to store cricket match details.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
cricket
.gitignore
CODE_OF_CONDUCT.md
LICENSE
README.md
setup.py

README.md

Django-Cricket 🏏

Django-Cricket is a simple app to store cricket match details.

📝 Note: Development is still in progress and not in a stable state.

Detailed documentation is in the docs directory. (Not produced yet. So instead heres a unicorn... 🦄)

Quick start 🛫

  1. Add cricket to your INSTALLED_APPS setting like this
    INSTALLED_APPS = [
        ...
        'cricket.core',
    ]
  1. Include the URLconf in your project urls.py like this
    path(r'^matches/', include('cricket.core.urls.matches')),
    path(r'^stats/', include('cricket.core.urls.stats')),
    path(r'^api/', include('cricket.core.urls.api')),
  1. Run python manage.py migrate to create the cricket models.

  2. Run python manage.py collectstatic to get static files.

  3. Add this to your base template

    <script src="{% static "scripts.js"%}"></script>
    <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  1. Start the development server and visit http://127.0.0.1:8000/admin/ to create a match (you'll need the Admin app enabled).

  2. Visit http://127.0.0.1:8000/matches/ to view match details. Visit http://127.0.0.1:8000/stats/ to view statistics.

Extensions🔧

There are several extensions to make this app more usable, they are:

  • Django-Cricket-PlayCricket-Link: This extension links the base storage app to the ECB Play Cricket system. It is helpful for clubs who play in leagues that require the results to be added to playcricket.
  • Django-Cricket-FantasyLeague: ⚙️ Under Development. This adds a fantasy league section to the website. A good fundraiser for cricket clubs.
  • Django-Cricket-MatchReports: ⚙️ Under Development. This adds a match report section to the website.
You can’t perform that action at this time.