My question is why foreman start not serving css file in dev environment ...? but my app running perfectly fine in heroku production server. Correct me if i am wrong, i thought dj-static
is the only option for serving static in foreman env, so in order to work dj-static in wsgi.. follows...
wsgi.py
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
if i am changing above code to
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readtamil.settings")
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
application = Cling(get_wsgi_application())
then foreman start gives me this error
ImportError: cannot import name get_path_info
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…