Deploying Django in PAAS (Clever-Cloud) / can't find my app

21 Views Asked by At

I am trying to deploy my django (5.0.3) in Clever cloud

It can't locate my app on the server, although it works fine locally

Here is my tree structure

enter image description here

Here is my settings.py

enter image description here

Here are my env variables in cleveer-cloud

enter image description here

Here is the error :

2024-03-09T14:55:49+01:00 ModuleNotFoundError: No module named 'photos'

What could be the root cause ?

1

There are 1 best solutions below

0
Ankit Tiwari On

You've to put this in CC_PYTHON_MODULE

photoshare.wsgi:application

instead of

photoshare.photoshare.wsgi:application

outer folder photoshare does not contain __init__.py so it's not treated as package.

Note

Please do not post code or errors as images

Read this Why should I not upload images of code/data/errors?