Quellcode durchsuchen

Move game into apps dir

Colin Powell vor 3 Wochen
Ursprung
Commit
5ecc3c1ba9

+ 0 - 0
game/__init__.py → coffee_wars/apps/game/__init__.py


+ 0 - 0
game/admin.py → coffee_wars/apps/game/admin.py


+ 0 - 0
game/apps.py → coffee_wars/apps/game/apps.py


+ 0 - 0
game/migrations/0001_initial.py → coffee_wars/apps/game/migrations/0001_initial.py


+ 0 - 0
game/migrations/0002_gamesession_completed_gamesession_final_score_and_more.py → coffee_wars/apps/game/migrations/0002_gamesession_completed_gamesession_final_score_and_more.py


+ 0 - 0
game/migrations/0003_gamesession_interest_gamesession_max_days.py → coffee_wars/apps/game/migrations/0003_gamesession_interest_gamesession_max_days.py


+ 0 - 0
game/migrations/__init__.py → coffee_wars/apps/game/migrations/__init__.py


+ 0 - 0
game/models.py → coffee_wars/apps/game/models.py


+ 0 - 0
game/templates/game/base.html → coffee_wars/apps/game/templates/game/base.html


+ 0 - 0
game/templates/game/game_over.html → coffee_wars/apps/game/templates/game/game_over.html


+ 0 - 0
game/templates/game/high_scores.html → coffee_wars/apps/game/templates/game/high_scores.html


+ 0 - 0
game/templates/game/home.html → coffee_wars/apps/game/templates/game/home.html


+ 0 - 0
game/templates/game/login.html → coffee_wars/apps/game/templates/game/login.html


+ 0 - 0
game/templates/game/my_games.html → coffee_wars/apps/game/templates/game/my_games.html


+ 0 - 0
game/templates/game/profile.html → coffee_wars/apps/game/templates/game/profile.html


+ 0 - 0
game/templates/game/signup.html → coffee_wars/apps/game/templates/game/signup.html


+ 0 - 0
game/tests.py → coffee_wars/apps/game/tests.py


+ 0 - 0
game/urls.py → coffee_wars/apps/game/urls.py


+ 0 - 0
game/views.py → coffee_wars/apps/game/views.py


+ 4 - 5
coffee_wars/settings.py

@@ -11,14 +11,13 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
 """
 
 import os
+import sys
 from pathlib import Path
 
-# Build paths inside the project like this: BASE_DIR / 'subdir'.
-BASE_DIR = Path(__file__).resolve().parent.parent
-
 
-# Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
+PROJECT_ROOT = Path(__file__).resolve().parent
+BASE_DIR = Path(__file__).resolve().parent.parent
+sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps"))
 
 # SECURITY WARNING: keep the secret key used in production secret!
 SECRET_KEY = os.getenv("CW_SECRET_KEY", 'django-insecure-*vwm-dvu0_4&jn^^_2^9b2+va@f)-g^g_yrh_!tr5^^f75#obb')