Skip to content

SemicolonWorld/weather-app-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather

Weather App

Writed By Semicolon World

Frontend: Mohammad Barati

Backend: Mehdi Radfar

  • How to Run App

    1. The first step you must create a virtual environment and install requirements
      • if you use windows
      • python -m venv .venv
        .\.venv\Scripts\activate
        pip install -r requirements.txt
      • if you use linux
      • sudo apt install virtualenv
        virtualenv -p py3 .venv
        source .venv/bin/activate
        pip3 install -r requirements.txt
      • if you use macOS
      • brew install virtualenv
        virtualenv -p py3 .venv
        source .venv/bin/activate
        pip install -r requirements.txt
    2. the second step you must create .env file and set SECRET_KEY variable to this file
      • touch .env
        #write that to .env file
        SECRET_KEY = '' # your variable
    3. the last step you must run this app
      • python manage.py runserver
        

How it works

when you run the server you must go to this page https://127.0.0.1:8000/

enter your city name and you will recive weather information of your city

info => country, city name, humidity, celsius temp, description and icon you will see "City Not Found!" Error if your city is not in the cities list


I hope you enjoy that <3

About

weather app with django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages