71👍
I had the same issue here. After having suffering for a few hours stuck, I figured out the reason. It’s very basic.
We forgot to run the migrate commands.
To fix, run the below commands in order:
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
While the error notification is not relavance but this fix the error anyway :v.
You can read further information about migration Here.
27👍
The same issue is also occurred when someone misspell filename, directory name or app name… for example when someone create an app by the name of users and then he/she want to enlist the app in the INSTALLED_APPS List available in the setting.py file in misspell way like ………… users.app.UsersConfig instead of users.apps.UsersConfig
- [Django]-Error: "dictionary update sequence element #0 has length 1; 2 is required" on Django 1.4
- [Django]-User Authentication in Django Rest Framework + Angular.js web app
- [Django]-What is the difference between null=True and blank=True in Django?
10👍
if you have virtualenv managing your packages make sure that is activated it before you run your app.
- [Django]-Django: SocialApp matching query does not exist
- [Django]-How to group by AND aggregate with Django
- [Django]-How to obtain and/or save the queryset criteria to the DB?
1👍
I am sensing that you are trying to import bootstrap files for your website.This can be conveniently done by adding the hyperlink from the bootstrap cdn on your base template.
Also you can download the boostrap package and copy the css and js files under the static folder in your project.
- [Django]-Django index page best/most common practice
- [Django]-Django 1.5 – How to use variables inside static tag
- [Django]-Can you migrate backwards to before the first migration in South?
1👍
first but not always, it seems you have deleted a file/folder from your project. if so, remember to delete the path that was serving that folder “path in the project urls.py”
- [Django]-How do I make an auto increment integer field in Django?
- [Django]-Extend base.html problem
- [Django]-Cannot apply DjangoModelPermissions on a view that does not have `.queryset` property or overrides the `.get_queryset()` method
0👍
In my case, I was missing the \
when using multiple lines to import:
from .models import Country, State, Locality, Address,\
PercentageAmount, Condominium, Condominium_expenses_report,\
FunctionalUnit, Percentage, FunctionalUnit_expenses_report,\
Expense, Bill, Judgment, Insurance, Concept
- [Django]-Is this the right way to do dependency injection in Django?
- [Django]-How can I get all the request headers in Django?
- [Django]-How to show a message to a django admin after saving a model?
0👍
I had the same error and I also do not have any bootstrap included in my application. In my case the virtualenv server stopped running. Just reboot the Django server and you are good to go again.
- [Django]-Django: guidelines for speeding up template rendering performance
- [Django]-How do I use pagination with Django class based generic ListViews?
- [Django]-How can I disable logging while running unit tests in Python Django?
0👍
I made the same mistake and to solve the issue try this
from django.http import HttpResponse
- [Django]-How do I add a link from the Django admin page of one object to the admin page of a related object?
- [Django]-How to create list field in django
- [Django]-Django – Annotate multiple fields from a Subquery