{"id":16175399,"url":"https://github.com/app-generator/deploy-pythonanywhere-django","last_synced_at":"2025-04-07T11:15:42.183Z","repository":{"id":221333750,"uuid":"621196801","full_name":"app-generator/deploy-pythonanywhere-django","owner":"app-generator","description":"Deploy on PythonAnywhere - Django MVC | AppSeed","archived":false,"fork":false,"pushed_at":"2023-03-30T07:32:12.000Z","size":3128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T18:12:47.107Z","etag":null,"topics":["appseed-deploy","ci-cd","pythonanywhere"],"latest_commit_sha":null,"homepage":"","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-03-30T07:20:48.000Z","updated_at":"2023-03-30T07:33:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc7d2bdf-6d98-478d-9e64-39254d050288","html_url":"https://github.com/app-generator/deploy-pythonanywhere-django","commit_stats":null,"previous_names":["app-generator/deploy-pythonanywhere-django"],"tags_count":0,"template":false,"template_full_name":"app-generator/django-datta-able","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdeploy-pythonanywhere-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdeploy-pythonanywhere-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdeploy-pythonanywhere-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdeploy-pythonanywhere-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/deploy-pythonanywhere-django/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-deploy","ci-cd","pythonanywhere"],"created_at":"2024-10-10T04:44:46.486Z","updated_at":"2025-04-07T11:15:42.176Z","avatar_url":"https://github.com/app-generator.png","language":"CSS","readme":"# [Datta Able Django](https://appseed.us/product/datta-able/django/)\n\nOpen-source **Django Dashboard** generated by `AppSeed` op top of a modern design. **[Datta Able](https://appseed.us/product/datta-able/django/)** Bootstrap Lite is the most stylised Bootstrap 4 Lite Admin Template, around all other Lite/Free admin templates in the market. It comes with high feature-rich pages and components with fully developer-centric code - design from [CodedThemes](https://bit.ly/37fF9RT).\n\n\u003cbr /\u003e\n\n### Project configured for CI/CD on PythonAnywhere \n\n- CI/Cd from GitHub\n- Changes in the code\n- FUll DOCS HERE:\n  - https://docs.appseed.us/deployment/pythonanywhere/django/\n\n\u003cbr /\u003e\n\n\u003e Features: \n\n- ✅ `Up-to-date Dependencies`\n- ✅ `Design`: [Django Theme Datta](https://github.com/app-generator/django-admin-datta) - `Free 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![Datta Able (enhaced with dark mode) - Open-Source Seed project generated by AppSeed.](https://user-images.githubusercontent.com/51070104/176118649-7233ffbc-6118-4f56-8cda-baa81d256877.png)\n\n\u003cbr /\u003e \n\n## Start with `Docker`\n\n\u003e 👉 **Step 1** - Download the code from the GH repository (using `GIT`) \n\n```bash\n$ git clone https://github.com/app-generator/django-datta-able.git\n$ cd django-datta-able\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step 2** - Start the APP in `Docker`\n\n```bash\n$ docker-compose up --build \n```\n\nVisit `http://localhost:5085` in your browser. The app should be up \u0026 running.\n\n\u003cbr /\u003e\n\n## Environment\n\nCreate a new `.env` file using sample `env.sample`. The meaning of each variable can be found below: \n\n- `DEBUG`: if `True` the app runs in develoment mode\n  - For production value `False` should be used\n- For `MySql` persistence\n  - Install the DB Driver: `pip install mysqlclient` \n  - Create DB and assign a new user (full rights) \n  - Edit `.env` to match the DB, user, password ..  \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-datta-able.git\n$ cd django-datta-able\n```\n\n\u003cbr /\u003e\n\n### 👉 Set Up for `Unix`, `MacOS` \n\n\u003e Install modules via `VENV`  \n\n```bash\n$ virtualenv env\n$ source env/bin/activate\n$ pip3 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 Start the APP\n\n```bash\n$ python manage.py createsuperuser # create the admin\n$ python manage.py runserver       # start the project\n```\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\n\n### 👉 Set Up for `Windows` \n\n\u003e Install modules via `VENV` (windows) \n\n```\n$ virtualenv env\n$ .\\env\\Scripts\\activate\n$ pip3 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 Start the APP\n\n```bash\n$ python manage.py createsuperuser # create the admin\n$ python manage.py runserver       # start the project\n```\n\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\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   |         |-- pages                    # \n   |              |-- custom-index.py     # Custom Dashboard      \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_datta\n\u003c UI_LIBRARY_ROOT \u003e                      \n   |\n   |-- templates/                     # Root Templates Folder \n   |    |          \n   |    |-- accounts/       \n   |    |    |-- auth-signin.html     # Sign IN Page\n   |    |    |-- auth-signup.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 index.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 `index.html` from the original location (inside your ENV) and save it to the `home/templates` DIR\n  - Source PATH: `\u003cYOUR_ENV\u003e/LIB/admin_black_pro/pages/index.html`\n  - Destination PATH: `\u003cPROJECT_ROOT\u003ehome/templates/pages/index.html`\n\n\u003e To speed up all these steps, the **codebase is already configured** (`Steps 1, and 2`) and a `custom dashboard` can be found at this location:\n\n`home/templates/pages/custom-index.html` \n\nBy default, this file is unused because the `theme` expects `index.html` (without the `custom-` prefix). \n\nIn order to use it, simply rename it to `index.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## [Datta Able Django](https://appseed.us/product/datta-able-pro/django/) `PRO Version`\n\n\u003e For more components, pages and priority on support, feel free to take a look at this amazing starter:\n\nDesigned for those who like bold elements and beautiful websites, **Datta Able** is the most stylish Bootstrap 4 Admin Template compare to all other Bootstrap admin templates. It comes with high feature-rich pages and components with fully developer-centric code. \n\n- 👉 [Django Datta PRO](https://appseed.us/product/datta-able-pro/django/) - product page\n  - ✅ `Enhanced UI` - more pages and components\n  - ✅ `Priority` on support\n\n\u003cbr \u003e\n\n![Datta Able PRO - Full-Stack Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/170474361-a58da82b-fff9-4a59-81a8-7ab99f478f48.png)\n\n\u003cbr /\u003e\n\n---\n[Datta Able Django](https://appseed.us/product/datta-able/django/) - Open-source starter generated by **[AppSeed Generator](https://appseed.us/generator/)**.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdeploy-pythonanywhere-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fdeploy-pythonanywhere-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdeploy-pythonanywhere-django/lists"}