Add the core

This sets up the database to reflect what is written in the schema
Next is to add logic
This commit is contained in:
c0de
2017-06-01 02:14:51 -05:00
parent def0eb38eb
commit fbb7c24d39
10 changed files with 154 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core'
]
MIDDLEWARE = [
@@ -75,8 +76,12 @@ WSGI_APPLICATION = 'api.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'gama_api',
'USER': 'gama_api',
'PASSWORD': 'gama_api',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}