{"id":24680601,"url":"https://github.com/fantaso/django-model-managers","last_synced_at":"2025-03-21T19:35:13.132Z","repository":{"id":46856441,"uuid":"225889583","full_name":"Fantaso/django-model-managers","owner":"Fantaso","description":"Web app to test case Managers for models in Django. The App consists in listing on html page (http://localhost:8000/author-list/) all the Authors with the sum of copies sold of all their books.","archived":false,"fork":false,"pushed_at":"2021-09-22T18:04:59.000Z","size":27,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T14:13:54.813Z","etag":null,"topics":["django","django-debug-toolbar","pyhton3"],"latest_commit_sha":null,"homepage":"https://github.com/Fantaso/django-model-managers","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fantaso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T14:44:42.000Z","updated_at":"2024-05-12T05:50:51.000Z","dependencies_parsed_at":"2022-09-08T12:20:15.218Z","dependency_job_id":null,"html_url":"https://github.com/Fantaso/django-model-managers","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/Fantaso%2Fdjango-model-managers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantaso%2Fdjango-model-managers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantaso%2Fdjango-model-managers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fantaso%2Fdjango-model-managers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fantaso","download_url":"https://codeload.github.com/Fantaso/django-model-managers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855906,"owners_count":20521726,"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":["django","django-debug-toolbar","pyhton3"],"created_at":"2025-01-26T14:13:57.571Z","updated_at":"2025-03-21T19:35:13.104Z","avatar_url":"https://github.com/Fantaso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- logo --\u003e\n\u003ca href=\"https://github.io/fantaso\"\u003e\n\u003cimg src=\"/readme/fantaso.png\" align=\"right\" /\u003e\n\u003c/a\u003e\n\n\u003c!-- header --\u003e\n\u003ch1 style=\"text-align: left; margin-top:0px;\"\u003e\n  Django Model Managers App\n\u003c/h1\u003e\n\n\u003e Web app to test case Managers for models in Django. The App consists in listing on html page (http://localhost:8000/author-list/) all the Authors with the sum of copies sold of all their books.\n\n\u003c!-- build --\u003e\n\u003c!-- [![Build Status][travis-image]][travis-link] --\u003e\n\n\n\n\nTest case allows the user to visit website to view a list of all authors and their amount of books sold per author.\n\nIt is partly tested as only and was developed as showcase only.\n\n\n\n\nHow Django Models Managers Works:\n- You can open the browser with the url http://localhost:8000/author-list to view the list of authors and all book's copies sold.\n- You can open the browser with the url http://localhost:8000/author-list-complex to view the list of authors and all book's copies sold and number of books and only the authors who have sold more than 100 books.\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n## Index:\n- #### Installation\n    1. Installing Django Models Managers App\n    2. Instructions to test with django-debug-toolbar\n\n- #### Usage:\n    1. Available Endpoints\n    2. Tests INFO\n\n- #### Information:\n- #### Maintainer\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n## Installation:\n#### 1.Installing Django Models Managers App\n\n1. Clone repository and go inside the repository folder \"django-model-managers\"\n```sh\ngit clone https://github.com/Fantaso/django-model-managers.git\n```\n\n2. Create your virtualenv and install the packages\n```sh\npip install -r requirements.txt\n```\n\n3. Migrate the database.\n```sh\npython manage.py makemigrations \u0026\u0026 python manage.py migrate\n```\n\n4. Run the application.\n```sh\npython manage.py runserver\n```\n\n\n#### 2.Instructions to test with django-debug-toolbar\n\n1. Create a superuser in order to access the Django Admin app and follow the instructions\n```sh\npython manage.py createsuperuser\n```\n\n2. Go to http://localhost:8000/admin and login with your username and password created in the previous step\n\n\n3. Once in the Admin app, add as many Authors and Books to your database.\n\n\n4. Once you have added all authors and books go to the endpoints available and you should see a webpage with a list of all Authors and Book information rendered with the django Debug Toolbar on the side. Just click the logo \"DjDT\" on the right side of the website and check it.\n\n\n\u003cbr\u003e\n\n## USAGE\n#### 1. Endpoint List\nURI Example: `http://localhost:8000/author-list`\n\nURI Example: `http://localhost:8000/author-list-complex`\n\n\n\u003cbr\u003e\n\n\n#### 2. Tests INFO\nA small TestCase was done to check the manager annotate_with_copies_sold query method since, to tested over the webapp template at eh endpoint of 'author-list/' or 'author-list-complex/' will need extra requirements like migrating, creating a superuser and adding on the admin panel new Authors and Books to the local database\n\n1. Run the Django Models Managers app tests locally with:\n```sh\npython manage.py test\n```\n\n\u003cbr\u003e\n\n\n\n\n\n## Information:\n| Technology Stack |  |  |\n| :- | :-: | :- |\n| Python                    | ![back-end][python]                   | Back-End |\n| Django                    | ![django][django]                     | Web Framework |\n| Django Debug toolbar      | ![django-debug-toolbar][django-debug-toolbar] | Browser Debug Tool |\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n## Maintainer\nGet in touch -–\u003e [Github][github-profile]\n\n\n\n\u003c!-- Links --\u003e\n\u003c!-- Profiles --\u003e\n[github-profile]: https://github.com/fantaso/\n[linkedin-profile]: https://www.linkedin.com/\n[fantaso]: https://www.fantaso.de/\n\u003c!-- Extra --\u003e\n\n\n\u003c!-- Repos --\u003e\n[github-repo]: https://github.com/Fantaso/django-model-managers\n\n\u003c!-- Builds --\u003e\n[travis-link]: https://travis-ci.org/\n[travis-image]: https://travis-ci.org/\n\n\u003c!-- images --\u003e\n[python]: readme/python.png\n[django]: readme/django.png\n[django-debug-toolbar]: readme/django-debug-toolbar.png","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantaso%2Fdjango-model-managers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantaso%2Fdjango-model-managers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantaso%2Fdjango-model-managers/lists"}