https://github.com/dori-dev/drf-sample
The sample project for django rest framework
https://github.com/dori-dev/drf-sample
django djangorestframework drf drf-yasg sample sample-app
Last synced: 2 months ago
JSON representation
The sample project for django rest framework
- Host: GitHub
- URL: https://github.com/dori-dev/drf-sample
- Owner: dori-dev
- Created: 2022-07-21T07:19:45.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T14:26:48.000Z (almost 3 years ago)
- Last Synced: 2023-03-05T17:29:19.407Z (over 2 years ago)
- Topics: django, djangorestframework, drf, drf-yasg, sample, sample-app
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://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](http://127.0.0.1:8000/)
Admin Page: [127.0.0.1:8000/admin](http://127.0.0.1:8000/admin/)#
## Links
Download Source Code: [Click Here](https://github.com/dori-dev/drf-sample/archive/refs/heads/master.zip)
My Github Account: [Click Here](https://github.com/dori-dev/)