Skip to content
Snippets Groups Projects
Commit ed5fa52b authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

Task LSMR-8: Added initial migration to allow adding triggers etc. in raw SQL

parent ae9baa3a
No related branches found
No related tags found
1 merge request!87Lsmr epic
...@@ -24,5 +24,6 @@ echo "---" ...@@ -24,5 +24,6 @@ echo "---"
echo "! This is for testing only, properly deploy in Nginx or Apache for production use!" echo "! This is for testing only, properly deploy in Nginx or Apache for production use!"
echo "---" echo "---"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
/usr/bin/python $DIR/../lib*/python3.4/site-packages/lofar/sas/lsmr/manage.py migrate
/usr/bin/python $DIR/../lib*/python3.4/site-packages/lofar/sas/lsmr/manage.py runserver 0.0.0.0:8000 /usr/bin/python $DIR/../lib*/python3.4/site-packages/lofar/sas/lsmr/manage.py runserver 0.0.0.0:8000
...@@ -7,7 +7,6 @@ find_python_module(ldap REQUIRED) ...@@ -7,7 +7,6 @@ find_python_module(ldap REQUIRED)
set(_py_files set(_py_files
manage.py manage.py
urls.py
) )
python_install(${_py_files} python_install(${_py_files}
......
...@@ -31,6 +31,7 @@ ALLOWED_HOSTS = [] ...@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'lsmr.lsmrapp',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
...@@ -76,12 +77,19 @@ WSGI_APPLICATION = 'lsmr.wsgi.application' ...@@ -76,12 +77,19 @@ WSGI_APPLICATION = 'lsmr.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
# SQLITE:
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# Postgres:
#'ENGINE': 'django.db.backends.postgresql_psycopg2',
#'NAME': 'lsmr',
#'USER': 'lsmr',
#'PASSWORD': 'fixme',
#'HOST': 'localhost',
#'PORT': '',
} }
} }
# Password validation # Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment