#django keeps failing it say

19 messages · Page 1 of 1 (latest)

primal perch
#

[stage-0 8/10] RUN chmod u+x release.sh && ./release.sh:
#12 1.649 ModuleNotFoundError: No module named 'django'
#12 1.649
#12 1.649 The above exception was the direct cause of the following exception:
#12 1.649
#12 1.649 Traceback (most recent call last):
#12 1.649 File "manage.py", line 22, in <module>
#12 1.649 main()
#12 1.649 File "manage.py", line 13, in main
#12 1.649 raise ImportError(
#12 1.649 ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

sudden chasmBOT
#

Project ID: a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98

primal perch
#

a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98

coral dome
#

send me your Procfile please

primal perch
#

release: chmod u+x release.sh && ./release.sh
web: daphne rel8.asgi:application --port $PORT --bind 0.0.0.0 -v2

#

one is to runcommand and the other is to run asgi server

#

using daphne

coral dome
#

change it all to just

web: chmod u+x release.sh && ./release.sh && daphne rel8.asgi:application --port $PORT --bind 0.0.0.0 -v2
primal perch
#

okau

#

okay

#

hey man it worked but what if my procfile is like this below

#

release: chmod u+x release.sh && ./release.sh
web: gunicorn app.wsgi:application

#

@coral dome

coral dome
primal perch
#

so there is no fix to it?

#

cus i cant see anything in the page

primal perch
#

thanks man! you did well for me later

coral dome
#

glad I could help