yy
This commit is contained in:
parent
7331f20423
commit
b2b28d1fa4
Binary file not shown.
@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = 'django-insecure-*9shuddjs^!i00=go!8a=^8bmdje*ex3dbj7hv2(((m^u3$lap'
|
SECRET_KEY = 'django-insecure-*9shuddjs^!i00=go!8a=^8bmdje*ex3dbj7hv2(((m^u3$lap'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
ALLOWED_HOSTS = ['192.168.1.18', 'localhost', '127.0.0.1', '141.136.42.178']
|
ALLOWED_HOSTS = ['192.168.1.18', 'localhost', '127.0.0.1', '141.136.42.178']
|
||||||
|
|
||||||
|
|
||||||
@ -81,10 +81,12 @@ MIDDLEWARE = [
|
|||||||
#SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
|
#SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
|
||||||
|
|
||||||
# CORS
|
# CORS
|
||||||
|
|
||||||
CORS_ALLOWED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
|
CORS_ALLOWED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
|
||||||
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
|
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
|
||||||
CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
|
CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://141.136.42.178:8001', 'http://141.136.42.178:8002', 'http://141.136.42.178:80', 'http://lilandco42.com',
|
||||||
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
|
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
|
||||||
|
CORS_ALLOW_ALL_ORIGINS=True
|
||||||
CORS_ALLOW_HEADERS = [
|
CORS_ALLOW_HEADERS = [
|
||||||
"accept",
|
"accept",
|
||||||
"accept-encoding",
|
"accept-encoding",
|
||||||
@ -223,3 +225,28 @@ REST_FRAMEWORK = {
|
|||||||
'PAGE_SIZE': 20
|
'PAGE_SIZE': 20
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
LOGGING = {
|
||||||
|
'version': 1,
|
||||||
|
'disable_existing_loggers': False,
|
||||||
|
'handlers': {
|
||||||
|
'console': {
|
||||||
|
'class': 'logging.StreamHandler',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'root': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'level': 'WARNING',
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
'django': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
|
||||||
|
'propagate': False,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
Binary file not shown.
@ -1,10 +0,0 @@
|
|||||||
import random
|
|
||||||
|
|
||||||
"""
|
|
||||||
Fonction main() qui doit renvoyer un objet avec:
|
|
||||||
calcul: le calcul a afficher
|
|
||||||
result: la correction du calcul (pas de correction -> mettre None)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def main():
|
|
||||||
return {"calcul": "", "result": None}
|
|
@ -1,3 +1,3 @@
|
|||||||
NEXT_PUBLIC_HOSTNAME=192.168.1.18
|
NEXT_PUBLIC_HOSTNAME=141.136.42.178
|
||||||
PORT=8000
|
PORT=8000
|
||||||
NEXT_PUBLIC_HOST=http://$NEXT_PUBLIC_HOSTNAME:$PORT
|
NEXT_PUBLIC_HOST=http://$NEXT_PUBLIC_HOSTNAME:$PORT
|
||||||
|
3919
frontend/package-lock.json
generated
3919
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,8 @@
|
|||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"next": "^12.0.8",
|
"next": "^12.0.8",
|
||||||
"node-fetch": "^3.2.0",
|
"node-fetch": "^3.2.0",
|
||||||
|
"package.json": "^2.0.1",
|
||||||
|
"pm2": "^5.2.0",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-ace": "^9.5.0",
|
"react-ace": "^9.5.0",
|
||||||
"react-chartjs-2": "^4.2.0",
|
"react-chartjs-2": "^4.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user