Categories
Backend

NopCommerce plugin reference loop result in duplicate assembly

Categories
Backend Database

Django dump all data into JSON

I know you could do it by dumping the database directly, but this could come in handy when you’re trying to migrate from one database to another. AFAIK, copying data from one kind of DB to another kind(think Pgsql to MySql) is a nightmare… Luckily, Django provides a utility to make this super easy.

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…