Hijri API for getting dates in hijri (gregorian), also hijri (gregorian) months and week days๐
P.S. I used hijri-converter package to get dates, big thanks author of this package
To run this project, you need to add your generated secret key in settings.py file on INSTALLED_APPS
. You can get it by this commands:
go terminal $ django-admin shell
and type
from django.core.management.utils import get_random_secret_key
get_random_secret_key()
or simply get it by Djecrety
Clone the project
git clone https://github.com/FarizAbduhakimov/HijriAPI.git
Create virtual env & activate it
virtualenv env # create
.\env\Scripts\activate # activate (Windows)
$ source venv/bin/activate # activate (Linux)
Install requirements.txt
pip install -r requirements.txt
For linux & mac use pip3 & python3
Go to the project directory & run
cd .\hijri_api\
python manage.py runserver
Go postman and continue following commands
For getting hijri date type on url http://127.0.0.1:8000/api/tohijri and make a request, like that
Swagger url: http://127.0.0.1:8000/swagger/
To run tests, run the following command
python manage.py test
If you liked the project, don't forget to press a star button :)