{"id":15673580,"url":"https://github.com/alancoding/example-django-app","last_synced_at":"2025-02-22T11:43:49.680Z","repository":{"id":144899550,"uuid":"73647134","full_name":"AlanCoding/Example-Django-App","owner":"AlanCoding","description":"Starting place to demo both Django basics and the basic twists to put on your project","archived":false,"fork":false,"pushed_at":"2016-12-05T00:10:08.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T05:39:14.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AlanCoding.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}},"created_at":"2016-11-13T22:29:44.000Z","updated_at":"2016-11-13T23:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4aab93a9-ce73-47bb-9d38-f300ee937210","html_url":"https://github.com/AlanCoding/Example-Django-App","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2FExample-Django-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2FExample-Django-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2FExample-Django-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2FExample-Django-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlanCoding","download_url":"https://codeload.github.com/AlanCoding/Example-Django-App/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170064,"owners_count":19759143,"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":[],"created_at":"2024-10-03T15:41:19.537Z","updated_at":"2025-02-22T11:43:49.655Z","avatar_url":"https://github.com/AlanCoding.png","language":"Python","readme":"# Example-Django-App\nStarting place to demo both Django basics and the basic twists to put on your project\n\n## Creation Process\n\nPre-reqs:\n - create a virtual environment\n - pip install django, others in `requirements.txt`\n\nAlong the way, you'll need to use these commands. In-between you need to\nactually write code.\n\n```bash\n# Find out what you can do\ndjango-admin --help\n# Create your django project\ndjango-admin startproject demo\n# Create your app\ndjango-admin startapp hiworld\n```\n\nYou might do better to just follow the Django [getting started](https://www.djangoproject.com/start/)\nguide. Alternatively, after you have started the project, you can run these\nthings with `python manage.py ....`.\n\n```bash\n# Create your app\npython manage.py startapp hiworld\n# Run the server\npython manage.py runserver\n```\n\nDatabase setup in postgres:\n\n```bash\n# Get shell in the database\npsql\n# Create your database\nCREATE DATABASE myproject;\n# Create your user\nCREATE USER myprojectuser WITH PASSWORD 'password';\n```\n\n## Single Page Example\n\nUseful for understanding what Django does. Found at\n\nhttps://www.safaribooksonline.com/library/view/lightweight-django/9781491946275/ch01.html\n\n# TYI 2015 projects\n\nClass projects:\n\n - (demo) https://github.com/tiyd-python-2015-05/mowdie\n - (demo) https://github.com/tiyd-python-2015-05/contact321\n - https://github.com/tiyd-python-2015-05/single-page-app-template\n - https://github.com/tiyd-python-2015-05/urly-bird-api\n - https://github.com/tiyd-python-2015-05/django-movies\n - https://github.com/tiyd-python-2015-05/todomvc-django\n\nAlan's version of it:\n\n - Github: \n - hosted: http://www.ac4.xyz/\n\n# Giant Shotgun of Concepts\n\nRelational, structured, databases and links inside of it.\nDatabase contains tables, which contain rows and columns.\nSome columns may contain a reference to point to other rows, either\nin the same table or in a different table. Relationships:\n\n - ForeignKey, also acts as a de-facto one-to-many\n - Many-to-many relationships, \"fake\" it with an \"through\" table that\n   uses ForeignKeys\n\nORM - python library that acts as intermediary to the database\n\nCRUD\n\nData-interchange formats\n\n - JSON\n - YAML\n - XML\n\nREST APIs\n\n - django rest framework\n\nPorts\n\nDeployment\n example: https://github.com/technivore/ansible-django\n\n# To Do, in progress\n\n - demo of a CI/CD process with ORM access as homework\n - deployment of a Django project to the public cloud\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancoding%2Fexample-django-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falancoding%2Fexample-django-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancoding%2Fexample-django-app/lists"}