Skip to content

Tag: django

Celery – No module named five

After updating celery and django-celery to 3.1: I run into this error when starting my server: Using: Django 1.4.21 Python 2.7 Answer Last version of vine is 5.0.0 and fresh push was in 06.09.2020 (yesterday) :), and this version do not have any five.py file. So downgrade vine version to. vine==1.3.0 works fo…

django makemigrations not detecting new model

I used makemigrations earlier in order to make my Django app aware of the tables in my legacy MySql database, and it worked fine. It generated models.py. Now, I want to add a new “UserDetails” model to my app: After saving the file, I ran the following command in the command prompt: But makemigrat…

Error : “You are trying to add a non-nullable field”

I defined below model and getting error : You are trying to add a non-nullable field ‘user’ to videodata without a default; we can’t do that models.py Where i am doing wrong???? Answer As the error says, your user field on VideoData is not allowing nulls, so you either need to give it a defa…