Questions

css and javascript not working in django

0

I am trying to run my django website through virtual environment on localhost.

But when I enter

$ python manage.py runserver

It says it started working on localhost:8000 but when I visit url, styling and javascript is gone.



asked 1 year, 10 months ago
Reputation: 1





1 Answer

0

Django is unable to serve static files if you have put DEBUG = False in settings.py.

Just put

DEBUG = True

in settings.py and restart server.

answered 1 year, 10 months ago
Reputation: 1





Your Answer

Nothing to preview

Post Answer



Asked:  1 year, 10 months ago
Viewed:  457 times
Active:  1 year, 10 months ago