django keeps failing it say
[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?
11 Replies
Project ID:
a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
a9f8ba80-6038-4c04-9e6e-c1f0a11b0d98
send me your Procfile please
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
change it all to just
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
@Brody
it won't work like that at the moment, see this github issue for more information
https://github.com/railwayapp/nixpacks/issues/872
so there is no fix to it?
cus i cant see anything in the page
this is a temp fix
thanks man! you did well for me later
glad I could help
nixpacks has now been rolled back to v1.5.1, and Procfiles with both release and web commands now build correctly again!