9 months ago
I don't know how to get past the error "ModuleNotFoundError: No module named 'store.wsg'" . Stuck Railway newbie.
Setup
Django app with app that uses a postgres DB running on Railway. Project code on Github.
Structure looks like:
store/apps.py looks like:
from django.apps import AppConfig
class StoreConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'store'
Procfile looks like:
web: gunicorn store.wsgi --log-file
web: python manage.py migrate && gunicorn store.wsg
10 Replies
9 months ago
Your Procfile should be -
web: python manage.py migrate && gunicorn store.wsg
9 months ago
Thank you for your assistance. Unfortunately that did not help.
I've attached the part of the deploy log that indicates the error. I could not paste it into this window.
Attachments
9 months ago
That was a good guess. Unfortunately the only change is in the module not found: ModuleNotFoundError: No module named 'store.wsgi' instead of ModuleNotFoundError: No module named 'store.wsg'
9 months ago
okay, I think you have guided me to a solution. I changed the line to ECommerce.wsgi. (I've tried ECommerce.wsg earlier in the day, but didn't think of adding the i ??!)
The deployment occurred, but I cannot reach it over the web when going to https://django-ecommerce-production-e0b0.up.railway.app. The logs say it is listening at [INFO] Listening at: http://0.0.0.0:8080 (1). Should I open another issue?
Thank you for your help Brody!
9 months ago
Thank you! I should have asked for help sooner!!
Status changed to Solved brody • 9 months ago