Skip to content
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

The tutorial does not explain the mysite.settings file that is needed on PythonAnywhere #1195

Closed
sbeaumont opened this issue Jan 21, 2018 · 2 comments

Comments

@sbeaumont
Copy link

Issue description

The tutorial refers to the line os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' but does not explain that you need to create a file on PythonAnywhere called mysite.settings that has the SECRET_KEY=<my unique secret key> line in it.

Without this file you get this error:

`2018-01-21 14:39:10,456: Error running WSGI application
2018-01-21 14:39:10,457: django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
2018-01-21 14:39:10,457: File "/var/www/sbeaumont_pythonanywhere_com_wsgi.py", line 12, in
2018-01-21 14:39:10,457: application = StaticFilesHandler(get_wsgi_application())'

@hjwp
Copy link
Contributor

hjwp commented Feb 12, 2018

Hi there, I can't reproduce this issue, can I ask you to check again?

(be aware the deploy chapter has changed as a result of #1190 )

If you share a link to your github repo for the tutorial, I can also check that it works against the new deploy procedure...

@hjwp
Copy link
Contributor

hjwp commented Feb 12, 2018

(closing in the meantime, feel free to re-open if i've made a mistake)

@hjwp hjwp closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants