django operational error

Solutions on MaxInterview for django operational error by the best coders in the world

showing results for - "django operational error"
Sara Sofía
08 Jan 2017
1In the case of an Operational Error in django you HAVE TO do the following :-
20) Reload the site
3Still not solved
41) Delete the migrations folder and pycache folder
5Still not solved
62) Reload the site
72) python manage.py makemigrations, then python manage.py migrate.
83) Reload the site
9Still not solved
104) python manage.py makemigrations appNameHere, then python manage.py migrate appNameHere
11Still not solved
125) Then reload the site
13Still not solved
146) Now, remove the row which was giving you the error, class y(Models.model):
15a = models.CharField(default='Let us say default')
16b = ....
17Yes, remove the one giving you the error, for example, it is saying
18
19OperationalError at /admin/blog/blogpost/ no such column: table_table.a
20then remove the thing coming after the dot
21a in this case
22remove it so that only 
23b = ....
24is left in the model
25It is happening  because that column was left null. You have to delete the column it self (NOT THE MODEL INSTANCE)
26Then once you are able to get in you have to add the field again.
27Then you can fill the nulled part up with something 
28
29Still not solved
30
315) Reload the site
32	
33					The final tip
34
35					Reload the site
36
37The problem should be solved!!
38
39Subscribe to GuruTheCoder
queries leading to this page
operationalerror at 2f no such table 3aoperationalerror no such tablehandle operational error in djangooperational error in djangodjango db utils operationalerror 3a no such table 3a members memberdjango db utils operationalerror 3a no such table 3a django 3 0django db utils operationalerror 3a no such table 3a storedetailsdjango operational error no such table 3a djangodjango db utils operationalerror 3a no such table 3a articles articledjango db utils operationalerror 3a no such tablepython django operational errordjango db utils operationalerror 3a no such table 3a join applicantdjango db utils operationalerror 3a no such table 3a browser websitedjango operationalerror at 2fadmin 2fposapp 2fproducts 2f no such table 3a posapp productsoperationalerror at 2f no such table 3a network user likesoperational error python in djangodjango db utils operational erroroperationalerroroperational error no such table djangohow to solve operational error in djangoreturn database cursor execute 28self 2c query 2c params 29 django db utils operationalerror 3a no such table 3a book bookoperationalerror no such table 3a users profiledjango operation errorexception type 3a operationalerror at 2fadmin 2fshop 2fcontact message 2f exception value 3a no such table 3a shop contact messagedjango operationalerror at 2fadmin 2fgamer zone 2fgame 2f no such table 3a gamer zone gameoperationalerror at 2fadmin 2fapi basic 2fartical 2f no such table 3a api basic articaloperationalerror at no such table djangooperationalerror at 2fadmin 2fskin lesion 2fimage 2f no such tabledjango operational error 1824django db utils operationalerror 3a no such table 3a podcaster plandjango db utils operationalerror 3a no such table 3a post postdjango error no such tablewhat is operational error in djangodjango operational error