You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: