parent
d921c2d8a6
commit
d1c3ac6079
|
@ -1,3 +0,0 @@
|
||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
# Register your models here.
|
|
|
@ -1,6 +0,0 @@
|
||||||
from django.apps import AppConfig
|
|
||||||
|
|
||||||
|
|
||||||
class ApiConfig(AppConfig):
|
|
||||||
default_auto_field = "django.db.models.BigAutoField"
|
|
||||||
name = "api"
|
|
|
@ -1,3 +0,0 @@
|
||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
|
|
@ -1,3 +0,0 @@
|
||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
|
@ -1,3 +0,0 @@
|
||||||
from django.shortcuts import render
|
|
||||||
|
|
||||||
# Create your views here.
|
|
|
@ -1,12 +1,12 @@
|
||||||
import graphene
|
import graphene
|
||||||
from graphene_django import DjangoObjectType
|
from graphene_django import DjangoObjectType
|
||||||
|
|
||||||
from games.models import Device as DeviceModel
|
from .models import Device as DeviceModel
|
||||||
from games.models import Edition as EditionModel
|
from .models import Edition as EditionModel
|
||||||
from games.models import Game as GameModel
|
from .models import Game as GameModel
|
||||||
from games.models import Platform as PlatformModel
|
from .models import Platform as PlatformModel
|
||||||
from games.models import Purchase as PurchaseModel
|
from .models import Purchase as PurchaseModel
|
||||||
from games.models import Session as SessionModel
|
from .models import Session as SessionModel
|
||||||
|
|
||||||
|
|
||||||
class Game(DjangoObjectType):
|
class Game(DjangoObjectType):
|
|
@ -33,7 +33,6 @@ ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"games.apps.GamesConfig",
|
"games.apps.GamesConfig",
|
||||||
"api.apps.ApiConfig",
|
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
"django.contrib.contenttypes",
|
"django.contrib.contenttypes",
|
||||||
"django.contrib.sessions",
|
"django.contrib.sessions",
|
||||||
|
@ -42,7 +41,7 @@ INSTALLED_APPS = [
|
||||||
"graphene_django",
|
"graphene_django",
|
||||||
]
|
]
|
||||||
|
|
||||||
GRAPHENE = {"SCHEMA": "api.schema.schema"}
|
GRAPHENE = {"SCHEMA": "games.schema.schema"}
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
INSTALLED_APPS.append("django_extensions")
|
INSTALLED_APPS.append("django_extensions")
|
||||||
|
|
Loading…
Reference in New Issue