-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Files Bug when running 'manage.py test' for setup #52
Comments
#43 may be a possible fix. I tried it out, but the error that is coming now is |
I've continued trying to resolve this issue, but am having no luck. Are there any updates on getting this to correctly load the database? |
Did you see my comments in #9? You need to specify a |
this test will fail due to reasons I am still not able to understand. |
Firstly i change {% load staticfiles %} to {% load static %} static file issue resolve |
Describe the bug
The bug appears after going through the setup; the program is unable to locate the static files root directory. I have tried running
python manage.py collectstatic
while changing the static file paths which resolves most errors, but still leaves me with a final 404 error:`FAIL: test_tutorials_page_status_code (api.tests.test_views.APITests)
Traceback (most recent call last):
File "C:\Users\temp\hacktoberfest\tutorialdb\api\tests\test_views.py", line 8, in test_tutorials_page_status_code
self.assertEquals(response.status_code, 200)
AssertionError: 404 != 200`
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Status code of 200, asserting page was created correctly
The text was updated successfully, but these errors were encountered: