question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

StaticLiveServerTestCase can not load static files

See original GitHub issue

I use selenium for the functional test. I also use django-pipeline for loading static fils. Problem is that selenium with StaticLiveServerTestCase(from django.contrib.staticfiles.testing import StaticLiveServerTestCase) could not load static files. ref : http://stackoverflow.com/questions/39762920/django-functional-test-selenium-live-server-url-doesnt-load-static-files

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brianwawokcommented, Aug 13, 2018

I fixed this with:

  1. Extending LiveServerTestCase insead of StaticLiveServerTestCase
  2. Adding this to my test
    @classmethod
    def setUpClass(cls):
        super().setUpClass()
        call_command('collectstatic', '--noinput')
0reactions
brianwawokcommented, Aug 9, 2018

This is still broken

Read more comments on GitHub >

github_iconTop Results From Across the Web

django - StaticLiveServerTestCase not serving static files that ...
I am trying to run some selenium tests on my django app using the StaticLiveServerTestCase . I can see when the page shows...
Read more >
How to manage static files (e.g. images, JavaScript, CSS)
staticfiles in INSTALLED_APPS , you can still manually serve static files using the django.views.static.serve() view. This is not suitable for production use!
Read more >
StaticLiveServerTestCase can not load static files -
StaticLiveServerTestCase can not load static files ... I use selenium for the functional test. I also use django-pipeline for loading static fils.
Read more >
Django | Home Page with TDD, Staticfiles & Template settings
We will configure both static files and templates, implement HTML5 Boilerplate and Twitter Bootstrap, ... That's because the static files are not loading....
Read more >
Fillable Online StaticLiveServerTestCase can not load static files ...
Get the free StaticLiveServerTestCase can not load static files Issue #593 ... Fill Online. Quickly fill your document. Save, download, print and share....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found