Forums

Having trouble finding correct path for deployment

Hi there, I was working through deploying my Django app on pythonanywhere and I have tried using various paths, all of which should either be or closely resemble the path to my app. No matter which one I use, I always get a traceback that says "no module named example/settings.py" I was wondering if anyone on pythonanywhere could take a look and see if they could find the issue with my path. Thanks!

Also, if it makes a difference, I cloned a git repository to import most of my code, and created python files in a shell for the information I did not want to appear on github.

Hi there,

I took a look at your file structure.

If your settings.py is at /home/vaultkey/VaultKey/vaultkey/vaultkey/settings.py, then you should set the path variable to be path = '/home/vaultkey/VaultKey/vaultkey and os.environ['DJANGO_SETTINGS_MODULE'] = 'vaultkey.settings'

Thank you, I'll give that a shot. I appreciate it!