css and javascript not working in django


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

But when I enter

$ python runserver

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

asked 2 years, 3 months ago
Reputation: 1

1 Answer


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

Just put

DEBUG = True

in and restart server.

answered 2 years, 3 months ago
Reputation: 1

Your Answer

Nothing to preview

Post Answer

Asked:  2 years, 3 months ago
Viewed:  572 times
Active:  2 years, 3 months ago