I was trying to rename table using Django but when i m running python3 manage.py makemigrations book command it shows No changes detected in app ‘book’. i already used the below code in model.py file
class Meta: db_table = “book”
I was trying to rename table using Django but when i m running python3 manage.py makemigrations book command it shows No changes detected in app ‘book’. i already used the below code in model.py file
class Meta: db_table = “book”
The first thing you can learn HTML, whether you want to become a professional web developer or just want to learn more about how websites work. The basic language for developing web pages and web applications is HTML. A server ...
Asynchronous Javascript One of AJAX’s benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and ...
How To Make Cookie Free Domain An HTTP cookie (also known as a web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user’s computer by the ...
Hello Navdeep,
Please follow following steps:-
Go into the migrations folder in your app.
Look for the migration file where you would like to go back to. (for example 0012_post_category.py)
go in the terminal write: ./manage.py migrate yourAppName 0012 (this is just an example number) and hit enter
if everything goes well. Delete the other migrations which came after this number in your migrations folder.