Django: Resources

menos que 1 minuto(s) de leitura

Pandas



Plotly



Pandas to Model

from django.conf import settings
from .defs_views import get_df_compiled
from sqlalchemy import create_engine
from datetime import date, datetime, timedelta

# Set Database
user = settings.DATABASES['default']['USER']
password = settings.DATABASES['default']['PASSWORD']
database_name = settings.DATABASES['default']['NAME']

database_url = f'postgresql://{user}:{password}@localhost:5432/{database_name}'

engine = create_engine(database_url, echo=False)



Folium



Erros

Encerrar o que estiver na porta 8000

sudo fuser -k 8000/tcp



Monetizando

Deixe um comentário