This commit is contained in:
root 2022-06-24 20:11:29 +02:00
parent 7331f20423
commit b2b28d1fa4
18 changed files with 3897 additions and 117 deletions

View File

@ -24,7 +24,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-*9shuddjs^!i00=go!8a=^8bmdje*ex3dbj7hv2(((m^u3$lap'
# 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']
@ -81,10 +81,12 @@ MIDDLEWARE = [
#SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
# 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',
'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',
'http://127.0.0.1:8002', 'http://localhost:8001', 'http://192.168.1.18:8000']
CORS_ALLOW_ALL_ORIGINS=True
CORS_ALLOW_HEADERS = [
"accept",
"accept-encoding",
@ -223,3 +225,28 @@ REST_FRAMEWORK = {
'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.

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -1,3 +1,3 @@
NEXT_PUBLIC_HOSTNAME=192.168.1.18
NEXT_PUBLIC_HOSTNAME=141.136.42.178
PORT=8000
NEXT_PUBLIC_HOST=http://$NEXT_PUBLIC_HOSTNAME:$PORT
NEXT_PUBLIC_HOST=http://$NEXT_PUBLIC_HOSTNAME:$PORT

File diff suppressed because it is too large Load Diff

View File

@ -20,6 +20,8 @@
"moment": "^2.29.1",
"next": "^12.0.8",
"node-fetch": "^3.2.0",
"package.json": "^2.0.1",
"pm2": "^5.2.0",
"react": "17.0.2",
"react-ace": "^9.5.0",
"react-chartjs-2": "^4.2.0",