From bddc1acdb15a9df6dcf5ecda4504c0303f24540f Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 25 Oct 2017 14:31:19 +0300 Subject: [PATCH] Change default DB to SQLite3 --- .gitignore | 1 + sikweb/settings-sample.py | 9 +++++++++ webapp/migrations/0010_auto_20170608_0924.py | 4 ---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4d5ace6..9baaf61 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ node_modules/ db.sqlite3 requirements_henu.txt /collected_static/ +mydatabase diff --git a/sikweb/settings-sample.py b/sikweb/settings-sample.py index a03c018..e233517 100644 --- a/sikweb/settings-sample.py +++ b/sikweb/settings-sample.py @@ -68,3 +68,12 @@ TELEGRAM_BOT_TOKEN = "" # }, # }, # } +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': 'mydatabase', + 'TEST': { + 'NAME': 'sik_test', + }, + } +} diff --git a/webapp/migrations/0010_auto_20170608_0924.py b/webapp/migrations/0010_auto_20170608_0924.py index 5939260..14877f7 100644 --- a/webapp/migrations/0010_auto_20170608_0924.py +++ b/webapp/migrations/0010_auto_20170608_0924.py @@ -33,10 +33,6 @@ class Migration(migrations.Migration): ], bases=('webapp.presetrole',), ), - migrations.RemoveField( - model_name='customrole', - name='baserole_ptr', - ), migrations.CreateModel( name='KaehmyForm', fields=[