An utility Django WebApp that uses Django packages.
git clone https://github.com/ContriHUB/Sheher.git
python -m venv <env_name>
<env_name>\Scripts\activate
source <env_name>/bin/activate
pip install -r requirements
cd Sheher
cd home
python train_crimerate.py
To apply the migrations run,
python manage.py makemigrations
python manage.py migrate
http://127.0.0.1:8000/
.
python manage.py runserver
For help getting started with Django, view online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
To access weather data, this project uses the WeatherAPI service. To get an API key, follow these steps:
Visit the WeatherAPI website at https://www.weatherapi.com/.
Sign up for an account or log in if you already have one.
Once you are logged in, navigate to your account settings or dashboard.
Look for an option to create a new API key or access your existing API keys.
Generate a new API key. Some services may require you to subscribe to a specific plan or verify your email address to get access.
After generating the key, make sure to copy it to your clipboard or save it in a secure location.Now open view.py file in home folder,then in the function get_weather_data in place of
Important: Keep your API key secure. Do not share it publicly or expose it in your codebase. You can use environment variables or configuration files to store and access your API key securely.
A list of contributors can be found in CONTRIBUTORS.md.