2016-09-18 03:09:56 +03:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
2016-09-18 02:29:00 +03:00
|
|
|
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
sys.path.insert(0, ROOT_PATH + '/examples/')
|
|
|
|
|
|
|
|
SECRET_KEY = 1
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
|
|
|
'graphene_django',
|
2017-11-13 23:33:12 +03:00
|
|
|
'graphene_django.rest_framework',
|
2016-09-18 02:29:00 +03:00
|
|
|
'graphene_django.tests',
|
|
|
|
'starwars',
|
|
|
|
]
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': 'django_test.sqlite',
|
|
|
|
}
|
|
|
|
}
|
2016-09-20 08:04:23 +03:00
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
|
'DIRS': [],
|
|
|
|
'APP_DIRS': True,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
GRAPHENE = {
|
|
|
|
'SCHEMA': 'graphene_django.tests.schema_view.schema'
|
|
|
|
}
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'graphene_django.tests.urls'
|