Categories
Backend

Django REST always return hyperlink with http proto even if the request is made via https

We always host Django app behind a proxy server(apache or nginx) in production, the connection from your client and the proxy server may be(better be) https. However, between the proxy server and Django app(gunicorn or whatever you’re using) is usually http. So Django thinks that the client is using http, and returns all hyperlink including […]

Categories
Backend

Mysql dump docker DB one-liner solution

ONE LINER docker exec CONTAINER_NAME /usr/bin/mysqldump -u root –password=PASSWORD DBNAME>FILE_NAME.sql

Categories
Backend

EF Core missing methods in generated DbContext

Problem Methods like UseSqlServer HasColumnName are not resolved Solution With only EF Core package is not enough, you need two more. Microsoft.EntityFrameworkCore.Design Microsoft.EntityFrameworkCore.SqlServer After installing these two everything works again…