Closed luizanao closed 3 years ago
Thanks for reporting this. You are indeed correct. If the following code snipped would be added to tests/wsgi.py
and then the settings modified accordingly. You'd be able to run the app.
"""
WSGI config for foxflash project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tests.settings')
application = get_wsgi_application()
Thanks for checking it out (and for the solution for free 😄 ) @jonathan-s . I can take time today evening to patch it if you haven't done yet
Please do send a patch, then you can confirm that it's actually working :)
@jonathan-s #969 is good for reviewing now :)
It will be appreciated if you label the PR as hacktoberfest-accepted
since I found this creating another open-souce for hacktoberfest :)
Lemme know if you need any clarifications
Closed by #969
Cookiecutter 1.7.0
Description
Only following these instructions I couldn't get the app up and running. (Plus whoever will fix it, can take advantage of the PR and fix the README h1)
To get it running you need either run it passing
PYTHONPATH=tests/
(which in this case could be added to the README.md ) or preppendtests.
to the wsgi appWhat I Did
I can take care of it if you agree this is indeed not desired. Also, any preferences on the fixes? I'd say patching the wsgi.py would make more sense to me