aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2018-06-03 20:35:06 +1200
committerMichael Fincham <michael@hotplate.co.nz>2018-06-03 20:35:06 +1200
commit0c86329f1a8f08045fecb08ed65851bba2e761b4 (patch)
treea800f0fe6ebdb699e5a515ccf4316b425f34e640
parent8913789c0329b235d53e34827dd58f6903cf3440 (diff)
downloadmango-0c86329f1a8f08045fecb08ed65851bba2e761b4.tar.gz
mango-0c86329f1a8f08045fecb08ed65851bba2e761b4.tar.bz2
mango-0c86329f1a8f08045fecb08ed65851bba2e761b4.zip
Renames, adds requirements, ignores new sqlite db
-rw-r--r--.gitignore2
-rwxr-xr-xmanage.py2
-rw-r--r--mango/settings.py9
-rw-r--r--requirements.txt1
4 files changed, 6 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 894a44c..7980449 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+db.sqlite3
+
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
diff --git a/manage.py b/manage.py
index 6e98852..3dd88e7 100755
--- a/manage.py
+++ b/manage.py
@@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "osquerycontrol.settings")
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mango.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
diff --git a/mango/settings.py b/mango/settings.py
index 3338670..bb16195 100644
--- a/mango/settings.py
+++ b/mango/settings.py
@@ -63,13 +63,8 @@ WSGI_APPLICATION = 'mango.wsgi.application'
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.mysql',
- 'NAME': 'osquery',
- 'USER': 'osquery',
- 'PASSWORD': 'NOT TODAY BUDDY',
- 'HOST': '127.0.0.1',
- 'PORT': '3306',
- 'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"},
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..d93922d
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+django~=1.11