{"id":20303149,"url":"https://github.com/vanities/django-rest-template","last_synced_at":"2026-05-17T19:36:10.244Z","repository":{"id":45514923,"uuid":"265067799","full_name":"vanities/django-rest-template","owner":"vanities","description":"template for a django-rest framework workflow","archived":false,"fork":false,"pushed_at":"2023-07-06T00:00:02.000Z","size":50,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T18:34:15.324Z","etag":null,"topics":["django","django-rest-framework","python"],"latest_commit_sha":null,"homepage":"","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/vanities.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-18T21:34:41.000Z","updated_at":"2022-07-14T16:28:16.000Z","dependencies_parsed_at":"2024-11-15T00:46:18.647Z","dependency_job_id":"e02ea3b6-d80b-4acb-9bb9-1160fada279b","html_url":"https://github.com/vanities/django-rest-template","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/vanities/django-rest-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanities%2Fdjango-rest-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanities%2Fdjango-rest-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanities%2Fdjango-rest-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanities%2Fdjango-rest-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanities","download_url":"https://codeload.github.com/vanities/django-rest-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanities%2Fdjango-rest-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33151944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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","django-rest-framework","python"],"created_at":"2024-11-14T16:36:06.809Z","updated_at":"2026-05-17T19:36:10.207Z","avatar_url":"https://github.com/vanities.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Initialization\n\nA quick way to up a django rest server. Has an admin ui to manage data from a browser ([local](http://127.0.0.1:5000)) and an API to expose data.\nSuperuser/staff user and seed creation is in [scripts/seed_database](https://github.com/vanities/django-rest-template/blob/master/scripts/seed_database).\n\nUsername: **admin**\u003cbr\u003e\nPassword: **password123**\n\nSee the admin on heroku here: [https://django-rest-template.herokuapp.com/](https://django-rest-template.herokuapp.com/).\n\n## Packages:\n1. Singleton models for configuration using [django-solo](https://github.com/lazybird/django-solo).\n2. Static file uploading with [whitenoise](https://github.com/evansd/whitenoise).\n3. Performance monitoring with [django-silk](https://github.com/jazzband/django-silk).\n4. JWT authentication using [djangorestframework-simplejwt](https://github.com/jazzband/djangorestframework-simplejwt).\n5. Has [pre-commit](https://github.com/pre-commit/pre-commit) hooks to lint and fix files using Black and flake8.\n6. Setup for [github actions](https://github.com/features/actions) to run tests.\n7. Model graph visualization with [pygraphviz](https://gist.github.com/rg3915/35e999a442a8955e455b).\n8. CORS handling based on environment variables by [django-cors-headers](https://github.com/adamchainz/django-cors-headers).\n9. Abstact user models set up in `users/`\n\n## Requirements:\n1. [pre-commit](https://pre-commit.com/)\n2. [docker \u0026 docker-compose](https://www.docker.com/products/docker-desktop/)\n\n## Installation:\n\nClone the repository and initialize\n```bash\n$ git clone https://github.com/vanities/django-init\n$ cd django-init\n$ make init\n```\n\n## Running the web API:\n\nThe [`Makefile`](https://github.com/vanities/django-init/blob/master/Makefile) is a task manager to wrap docker commands, read it to know what the common tasks are.\n\nQuickstart with Docker:\n```bash\n$ make up\n```\n\nQuit the server:\n```bash\n$ make down\n```\n\nDrop and Seed the database:\n```bash\n$ make fresh\n```\n\n## Testing:\n\nTo run all of the tests once with Docker:\n```bash\n$ make test\n```\n\nTo run a single test file:\n```bash\n$ docker-compose run --rm test ./manage.py test user.tests\n```\n\n## Creating a new app, typically apps are plural ex: *features*:\n```bash\n$ docker-compose run --rm python ./manage.py startapp features\n```\n\nSee the list of [contributors](https://github.com/vanities/django-init/graphs/contributors) who participated in this project.\n\n## Adding Python packages\n\n1. find the package on [pypi](https://pypi.org/search/?q=pyyaml\u0026o=)\n2. find the version, for the example above, pyyaml is 6.0\n3. pyyaml==6.0 to `requirements.txt`\n4. run `make build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanities%2Fdjango-rest-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanities%2Fdjango-rest-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanities%2Fdjango-rest-template/lists"}