Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pythonanywhere configuration #48

Open
geomajor56 opened this issue Oct 21, 2015 · 2 comments
Open

pythonanywhere configuration #48

geomajor56 opened this issue Oct 21, 2015 · 2 comments

Comments

@geomajor56
Copy link

I'm fairly new to Django and deploying anything really, so please forgive my ignorance. I'm trying to get your template up and running on pythonanywhere as per your installation in the docs, but get an error:

ImportError: No module named 'cdp_proj.settings'

part of wsgi.py:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cdp_proj.settings.production")

Plus I'm not sure how to handle the static files. pythonanywhere has its own configuration and I'm not sure if I should ignore it since your settings seems to handle it

Any guidance in regards to seeting up edge on pythonanywhere would be great.

thanks in advance,

Michael
p.s. bought your book, very well written as it's very readable to a beginner like me, very rare

@arocks
Copy link
Owner

arocks commented Dec 13, 2015

Hi @geomajor56

Thank you so much for the kind words. The import error usually happens because your project is not in the PYTHONPATH. Try the check mentioned here. One of the paths should point to the parent directory of your project.

For static files, it is best to handle it outside Django.

@hbutau
Copy link

hbutau commented Mar 28, 2016

Hi @geomajor56

Just make sure you are pointing to the correct settings file in dot notation, in you wsgi file

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants