{"id":16417483,"url":"https://github.com/zagaran/sample-django-app","last_synced_at":"2026-02-18T07:31:17.544Z","repository":{"id":37952641,"uuid":"317388619","full_name":"zagaran/sample-django-app","owner":"zagaran","description":"This is a fully runnable Django application, along with valid configuration for a number of helpful addons. This is intended to be a reference for both new and existing Django projects.","archived":false,"fork":false,"pushed_at":"2025-12-15T20:24:14.000Z","size":1688,"stargazers_count":47,"open_issues_count":5,"forks_count":8,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-12-19T04:15:58.681Z","etag":null,"topics":["django","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zagaran.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":"maintainers.md","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-01T01:12:44.000Z","updated_at":"2025-10-30T23:17:43.000Z","dependencies_parsed_at":"2023-01-17T17:49:10.986Z","dependency_job_id":"0f42c2af-7148-4554-80d0-e2ce7e1d2bb2","html_url":"https://github.com/zagaran/sample-django-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zagaran/sample-django-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagaran%2Fsample-django-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagaran%2Fsample-django-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagaran%2Fsample-django-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagaran%2Fsample-django-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zagaran","download_url":"https://codeload.github.com/zagaran/sample-django-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagaran%2Fsample-django-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29572392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","python"],"created_at":"2024-10-11T07:11:32.132Z","updated_at":"2026-02-18T07:31:17.529Z","avatar_url":"https://github.com/zagaran.png","language":"Python","readme":"# Project Template and Optional Features\n\nThis project was created using https://github.com/zagaran/django-template\n\nSee the readme on [django-template](https://github.com/zagaran/django-template) for:\n* Instructions on starting your own project\n* An explanation of included features.\n\n# Local Project Setup\n\nSet up a Python virtual environment: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment\n\n```bash\n# Create environment config file.\ncp config/.env.example config/.env\n\n# Fill in appropriate environment values.\nnano config/.env\n\n# Install pip requirements.\npip install --upgrade pip\npip install -r requirements-dev.txt\n\n# Apply migrations and sync database schema.\npython manage.py migrate\n# Install Node dependencies\nnpm install\n\n\n# START_FEATURE sass_bootstrap\n# Complie SCSS files\npython manage.py compilescss\n# END_FEATURE sass_bootstrap\n```\n\nTo run the project:\n```bash\npython manage.py runserver_plus\n```\n\nTo run the frontend with hotloading React assets:\n1. Set `WEBPACK_LOADER_HOTLOAD=True` in `config/.env`\n2. Run the following (in addition to `manage.py runserver_plus`):\n    ```bash\n    node_modules/nwb/lib/bin/nwb.js serve\n    ```\n\nTo make a static build of the frontend (such as when doing development on\nnon-React parts of the codebase):\n1. Set `WEBPACK_LOADER_HOTLOAD=False` in `config/.env`\n2. Run the following:\n    ```bash\n    node_modules/nwb/lib/bin/nwb.js build --no-vendor\n    ```\n\nTo access the database:\n```bash\npython manage.py shell_plus\n```\n\nTo run the test suite:\n```bash\npython manage.py test\n```\n\nTo get a test coverage report:\n```bash\ncoverage run --source='.' manage.py test; coverage report\n```\n\n# Requirements\n\nThe project uses [pip-tools](https://github.com/jazzband/pip-tools) to manage requirements.  In addition, it has two requirements files:\n\n* `requirements.txt`: this is for requirements that should be installed on servers.\n* `requirements-dev.txt`: this is a superset of requirements.txt that should be used only for local development.  This includes tools that are not needed on server deployments of the codebase and thus omitted in `requirements.txt` to reduce extraneous server installs.\n\nTo add a new dependency to or update requirements, add the entry to requirements.in (if it's needed for the codebase to run) or requirements-dev.in (if it's just needed for development) and run `pip-compile` to generate new .txt files:\n```bash\nnano requirements.in  # Updating Python dependencies as needed\nnano requirements-dev.in  # Updating Python dev dependencies as needed\npip-compile requirements.in --upgrade  # Generate requirements.txt with updated dependencies\npip-compile requirements-dev.in --upgrade  # Generate requirements-dev.txt with updated dependencies\n```\n\n# Settings\n\nThis project uses [django-environ](https://django-environ.readthedocs.io/en/latest/)\nto read configuration from either `config/.env` (for local development)\nor from environment varables (for server deployments).  For a list of settings,\nsee the `environ.Env(` object in [config/settings.py](config/settings.py).\n# Elastic Beanstalk\n\nThe following Python packages are useful tools for interacting with AWS and Elastic Beanstalk.\nDue to dependency conflicts, these should not be installed in your project's regular virtual environment,\nand should instead either be installed globally or in a separate virtual environment that runs them:\n\n```bash\npip install awscli  # For interacting with general AWS services (note, this package often has conflicts with its botocore dependency)\npip install awsebcli  # For interacting with Elastic Beanstalk (note, this package often has conflicts with its botocore dependency)\npip install eb-create-environment  # For automating the creation of Elastic Beanstalk applications\npip install eb-ssm  # For Elastic Beanstalk SSH functionality without requiring shared private keys\n```\n\n## Creating a new environment\n\nTo do create a new Elastic Beanstalk environment, modify the contents of [.elasticbeanstalk/eb_create_environment.yml]([.elasticbeanstalk/eb_create_environment.yml]) and run `eb-create-environment -c .elasticbeanstalk/eb_create_environment.yml`.\n\nSee the docs for [eb-create-environment](https://github.com/zagaran/eb-create-environment/) for more details.\n\nThen, add the following environment variables:\n```\nALLOWED_HOSTS\nSECRET_KEY\nAWS_STORAGE_BUCKET_NAME\nGOOGLE_OAUTH2_KEY\nGOOGLE_OAUTH2_SECRET\nSENTRY_DSN\nDEFAULT_FROM_EMAIL\n```\n\nFollowing that, deploy your code to the environment (see below).\n\n## Deploying code\n\nTo deploy new versions of your code to your environment, run `eb deploy \u003cenvironment_name\u003e` using the EB CLI to deploy your code to that environment.\n\nSee the [eb-cli](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html) docs on general command line usage of Elastic Beanstalk.\n\n## SSH\n\nTo SSH into an Elastic Beanstalk Environment, use [eb-ssm](https://github.com/zagaran/eb-ssm).","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzagaran%2Fsample-django-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzagaran%2Fsample-django-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzagaran%2Fsample-django-app/lists"}