{"id":16174924,"url":"https://github.com/app-generator/sample-docker-django-pgsql","last_synced_at":"2026-04-19T02:01:55.320Z","repository":{"id":100503206,"uuid":"561636899","full_name":"app-generator/sample-docker-django-pgsql","owner":"app-generator","description":"Docker Sample - Django \u0026 PgSQL | AppSeed","archived":false,"fork":false,"pushed_at":"2022-11-21T07:44:15.000Z","size":6539,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T04:19:48.708Z","etag":null,"topics":["django","docker","open-source","postgresql"],"latest_commit_sha":null,"homepage":"https://appseed.us/product/material-kit/django/","language":"SCSS","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,"zenodo":null}},"created_at":"2022-11-04T06:11:57.000Z","updated_at":"2022-12-15T01:01:26.000Z","dependencies_parsed_at":"2023-05-15T11:15:22.001Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/sample-docker-django-pgsql","commit_stats":null,"previous_names":[],"tags_count":3,"template":true,"template_full_name":"app-generator/django-material-kit","purl":"pkg:github/app-generator/sample-docker-django-pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-docker-django-pgsql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["django","docker","open-source","postgresql"],"created_at":"2024-10-10T04:43:47.444Z","updated_at":"2026-04-19T02:01:55.302Z","avatar_url":"https://github.com/app-generator.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Django \u0026 PostgreSQL](https://github.com/app-generator/sample-docker-django-pgsql) `Docker Sample`  \n\n`Open-Source` seed project provided by AppSeed in **Django** Framework on top of **[Material Kit](https://appseed.us/product/material-kit/django/)** design. Designed for those who like bold elements and beautiful websites, **Material Kit 2** is ready to help you create stunning websites and web apps. `Material Kit 2` is built with over 60 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.\n\n- 👉 [Django Material Kit](https://appseed.us/product/material-kit/django/) - product page\n- 👉 [Django Material Kit](https://django-material-kit.appseed-srv1.com/) - LIVE App\n  \n\u003cbr /\u003e\n\n## [Black Friday](https://appseed.us/discounts/) - `75%OFF`\n\n\u003e The campaign is active until `30.NOV` and applies to all products and licenses.\n\n[![AppSeed - Black Friday 2022 Campaign, 75% OFF Discount (all products).](https://user-images.githubusercontent.com/51070104/201829599-9fe6bdd7-3f19-46f3-9115-962eeb13bf29.jpg)](https://appseed.us/discounts/)\n\n\u003cbr /\u003e\n\n\u003e 🚀 Built with [App Generator](https://appseed.us/generator/), Timestamp: `2022-09-18 07:49`\n\n- ✅ `Up-to-date dependencies`\n- ✅ `Session-Based authentication`, Forms validation\n- ✅ `Docker`: bundled with `PostgreSQL`\n  - `LIVE-reload` on changes\n\n\u003cbr /\u003e\n\n![Material Kit - Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/167396765-c88b7a95-155f-4236-8691-7b80fa2d9cd9.png)\n\n\u003cbr /\u003e\n\n## ✨ Start in `Docker`\n\n**Note**: Make sure the PORT `5432` is free (usually reserved by the local PostgreSQL instance). \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/sample-docker-django-pgsql.git\n$ cd sample-docker-django-pgsql\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\n\u003cbr /\u003e\n\n\u003e 👉 **Step 3** - `Migrate DB`\n\n```bash\n$ docker-compose run --rm appseed-app python manage.py makemigrations\n$ docker-compose run --rm appseed-app python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step 4** - Create `Superuser`\n\n```bash\n$ docker-compose run --rm appseed-app python manage.py createsuperuser\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step 5** - Access the `APP`\n\nVisit `http://localhost:5085` in your browser. The app should be up \u0026 running.\n\n\u003cbr /\u003e\n\n## ✨ Manual Build\n\n\u003e Download the code \n\n```bash\n$ # Get the code\n$ git clone https://github.com/app-generator/sample-docker-django-pgsql.git\n$ cd sample-docker-django-pgsql\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 runserver\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 runserver\n```\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\n\n## ✨ Create Users\n\nBy default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up: \n\n- Start the app via `flask run`\n- Access the `registration` page and create a new user:\n  - `http://127.0.0.1:8000/register/`\n- Access the `sign in` page and authenticate\n  - `http://127.0.0.1:8000/login/`\n\n\u003cbr /\u003e\n\n## ✨ Code-base 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/                               # Implements app configuration\n   |    |-- settings.py                    # Defines Global Settings\n   |    |-- wsgi.py                        # Start the app in production\n   |    |-- urls.py                        # Define URLs served by all apps/nodes\n   |\n   |-- apps/\n   |    |\n   |    |-- home/                          # A simple app that serve HTML files\n   |    |    |-- views.py                  # Serve HTML pages for authenticated users\n   |    |    |-- urls.py                   # Define some super simple routes  \n   |    |\n   |    |-- authentication/                # Handles auth routes (login and register)\n   |    |    |-- urls.py                   # Define authentication routes  \n   |    |    |-- views.py                  # Handles login and registration  \n   |    |    |-- forms.py                  # Define auth forms (login and register) \n   |    |\n   |    |-- static/\n   |    |    |-- \u003ccss, JS, images\u003e         # CSS files, Javascripts files\n   |    |\n   |    |-- templates/                     # Templates used to render pages\n   |         |-- includes/                 # HTML chunks and components\n   |         |    |-- navigation.html      # Top menu component\n   |         |    |-- footer.html          # App Footer\n   |         |    |-- scripts.html         # Scripts common to all pages\n   |         |\n   |         |-- layouts/                   # Master 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   |         |-- home/                      # UI Kit Pages\n   |              |-- index.html            # Index page\n   |              |-- page-404.html         # 404 page\n   |              |-- *.html                # All other pages\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---\n[Django \u0026 PostgreSQL](https://github.com/app-generator/sample-docker-django-pgsql) `Docker Sample`  - Open-source starter provided by **[AppSeed Generator](https://appseed.us/generator/)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-docker-django-pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-docker-django-pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-docker-django-pgsql/lists"}