Django Rest Framework Tutorial Part - 01 | Initial Setup

Опубликовано: 04 Сентябрь 2018
на канале: Shubh
362
3

Django Rest Framework is used to quickly build Restful API for use in mobile applications. It is a Django Framework and Django is a framework for Python programming langauge.

This video covers the basic setup of our project. It includes installation of Django, Django rest framework and other required libraries for our project. We then created a database and also created a database user for our database. Then we modified the settings of our Django project to use Django Rest Framework and our created database.

Below are the tools that we used in this video.

1. Python 3.6.5
2. Django 2.1.1
3. Django Rest Framework 3.8.2
4. pip 18.0
5. psycopg2 2.7.5
6. Postgresql 10.5
7. Ubuntu 18.04
8. Visual Studio Code Editor

----------------------------------------------------------------------

Here are the commands to create Database and Database user on Postgresql

sudo -u postgres psql

CREATE DATABASE myproject;

CREATE USER myprojectuser WITH PASSWORD 'password';

ALTER ROLE myprojectuser SET client_encoding TO 'utf8';

ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';

ALTER ROLE myprojectuser SET timezone TO 'UTC';

GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;

--------------------------------------------------------------------------------------


На этой странице сайта вы можете посмотреть видео онлайн Django Rest Framework Tutorial Part - 01 | Initial Setup длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Shubh 04 Сентябрь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 362 раз и оно понравилось 3 зрителям. Приятного просмотра!