This is a simple weather application that allows users to search for cities, view the current weather, and check the weather forecast. The application supports two languages: English and Ukrainian. It provides weather information only for Ukrainian cities.
In order to use this program, you will need to obtain an API key by signing up with this site.
- Clone this repository:
git clone https://github.com/RomaP13/weatheropia.git
cd weatheropia
-
Create a file named "API_KEY" and add your key in this file.
-
Install the required Python packages:
pip install -r requirements.txt
- Run the migrations to create the database:
python manage.py migrate --run-syncdb
- Run the following scripts:
python scripts/main.py
python manage.py runscript import_data
- Start the development server:
python manage.py runserver
- Enter the name of a Ukrainian city in the search bar.
- Select the desired city from the search results.
- View the current weather and weather forecast for the selected city.
- You can switch between English and Ukrainian languages using the language dropdown in the navigation menu.