diff --git a/apps/stations/urls.py b/apps/stations/urls.py index 4c59eb6..c6dc60c 100644 --- a/apps/stations/urls.py +++ b/apps/stations/urls.py @@ -4,11 +4,11 @@ from .views import TripDetailsView, NearestStationView, StationListView urlpatterns = [ - path("stations-list/", StationListView.as_view(), name="stations-list"), + path("list/", StationListView.as_view(), name="stations-list"), path( - "trip-details///", + "trip///", TripDetailsView.as_view(), name="trip-details", ), - path("nearest-station/", NearestStationView.as_view(), name="nearest-station"), + path("nearest/", NearestStationView.as_view(), name="nearest-station"), ] diff --git a/egypt_metro/settings.py b/egypt_metro/settings.py index c517e4a..8779eb4 100644 --- a/egypt_metro/settings.py +++ b/egypt_metro/settings.py @@ -16,7 +16,6 @@ from datetime import timedelta # Time delta for JWT tokens from corsheaders.defaults import default_headers # Default headers for CORS - # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Base directory for the project @@ -205,40 +204,40 @@ "REFRESH_TOKEN_LIFETIME": timedelta(days=7), # Refresh token lifetime } -LOGGING = { - "version": 1, # Log version - "disable_existing_loggers": False, # Don't disable existing loggers - "formatters": { - "verbose": { - "format": "{levelname} {asctime} {module} {message}", # Log format - "style": "{", # Use {} for formatting - }, - }, - "handlers": { - "console": { - "class": "logging.StreamHandler", # Log to console - "formatter": "verbose", # Use the verbose formatter - }, - "file": { - "level": "DEBUG", # Log debug messages - "class": "logging.FileHandler", # Log to file - "filename": BASE_DIR / "logs/debug.log", # File where logs are saved - "formatter": "verbose", # Use the verbose formatter - }, - }, - "loggers": { - "django": { - "handlers": ["console", "file"], # Log to console and file - "level": "INFO", # Log info messages - "propagate": True, - }, - "__main__": { - "handlers": ["console", "file"], # Log to console and file - "level": "DEBUG", # Log all messages - "propagate": True, - }, - }, -} +# LOGGING = { +# "version": 1, # Log version +# "disable_existing_loggers": False, # Don't disable existing loggers +# "formatters": { +# "verbose": { +# "format": "{levelname} {asctime} {module} {message}", # Log format +# "style": "{", # Use {} for formatting +# }, +# }, +# "handlers": { +# "console": { +# "class": "logging.StreamHandler", # Log to console +# "formatter": "verbose", # Use the verbose formatter +# }, +# "file": { +# "level": "DEBUG", # Log debug messages +# "class": "logging.FileHandler", # Log to file +# "filename": BASE_DIR / "logs/debug.log", # File where logs are saved +# "formatter": "verbose", # Use the verbose formatter +# }, +# }, +# "loggers": { +# "django": { +# "handlers": ["console", "file"], # Log to console and file +# "level": "INFO", # Log info messages +# "propagate": True, +# }, +# "__main__": { +# "handlers": ["console", "file"], # Log to console and file +# "level": "DEBUG", # Log all messages +# "propagate": True, +# }, +# }, +# } CACHES = { "default": {