Ver código fonte

Fix some core typos and add Gzip

Colin Powell 3 anos atrás
pai
commit
d03b3bf224
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      emus/settings.py

+ 4 - 2
emus/settings.py

@@ -26,7 +26,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
 SECRET_KEY = "l2-2d4dmvb0un0s)=5z%c87t*tg_hu&bt6*o^ks9r7f-3(mp$$"
 
 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+DEBUG = os.getenv("EMUS_DEBUG", False)
 
 ALLOWED_HOSTS = ["*"]
 CSRF_TRUSTED_ORIGINS = [os.getenv("EMUS_TRUSTED_ORIGINS", "http://localhost:8000")]
@@ -69,6 +69,7 @@ MIDDLEWARE = [
     "django.contrib.auth.middleware.AuthenticationMiddleware",
     "django.contrib.messages.middleware.MessageMiddleware",
     "django.middleware.clickjacking.XFrameOptionsMiddleware",
+    "django.middleware.gzip.GZipMiddleware",
 ]
 
 ROOT_URLCONF = "emus.urls"
@@ -324,10 +325,11 @@ GAME_SYSTEM_DEFAULTS = {
     "gamegear": {
         "name": "Game Gear",
         "color": "3FA3C4",
+        "retroarch_core": "genesis_plus_gx",
     },
     "msx": {
         "name": "MSX",
-        "retroarch_corre": "bluemsx",
+        "retroarch_core": "bluemsx",
     },
     "n64": {
         "name": "Nintendo 64",