Skip to content
Advertisement

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 for me UPDATE: by the answer Sarang, amqp

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 makemigrations is not seeing the new class

“from . import views”: Unresolved import

I’m following the Django 1.8 tutorial. In my project mysite, there is a source folder polls. In the folder there is views.py module where a index function is defined. And there is a urls.py file: This is what the tutorial suggests, and Django works well with the codes. However Eclipse (PyDev) complains of unresolved imports for views. If I remove

Separating development and production parts of django project

I’m building a site that relies on the output of a machine learning algorithm. All that is needed for the user-facing part of the site is the output of the algorithm (class labels for a set of items), which can be easily stored and retrieved from the django models. The algorithm could be run once a day, and does not

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 default user or allow nulls. Easiest

Advertisement