Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ashishkapoor/django-rest-framework

Learning Django Rest Framework
https://github.com/ashishkapoor/django-rest-framework

Last synced: about 1 month ago
JSON representation

Learning Django Rest Framework

Awesome Lists containing this project

README

        

# django-rest-framework backend

### Deployment References
1. Gunicorn - https://docs.gunicorn.org/en/stable/configure.html

## For Migration to Postgres
```
$ pip install psycopg2
```

## Run locally

http://0.0.0.0:8000

## Some useful commands
```
Django-admin startproject

python manage.py runserver (can be put in config)

python manage.py startapp

# add to database
python manage.py migrate

# create migration only
python manage.py makemigrations

pip3 install djangorestframework

python manage.py createsuperuser

# generate requirements.txt file
pip freeze > requirements.txt

```