Skip to content

dori-dev/drf-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRF Sample

The sample project for django rest framework.

How to Run Project

Download Codes

git clone https://github.com/dori-dev/drf-sample.git
cd drf-sample

Build Virtual Environment

python3 -m venv env
source env/bin/activate

Install Project Requirements

pip install -r requirements.txt

Set Environ Variables

rename .env.example to .env and change values.

mv .env.example .env

create account in kavenegar.com and change SMS_API_KEY value to your api key.
create verification template and change OTP_TEMPLATE value to your template name.

Migrate Models

python manage.py makemigrations planes otp
python manage.py migrate

Add Super User

python manage.py createsuperuser

Run Codes

python manage.py runserver

API Docs

API Documentation: 127.0.0.1:8000
Admin Page: 127.0.0.1:8000/admin

Links

Download Source Code: Click Here

My Github Account: Click Here