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 2 years, 1 month 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 2 years, 1 month ago
Reputation: 1





Your Answer

Nothing to preview

Post Answer



Asked:  2 years, 1 month ago
Viewed:  533 times
Active:  2 years, 1 month ago