{"id":16174844,"url":"https://github.com/app-generator/sample-django-charts-simple","last_synced_at":"2025-07-22T13:34:26.529Z","repository":{"id":41911251,"uuid":"311717589","full_name":"app-generator/sample-django-charts-simple","owner":"app-generator","description":"Django Charts - Morris JS Samples | AppSeed","archived":false,"fork":false,"pushed_at":"2024-10-17T03:37:40.000Z","size":3571,"stargazers_count":17,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-20T05:57:46.539Z","etag":null,"topics":["appseed-sample","django-sample"],"latest_commit_sha":null,"homepage":"https://app-generator.dev/docs/developer-tools/dynamic-django/charts.html","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-10T16:22:46.000Z","updated_at":"2024-10-17T03:38:15.000Z","dependencies_parsed_at":"2024-10-27T19:21:14.628Z","dependency_job_id":"2bed776e-07cc-4dc5-b8f7-292e9acad668","html_url":"https://github.com/app-generator/sample-django-charts-simple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/app-generator/sample-django-charts-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-charts-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-charts-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-charts-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-charts-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-django-charts-simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-charts-simple/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266506191,"owners_count":23940019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appseed-sample","django-sample"],"created_at":"2024-10-10T04:43:31.493Z","updated_at":"2025-07-22T13:34:26.506Z","avatar_url":"https://github.com/app-generator.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Django Simple Charts](https://app-generator.dev/docs/developer-tools/dynamic-django/charts.html)\n\nPlayground starter to display simple charts in Django using Morris JS: \n\n\u003cbr /\u003e\n\n---\n\n\u003e For a **complete set of features** and long-term support, check out **[Dynamic Django](https://app-generator.dev/docs/developer-tools/dynamic-django/index.html)**, a powerful starter that incorporates:\n\n- ✅ [Dynamic DataTables](https://app-generator.dev/docs/developer-tools/dynamic-django/datatables.html): using a single line of configuration, the data saved in any table is automatically managed\n- ✅ [Dynamic API](https://app-generator.dev/docs/developer-tools/dynamic-django/api.html): any model can become a secure API Endpoint using DRF\n- ✅ [Dynamic Charts](https://app-generator.dev/docs/developer-tools/dynamic-django/charts.html): extract relevant charts without coding all major types are supported\n- ✅ [CSV Loader](https://app-generator.dev/docs/developer-tools/dynamic-django/csv-loader.html): translate CSV files into Django Models and (optional) load the information\n- ✅ Powerful [CLI Tools](https://app-generator.dev/docs/developer-tools/dynamic-django/cli.html) for the GIT interface, configuration editing, updating the configuration and database (create models, migrate DB)\n\n\u003cbr /\u003e\n\n## How to use it\n\n```bash\n$ # Get the code\n$ git clone https://github.com/app-generator/django-simple-charts.git\n$ cd django-simple-charts\n$\n$ # Virtualenv modules installation (Unix based systems)\n$ virtualenv env\n$ source env/bin/activate\n$\n$ # Virtualenv modules installation (Windows based systems)\n$ # virtualenv env\n$ # .\\env\\Scripts\\activate\n$\n$ # Install modules - SQLite Storage\n$ pip3 install -r requirements.txt\n$\n$ # Create tables\n$ python manage.py makemigrations\n$ python manage.py migrate\n$\n$ # Create app superuser\n$ python manage.py createsuperuser\n$\n$ # Start the application (development mode)\n$ python manage.py runserver # default port 8000\n$\n$ # Start the app - custom port\n$ # python manage.py runserver 0.0.0.0:\u003cyour_port\u003e\n$\n$ # Access the web app in browser: http://127.0.0.1:8000/\n```\n\n\u003e Note: To use the app, please access the registration page and create a admin user using the `createsuperuser` command\n\n\u003cbr /\u003e\n\n## Load Data For Chart\n\nIn Django admin, you can import data for the **Sales** section. \nTo do this just click on ```IMPORT``` button then select your csv, xls or etc file and submit it.\n\n![Import Data](https://raw.githubusercontent.com/app-generator/django-simple-charts/master/media/admin_import.png)\n\n\u003e Sample **[Data](https://github.com/app-generator/django-simple-charts/blob/master/sample_data/sales_data.csv)**\n\n\u003cbr\u003e\n\n## Code-base structure\n\nThe project is coded using a simple and intuitive structure presented bellow:\n\n```bash\n\u003c PROJECT ROOT \u003e\n   |\n   |-- core/                               # Implements app logic and serve the static assets\n   |    |-- settings.py                    # Django app bootstrapper\n   |    |-- wsgi.py                        # Start the app in production\n   |    |-- urls.py                        # Define URLs served by all apps/nodes\n   |    |\n   |    |-- static/\n   |    |    |-- \u003ccss, JS, images\u003e         # CSS files, Javascripts files\n   |    |\n   |    |-- templates/                     # Templates used to render pages\n   |         |\n   |         |-- includes/                 # HTML chunks and components\n   |         |    |-- navigation.html      # Top menu component\n   |         |    |-- sidebar.html         # Sidebar component\n   |         |    |-- footer.html          # App Footer\n   |         |    |-- scripts.html         # Scripts common to all pages\n   |         |\n   |         |-- layouts/                  # Master pages\n   |         |    |-- base-fullscreen.html # Used by Authentication pages\n   |         |    |-- base.html            # Used by common pages\n   |         |\n   |         |-- accounts/                 # Authentication pages\n   |         |    |-- login.html           # Login page\n   |         |    |-- register.html        # Register page\n   |         |\n   |      index.html                       # The default page\n   |     page-404.html                     # Error 404 page\n   |     page-500.html                     # Error 404 page\n   |       *.html                          # All other HTML pages\n   |\n   |-- authentication/                     # Handles auth routes (login and register)\n   |    |\n   |    |-- urls.py                        # Define authentication routes  \n   |    |-- views.py                       # Handles login and registration  \n   |    |-- forms.py                       # Define auth forms  \n   |\n   |-- app/                                # A simple app that serve HTML files\n   |    |\n   |    |-- views.py                       # Serve HTML pages for authenticated users\n   |    |-- urls.py                        # Define some super simple routes  \n   |\n   |-- requirements.txt                    # Development modules - SQLite storage\n   |\n   |-- .env                                # Inject Configuration via Environment\n   |-- manage.py                           # Start the app - Django default start script\n   |\n   |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n## Deployment\n\nThe app is provided with a basic configuration to be executed in [Docker](https://www.docker.com/), [Gunicorn](https://gunicorn.org/), and [Waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/).\n\n### [Docker](https://www.docker.com/) execution\n---\n\nThe application can be easily executed in a docker container. The steps:\n\n\u003e Get the code\n\n```bash\n$ git clone https://github.com/app-generator/django-simple-charts.git\n$ cd django-simple-charts\n```\n\n\u003e Start the app in Docker\n\n```bash\n$ sudo docker-compose pull \u0026\u0026 sudo docker-compose build \u0026\u0026 sudo docker-compose up -d\n```\n\nVisit `http://localhost:5005` in your browser. The app should be up \u0026 running.\n\n\u003cbr /\u003e\n\n### [Gunicorn](https://gunicorn.org/)\n---\n\nGunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.\n\n\u003e Install using pip\n\n```bash\n$ pip install gunicorn\n```\n\u003e Start the app using gunicorn binary\n\n```bash\n$ gunicorn --bind=0.0.0.0:8001 core.wsgi:application\nServing on http://localhost:8001\n```\n\nVisit `http://localhost:8001` in your browser. The app should be up \u0026 running.\n\n\u003cbr /\u003e\n\n## Credits \u0026 Links\n\n- [Django](https://www.djangoproject.com/) - The official website\n- [Boilerplate Code](https://appseed.us/boilerplate-code) - Index provided by **AppSeed**\n- [Boilerplate Code](https://github.com/app-generator/boilerplate-code) - Index published on Github\n\n\u003cbr /\u003e\n\n---\n[Django Simple Charts](https://django-simple-charts.appseed.us/) - Provided by **AppSeed** [Web App Generator](https://appseed.us/app-generator).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-django-charts-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-django-charts-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-django-charts-simple/lists"}