{"id":15891339,"url":"https://github.com/dbritto-dev/django-graphql-app-template","last_synced_at":"2026-05-04T11:37:29.750Z","repository":{"id":69761470,"uuid":"308065372","full_name":"dbritto-dev/django-graphql-app-template","owner":"dbritto-dev","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-29T16:28:34.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T17:28:38.464Z","etag":null,"topics":["django","django-project-template","django-rest-framework","graphql","graphql-server","python3"],"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/dbritto-dev.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-10-28T15:47:24.000Z","updated_at":"2020-10-29T21:37:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"de9dd832-3683-4874-a2a4-634ca29d84dc","html_url":"https://github.com/dbritto-dev/django-graphql-app-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/dbritto-dev/django-graphql-app-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbritto-dev%2Fdjango-graphql-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbritto-dev%2Fdjango-graphql-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbritto-dev%2Fdjango-graphql-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbritto-dev%2Fdjango-graphql-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbritto-dev","download_url":"https://codeload.github.com/dbritto-dev/django-graphql-app-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbritto-dev%2Fdjango-graphql-app-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276668535,"owners_count":25683073,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"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","django-project-template","django-rest-framework","graphql","graphql-server","python3"],"created_at":"2024-10-06T07:21:40.141Z","updated_at":"2025-09-23T23:58:23.839Z","avatar_url":"https://github.com/dbritto-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Overview\n\nThis project is a project template to scaffold or create the initial structure of your app.\n\n**PROJECT STRUCTURE**\n\n| File Name         | Description                                                                       |\n| ----------------- | --------------------------------------------------------------------------------- |\n| `├── domain/`     | _This folder should contains the domain apps._                                    |\n| `└── migrations/` | _This folder contains the migration or changes to your database._                 |\n| `__init__.py`     | This tells Python that your app is a package                                      |\n| `admin.py`        | This file is where you can register your app’s models to the Django's admin site. |\n| `apps.py`         | This is a configuration file common to all Django apps                            |\n| `models.py`       | This file contains the models for your app.                                       |\n| `README.md`       | This file contains the documentation of this project.                             |\n| `schema.py`       | This file contains the schema that you want to expose to your graphql endpoint.   |\n\n# Scaffoling an app\n\n```sh\ndjango-admin startapp --template https://github.com/danilobrinu/django-graphql-app-template/archive/master.zip \u003cawesome-app\u003e\n```\n\n**Example:** `django-admin startapp --template https://github.com/danilobrinu/django-graphql-app-template/archive/master.zip api_v1`\n\n# Adding models to the app\n\nThe models are not automatically available to the app, so you need to add it manually.\nTo add it, go to your `models.py` in the root level of your app and import it.\n\n**File: api_v1/domain/post/models.py**\n\n```python\nclass Post(models.Model):\n    pass\n```\n\n**File: api_v1/models.py**\n\n```python\nfrom .domain.post.models import Post # noqa\n```\n\n# Adding models to the admin site\n\nTo add the models to the admin site, just go to your `admin.py` in the root level of your app and\nimport it.\n\n**File: api_v1/domain/post/models.py**\n\n```python\nclass Post(models.Model):\n    pass\n```\n\n**File: api_v1/admin.py**\n\n```python\n@admin.site.register(Post)\nclass PostAdmin(admin.ModelAdmin):\n    pass\n```\n\n# Adding queries and mutations to the app\n\nThe queries and mutations are not automatically available to that app, so you need to add it manually.\nTo add it, go to your ``schema.py` in the root level of your app and import it.\n\n**File: api_v1/domain/post/schema.py**\n\n```python\nclass Query(graphene.ObjectType):\n    pass\n\nclass Mutation(graphene.ObjectType):\n    pass\n```\n\n**File: api_v1/schema.py**\n\n```python\nfrom .domain.post.schema import Query as PostQuery, Mutation as PostMutation\n\nclass Query(\n    PostQuery,\n    # The ObjectType class should be the last one always\n    graphene.ObjectType,\n):\n    pass\n\nclass Mutation(\n    PostMutation,\n    # The ObjectType class should be the last one always\n    graphene.ObjectType,\n):\n    pass\n\nschema = graphene.Schema(query=Query, mutation=Mutation)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbritto-dev%2Fdjango-graphql-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbritto-dev%2Fdjango-graphql-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbritto-dev%2Fdjango-graphql-app-template/lists"}