1👍
✅
Change your wsgi.py file to this:
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hellodjango.settings")
from dj_static import Cling
application = Cling(get_wsgi_application())
You need to specify your settings before importing Cling otherwise it will error out.
1👍
Add this to your .wsgi
file
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
application = Cling(get_wsgi_application())
- [Answered ]-Django Migrate : TypeError: int() argument must be a string or a number, not 'User'
- [Answered ]-Django: limit_choices_to with with a "through" intermediate table
Source:stackexchange.com