|
|
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
|
|
|
'django.contrib.sessions',
|
|
|
'django.contrib.messages',
|
|
|
'django.contrib.staticfiles',
|
|
|
+ 'stats',
|
|
|
]
|
|
|
|
|
|
MIDDLEWARE = [
|
|
|
@@ -81,9 +82,18 @@ DATABASES = {
|
|
|
'PASSWORD': '4h8q(.',
|
|
|
'HOST': '127.0.0.1',
|
|
|
'PORT': '5432',
|
|
|
- }
|
|
|
+ },
|
|
|
+ 'bot_db': {
|
|
|
+ 'ENGINE': 'django.db.backends.postgresql',
|
|
|
+ 'NAME': 'pyRot',
|
|
|
+ 'USER': 'pyRotsite',
|
|
|
+ 'PASSWORD': '4h8q(.',
|
|
|
+ 'HOST': '127.0.0.1',
|
|
|
+ 'PORT': '5432',
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
+DATABASE_ROUTERS = ['webgui.routers.BotRouter']
|
|
|
|
|
|
# Password validation
|
|
|
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
|