Git Product home page Git Product logo

django-interactive-charts's Introduction

Django Interactive Charts

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the requirements:

    (venv)$ pip install -r requirements.txt
  4. Apply the migrations:

    (venv)$ python manage.py migrate
  5. Populate the database with randomly generated data (amount = number of purchases):

    (venv)$ python manage.py populate_db --amount 2500
  6. Create a superuser, and run the server:

    (venv)$ python manage.py createsuperuser
    (venv)$ python manage.py runserver
  7. You can then see the charts here:

django-interactive-charts's People

Contributors

amirtds avatar duplxey avatar mjhea0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-interactive-charts's Issues

ModuleNotFoundError: No module named 'pytz'

When performing the db_populate command, an error occurs even though I've just installed all dependencies.
Solved the issue by doing:
pip install pytz

I'd recommend adding the pytz package to the requirements.txt file.

The new admin view doesn't show admin/statistics.html page

http://127.0.0.1:8000/admin/statistics/ - new admin view
Followed your wonderful tutorial and came across an issue with this particular view. It doesn't show admin/statistics.html page instead gives 404 error.

Page not found (404)
Request Method: | GET
Request URL: http://127.0.0.1:8000/admin/statistics
Raised by: django.contrib.admin.sites.catch_all_view

Using the URLconf defined in core.urls, Django tried these URL patterns, in this order:
admin/ [name='index']
admin/ login/ [name='login']
admin/ logout/ [name='logout']
admin/ password_change/ [name='password_change']
admin/ password_change/done/ [name='password_change_done']
admin/ autocomplete/ [name='autocomplete']
admin/ jsi18n/ [name='jsi18n']
admin/ r/int:content_type_id/path:object_id/ [name='view_on_site']
admin/ auth/group/
admin/ auth/user/
admin/ shop/item/
admin/ shop/purchase/
admin/ ^(?P<app_label>auth|shop)/$ [name='app_list']
admin/ (?P.*)$

The current path, admin/statistics, matched the last one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.