Fix migrate on django models

This commit is contained in:
j3ssie
2019-09-08 23:23:26 +07:00
parent 062a1d857f
commit 6cc5daea70
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -224,6 +224,8 @@ cd $CWD
install_banner "Initial config for Osmedeus"
python3 server/manage.py makemigrations
python3 server/manage.py migrate
python3 server/manage.py makemigrations api
python3 server/manage.py migrate api
mkdir -p ~/.osmedeus 2> /dev/null
python3 scripts/init.py
echo -e "\033[1;32m[+] Installing done... \033[1;37m"
+1 -1
View File
@@ -140,7 +140,7 @@ REST_FRAMEWORK = {
'rest_framework_simplejwt.authentication.JWTAuthentication',
],
## @NOTE enable this when go live
'EXCEPTION_HANDLER': 'rest.exception.custom_exception_handler',
# 'EXCEPTION_HANDLER': 'rest.exception.custom_exception_handler',
}