{"id":16175283,"url":"https://github.com/app-generator/django-plotly-charts","last_synced_at":"2025-04-07T11:14:12.875Z","repository":{"id":155008426,"uuid":"632506258","full_name":"app-generator/django-plotly-charts","owner":"app-generator","description":"Django \u0026 Plotly Integration - Open-Source Sample | AppSeed","archived":false,"fork":false,"pushed_at":"2023-05-01T23:27:59.000Z","size":14658,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T18:13:08.124Z","etag":null,"topics":["appseed-sample","django-plotly-dash","django-plotly-integration","django-template","material-design"],"latest_commit_sha":null,"homepage":"https://docs.appseed.us/technologies/django/charts-plotly/","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":"2023-04-25T14:46:36.000Z","updated_at":"2024-02-04T09:37:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"f856a6bf-7d1b-4d4f-b0fb-57fc9b556f25","html_url":"https://github.com/app-generator/django-plotly-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"app-generator/django-material-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-plotly-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-plotly-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-plotly-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-plotly-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/django-plotly-charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640467,"owners_count":20971558,"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","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-plotly-dash","django-plotly-integration","django-template","material-design"],"created_at":"2024-10-10T04:44:32.510Z","updated_at":"2025-04-07T11:14:12.838Z","avatar_url":"https://github.com/app-generator.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Django \u0026 Plotly](https://docs.appseed.us/technologies/django/charts-plotly/) `Integration`\n\nOpen-source **Django** project crafted on top of **[Material Dashboard](https://appseed.us/product/material-dashboard/django/)**, an open-source `Boostrap 5` design from [Creative-Tim](https://www.creative-tim.com/?AFFILIATE=128200)\nThe product is designed to deliver the best possible user experience with highly customizable feature-rich pages. `Material Material` has easy and intuitive responsive design whether it is viewed on retina screens or laptops.\n\n- 👉 [Django Material Dashboard](https://appseed.us/product/material-dashboard/django/) - `Product page`\n- 👉 [Django Material Dashboard](https://django-material-dash2.onrender.com) - `LIVE Demo`\n- 🛒 **[Django Material Dashboard PRO](https://appseed.us/product/material-dashboard2-pro/django/)** - `Premium Version`\n\n\u003cbr /\u003e\n\n\u003e Features: \n\n- ✅ `Up-to-date Dependencies`\n- ✅ Theme: [Django Admin Material](https://github.com/app-generator/django-admin-material-dashboard), **designed by [Creative-Tim](https://www.creative-tim.com/product/material-dashboard?AFFILIATE=128200)**\n  - `can be used in any Django project` (new or legacy)\n- ✅ **Authentication**: `Django.contrib.AUTH`, Registration\n- 🚀 `Deployment` \n  - `CI/CD` flow via `Render`\n\n\u003cbr /\u003e\n\n![Django - Simple Charts](https://user-images.githubusercontent.com/51070104/234304017-97178893-880c-495b-af73-e1c789a9b6b2.png)\n\n\u003cbr /\u003e\n\n## Manual Build \n\n\u003e 👉 Download the code  \n\n```bash\n$ git clone https://github.com/app-generator/django-material-dashboard.git\n$ cd django-material-dashboard\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 Install modules via `VENV`  \n\n```bash\n$ virtualenv env\n$ source env/bin/activate\n$ pip install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 Set Up Database\n\n```bash\n$ python manage.py makemigrations\n$ python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 Create the Superuser\n\n```bash\n$ python manage.py createsuperuser\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 Start the app\n\n```bash\n$ python manage.py runserver\n```\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\n\n## Codebase structure\n\nThe project is coded using a simple and intuitive structure presented below:\n\n```bash\n\u003c PROJECT ROOT \u003e\n   |\n   |-- core/                            \n   |    |-- settings.py                  # Project Configuration  \n   |    |-- urls.py                      # Project Routing\n   |\n   |-- home/\n   |    |-- views.py                     # APP Views \n   |    |-- urls.py                      # APP Routing\n   |    |-- models.py                    # APP Models \n   |    |-- tests.py                     # Tests  \n   |    |-- templates/                   # Theme Customisation \n   |         |-- includes                # \n   |              |-- custom-footer.py   # Custom Footer      \n   |     \n   |-- requirements.txt                  # Project Dependencies\n   |\n   |-- env.sample                        # ENV Configuration (default values)\n   |-- manage.py                         # Start the app - Django default start script\n   |\n   |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n## How to Customize \n\nWhen a template file is loaded, `Django` scans all template directories starting from the ones defined by the user, and returns the first match or an error in case the template is not found. \nThe theme used to style this starter provides the following files: \n\n```bash\n# This exists in ENV: LIB/admin_material\n\u003c UI_LIBRARY_ROOT \u003e                      \n   |\n   |-- templates/                     # Root Templates Folder \n   |    |          \n   |    |-- accounts/       \n   |    |    |-- login.html           # Sign IN Page\n   |    |    |-- register.html        # Sign UP Page\n   |    |\n   |    |-- includes/       \n   |    |    |-- footer.html          # Footer component\n   |    |    |-- sidebar.html         # Sidebar component\n   |    |    |-- navigation.html      # Navigation Bar\n   |    |    |-- scripts.html         # Scripts Component\n   |    |\n   |    |-- layouts/       \n   |    |    |-- base.html            # Masterpage\n   |    |    |-- base-auth.html       # Masterpage for Auth Pages\n   |    |\n   |    |-- pages/       \n   |         |-- index.html           # Dashboard Page\n   |         |-- profile.html         # Profile Page\n   |         |-- *.html               # All other pages\n   |    \n   |-- ************************************************************************\n```\n\nWhen the project requires customization, we need to copy the original file that needs an update (from the virtual environment) and place it in the template folder using the same path. \n\n\u003e For instance, if we want to **customize the footer.html** these are the steps:\n\n- ✅ `Step 1`: create the `templates` DIRECTORY inside the `home` app\n- ✅ `Step 2`: configure the project to use this new template directory\n  - `core/settings.py` TEMPLATES section\n- ✅ `Step 3`: copy the `footer.html` from the original location (inside your ENV) and save it to the `home/templates` DIR\n  - Source PATH: `\u003cYOUR_ENV\u003e/LIB/admin_material/template/includes/footer.html`\n  - Destination PATH: `\u003cPROJECT_ROOT\u003ehome/templates/includes/footer.html`\n\n\u003e To speed up all these steps, the **codebase is already configured** (`Steps 1, and 2`) and a `custom footer` can be found at this location:\n\n`home/templates/includes/custom_footer.html` \n\nBy default, this file is unused because the `theme` expects `footer.html` (without the `custom-` prefix). \n\nIn order to use it, simply rename it to `footer.html`. Like this, the default version shipped in the library is ignored by Django. \n\nIn a similar way, all other files and components can be customized easily.\n\n\u003cbr /\u003e\n\n## CSS Styling \n\nThe UI can be customized via the SCSS file. This setup was tested using: \n\n- `Node` v16.15.0\n- `Yarn` 1.22.18 \n- `Gulp` CLI version: `2.3.0`, Local version: `4.0.2`\n\n```bash\n$ cd static\n$ yarn                                       # Install Modules \n$ vi scss/material-dashboard/_variables.scss # Edit primary, secondary colors\n$ gulp                                       # Regenerate CSS files   \n```\n\n\u003e NOTE, once the CSS files are successfully regenerated, force a hard refresh in the browser (Shift + F5 in Chrome).\n\nThe relevant lines in `_variables.scss` are highlighted below: \n\n```SCSS\n// _variables.scss, LINES 56 -\u003e 63\n$primary:       #e91e63 !default;   // EDIT \u0026 Recompile SCSS\n$secondary:     #7b809a !default;   // EDIT \u0026 Recompile SCSS\n$info:          #1A73E8 !default;   // EDIT \u0026 Recompile SCSS\n$success:       #4CAF50 !default;   // EDIT \u0026 Recompile SCSS\n$warning:       #fb8c00 !default;   // EDIT \u0026 Recompile SCSS\n$danger:        #F44335 !default;   // EDIT \u0026 Recompile SCSS\n$light:         $gray-200 !default; // EDIT \u0026 Recompile SCSS\n$dark:          $h-color !default;  // EDIT \u0026 Recompile SCSS\n```\n\n\u003cbr /\u003e\n\n## Deploy on [Render](https://render.com/)\n\n- Create a Blueprint instance\n  - Go to https://dashboard.render.com/blueprints this link.\n- Click `New Blueprint Instance` button.\n- Connect your `repo` which you want to deploy.\n- Fill the `Service Group Name` and click on `Update Existing Resources` button.\n- After that your deployment will start automatically.\n\nAt this point, the product should be LIVE.\n\n\u003cbr /\u003e\n\n## [PRO Version](https://appseed.us/product/material-dashboard2-pro/django/)   \n\nThis design is a pixel-perfect [Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/) Dashboard with a fresh, new design inspired by Google's Material Design. `Material Dashboard 2 PRO` is built with over 300 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.\n\n\u003e Features: \n\n- ✅ `Up-to-date Dependencies`\n- ✅ `Design`: [Django Theme Material2](https://github.com/app-generator/django-admin-material2-pro) - `PRO Version`\n- ✅ `Sections` covered by the design:\n  - ✅ **Admin section** (reserved for superusers)\n  - ✅ **Authentication**: `Django.contrib.AUTH`, Registration\n  - ✅ **All Pages** available in for ordinary users \n- ✅ `Docker`\n- 🚀 `Deployment` \n  - `CI/CD` flow via `Render`\n\n\u003cbr /\u003e\n\n![Material Dashboard 2 Pro](https://user-images.githubusercontent.com/51070104/211141418-6b7886eb-6fb3-433e-91c9-2895c086099a.png)\n\n\u003cbr /\u003e\n\n---\n[Django \u0026 Plotly](https://docs.appseed.us/technologies/django/charts-plotly/) `Integration` - Minimal **Django** core provided by **[AppSeed](https://appseed.us/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdjango-plotly-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fdjango-plotly-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdjango-plotly-charts/lists"}