Web application with Python, Django, and PostgreSQL Part - 2

preview_player
Показать описание
This tutorial shows how to develop a data-driven Python (Django) web app to Azure App Service and connect it to a cloud Database for the PostgreSQL database.
Рекомендации по теме
Комментарии
Автор

Great video!! I was able to get some idea of how Django works. Few things to say.

After setting up the database and migrating the code, I couldn’t find the relations in postgres. I updated the DATABASES in settings.py file with the following details.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'portfoliodb',
'USER': 'postgres',
'PASSWORD':
'HOST': 'localhost',
'PORT': '5432'
}
}

At 1:42:53, you were talking about index.html. I created the file in the courses folder. Later I realized that the file path is (able to figure it out by pausing at 1:42:43). When STATIC_ROOT was created in settings.py, os must be imported in the settings.py (import os)

gannuvineel
Автор

таблицы не создаются...мы же не указали в проекте, что субд postgre....либо тут ролики перепутаны, либо автор что-то темнит...не тратьте время(((

arrogante
visit shbcf.ru