{"id":16174954,"url":"https://github.com/app-generator/sample-django-debug","last_synced_at":"2025-04-07T10:56:41.480Z","repository":{"id":233691137,"uuid":"627741054","full_name":"app-generator/sample-django-debug","owner":"app-generator","description":"How to DEBUG Django - Free Sample and DOCS | AppSeed","archived":false,"fork":false,"pushed_at":"2023-05-10T05:33:08.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T18:13:33.835Z","etag":null,"topics":["appseed-sample","debug-django","django-debug","django-sample","django-starter"],"latest_commit_sha":null,"homepage":"https://docs.appseed.us/technologies/django/how-to-debug/","language":"Python","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}},"created_at":"2023-04-14T05:22:35.000Z","updated_at":"2023-05-10T05:29:50.000Z","dependencies_parsed_at":"2024-04-17T05:30:21.075Z","dependency_job_id":"cbc946bc-a66f-45a6-b616-b2ee5b01fbb5","html_url":"https://github.com/app-generator/sample-django-debug","commit_stats":null,"previous_names":["app-generator/sample-django-debug"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-django-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-django-debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640512,"owners_count":20971555,"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","debug-django","django-debug","django-sample","django-starter"],"created_at":"2024-10-10T04:43:50.358Z","updated_at":"2025-04-07T10:56:41.460Z","avatar_url":"https://github.com/app-generator.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [How to DEBUG Django](https://docs.appseed.us/technologies/django/how-to-debug/)\n\nOpen-source **Django Dashboard** built on top of a modern design. **[Volt Dashboard](https://appseed.us/product/volt-dashboard/django/)** is a free and open source `Bootstrap 5` Admin Dashboard featuring over 100 components, 11 example pages and 3 plugins with Vanilla JS. There are more than 100 free Bootstrap 5 components included some of them being buttons, alerts, modals, and datepickers.\n\n- 👉 [Volt Dashboard Django](https://appseed.us/product/volt-dashboard/django/) - Product page\n- 👉 [Volt Dashboard Django](https://django-volt-dashboard.appseed-srv1.com/) - LIVE Demo\n- 🛒 **[Django Volt Dashboard PRO](https://appseed.us/product/volt-dashboard-pro/django/)** - `Premium Version`\n\n\u003cbr /\u003e\n\n\u003e Features: \n\n- ✅ `Up-to-date Dependencies`\n- ✅ Theme: [Django Admin Volt](https://github.com/app-generator/django-admin-volt)\n- ✅ **Authentication**: `Django.contrib.AUTH`, Registration\n- 🚀 `Deployment` \n  - `CI/CD` flow via `Render`\n\n\u003cbr /\u003e\n\n![Volt Dashboard - Full-Stack Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/168843604-b026fd94-5969-4be7-81ac-5887cf0958e5.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-volt-dashboard.git\n$ cd django-volt-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 👉 Logging\n\nThe project integrates logging by default. For this to work, create a file called `apps_home.log` in the `logs` directory. To use the logger, you can do the following 👇\n\n```python\n\nfrom loggers import apps_home_logger\n\n...\n    try:\n        a = 1 / 0\n        return render(request, \"pages/index.html\")\n    except ZeroDivisionError as e:\n        apps_home_logger.log(CRITICAL, msg=e)\n\n```\n\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 in the controller, `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_volt\n\u003c UI_LIBRARY_ROOT \u003e                     \n   |\n   |-- templates/                    # Root Templates Folder \n   |    |          \n   |    |-- accounts/       \n   |    |    |-- sign-in.html        # Sign IN Page\n   |    |    |-- sign-up.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          # Index Page (presentation)\n   |         |-- settings.html       # Settings  Page\n   |         |-- dashboard.html      # Dashboard 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_volt/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## 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/volt-dashboard-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. `Volt Dashboard 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 Volt](https://github.com/app-generator/django-admin-volt-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![Volt Dashboard PRO - Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/172672843-8c40a801-3438-4e9c-86db-38a34191fbdf.png)\n\n\u003cbr /\u003e\n\n---\n[How to DEBUG Django](https://docs.appseed.us/technologies/django/how-to-debug/) - **Django** starter provided by **[AppSeed](https://appseed.us/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-django-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-django-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-django-debug/lists"}