GrLdev / Rate-My-Student-Home

A website designed to allow students rate their student homes in Cardiff.
3 stars 0 forks source link

db_maker only works on an updated models.py setup when certain lines are removed #62

Closed theobaur13 closed 1 year ago

theobaur13 commented 1 year ago

After a change has been made to the columns of models.py, when db_maker.py is launched it will return the following error: image This is caused by the following lines in forms.py: image image db_maker.py will work fine if these are commented out, and once ran once it will start working with the new models.py setup. I think the error is something to do with the CreateReviewForm being ran somehow when db_maker.py is run as the CreateReviewForm performs queries on the db