Typeerror When Concatenating Django.test.liveservertestcase's Live_server_url With Another String
Whenever I try to construct a string based on self.live_server_url, I get python TypeError messages. For example, I've tried the following string constructions (form 1 & 2 bel
Solution 1:
See this discussion on Reddit featuring the same error Traceback.
Basically, this is not a problem with anything within the Selenium tests but rather with your project's static file configuration.
From your question, I believe the key line within the Traceback is:
File "/usr/local/lib/python3.4/site-packages/django/views/static.py", line 54, in serve
fullpath = os.path.join(document_root, newpath)
This line indicates that an unsuccessful os.path.join is being attempted within django.views.static.
Set STATIC_ROOT in your project's settings.pyfile and you should be good.
Solution 2:
Use StaticLiveServerTestCase instead may help
Post a Comment for "Typeerror When Concatenating Django.test.liveservertestcase's Live_server_url With Another String"