@@ -3,4 +3,4 @@ class WeatherConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "Weather" name = "weather" 2 changes: 1 addition & 1 deletion 2 src/core/settings.py Original file line numberDiff line numberDiff line change @@ -25,7 +25,7 @@ "...
from weather.utils import get_weather, KelvinToCelsius from time import strftime from datetime import datetime def main(request): if request.method == "GET": @@ -8,6 +10,22 @@ def main(request): else: city = request.POST['city_name'] weather = get_weather(city) date = strftime("...
Weather0- 5 10 15 20 25 30 35+ Temperature / °C Clouds and Precipitation Forecast for 2024-11-01 00:00 UTC. Updated 6 hours ago Ground ~20,000 ft ~40,000 ft Winds WASSDetails ICAO WASS Name Domine Eduard Osok Region Indonesia Timezone Asia/Jayapura (UTC+9.0) Stats Elevation...
Weather in a snap--Trust the WAPP! Live Interactive Radar, Storm watches & warnings, hourly forecasts, 10-day outlook, closings, and more—all on FOX 4’s FREE We…
Weather 0-5101520253035+Temperature / °C Clouds and Precipitation Forecast for 2024-12-01 00:00 UTC. Updated 10 hours ago Ground~20,000 ft~40,000 ftWinds WASS DetailsICAOWASS NameDomine Eduard Osok RegionIndonesia TimezoneAsia/Jayapura (UTC+9.0) ...
setdefault("DJANGO_SETTINGS_MODULE", "WeatherApp.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: 0 src/Weather/.env → src/secrets/.env File renamed without changes. 0 ...
print(request_api_dict['weather'][0]['main']) return render(request, 'pages/main.html', context=context) def handler404(request, exception): 34 changes: 1 addition & 33 deletions 34 src/templates/pages/main.html Original file line numberDiff line numberDiff line change @@ -17,39 +...
WeatherApp __pycache__ settings.cpython-312.pyc settings.py urls.py 1 change: 0 additions & 1 deletion 1 src/Weather/urls.py Original file line numberDiff line numberDiff line change @@ -5,4 +5,3 @@ urlpatterns = [ path("", main, name="main"), ] Binary file modified BIN ...
"weather", "weather" ] MIDDLEWARE = [ @@ -100,14 +100,6 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/5.0/howto/static-files/ STATIC_URL = "/static/" STATICFILES_DIRS = [os.path.join(BASE_DIR / "staticfiles")] STATIC_ROOT =...
@@ -32,4 +32,10 @@ def main(request): 'country': request_api_dict['sys']['country'] } print(request_api_dict['weather'][0]['main']) return render(request, 'pages/main.html', context=context) return render(request, 'pages/main.html', context=context) def handler404(request,...