Reputation: 493
I am tyring to deploy a django project on pythonanywhere.com, The project runs fine on the local server.
I'm using a free account, I have created a virtual env and I've installed all required modules including django. I have also edited the wsgi.py file as follows:
path = '/home/karmah24/reporting_portal'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'portal.settings'
I'm getting a "Module not found Error: test.urls not found" even though I've added this to the main project urls, and this project works on my local server.
https://github.com/Karmah24/reporting_portal is my github repository that I want to deploy.
Thanks :)
Upvotes: 0
Views: 184
Reputation: 1610
This is from your settings
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
your app for test folder is missing in INSTALLED_APPS
Also, in your test/apps.py
You have used app name as calc
Upvotes: 1