Django app for Prayer times
Project description
=====
owghat-api
=====
owghat-api is a django app for Islamic times (owghat e shar'ee)
Quick start
-----------
pip install django-owghatapi
requirements: sqlparse,djangorestframework,pytz
1. Add "owghatapi" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'owghatapi',
]
2. Include the owghatapi URLconf in your project urls.py like this::
path('owghatapi/', include('owghatapi.urls')),
3. Run `python manage.py migrate` to create the owghat models and seed the DB .
5. Visit http://127.0.0.1:8000/owghatapi/<str:city-name>/ to get the times for more than 400 selected cities of iran (city name in Farsi),
http://127.0.0.1:8000/owghatapi/35.69439/51.42151 to get the times for today and specific location(latitude/longitude) in iran,
and http://127.0.0.1:8000/<int:year>/<int:month>/<int:day>/<str:lat>/<str:long>/<str:tz>/ for specific time,location,and timezone
owghat-api
=====
owghat-api is a django app for Islamic times (owghat e shar'ee)
Quick start
-----------
pip install django-owghatapi
requirements: sqlparse,djangorestframework,pytz
1. Add "owghatapi" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'owghatapi',
]
2. Include the owghatapi URLconf in your project urls.py like this::
path('owghatapi/', include('owghatapi.urls')),
3. Run `python manage.py migrate` to create the owghat models and seed the DB .
5. Visit http://127.0.0.1:8000/owghatapi/<str:city-name>/ to get the times for more than 400 selected cities of iran (city name in Farsi),
http://127.0.0.1:8000/owghatapi/35.69439/51.42151 to get the times for today and specific location(latitude/longitude) in iran,
and http://127.0.0.1:8000/<int:year>/<int:month>/<int:day>/<str:lat>/<str:long>/<str:tz>/ for specific time,location,and timezone
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-owghatapi-0.2.2.tar.gz
(22.0 kB
view hashes)
Built Distribution
Close
Hashes for django_owghatapi-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b3e31212e6384a4d91d81975c1614e0f90c7bac85b66df4c7c3731ef908d4b |
|
MD5 | e77e2d1e8dc307d576c5508fe50dd37c |
|
BLAKE2b-256 | 213d7f3986ce44bddfd3b9f9c415e9c50d7ceaf2788fe2c877b6fdf6dd8e7b1d |