# Help about deployment configuration of a simple project

**URL:** <https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497>\
**Category:** Deployment\
**Created:** [August 20, 2025, 10:33am UTC](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497 "2025-08-20T10:33:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![falatop](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/falatop/32/29592_2.png) [@falatop](https://forum.djangoproject.com/u/falatop)\
**Post date:** [August 20, 2025, 10:33am UTC](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497/1 "2025-08-20T10:33:38Z")

</div>

Hello everyone,

First the context :

I work on Django 5.2 with PyCharm.  
I practice on a little project first (my CV), and try to deploy it on my own Server.  
It is a Shared server (french O2switch).  
It uses Phusion Passenger to manage Python application.

On local, under Linux Ubuntu, obviously, the project works fine.

I configured the application on my server, but when starting I get the message “ModuleNotFoundError: No module named ‘profile’”

I think i have an issue about my settings.py file, but i stay stuck about how to resolve it

Here it is the structure of my app.  
It was my first, so it’s not optimized, but I’ll do better next time

root/  
|-cv/  
|-- cv/  
| |-- **init**.py  
| |-- asgi.py  
| |-- settings.py  
| |-- urls.py  
| |-- wsgi.py  
|-- profil/  
| |-- **init**.py  
| |-- admin.py  
| |-- apps.py  
| |-- models.py  
| |-- urls.py  
| |-- views.py  
| |-- manage.py  
|- passenger\_wsgi.py

Here is some of parameters for settings.py for local config :

```python
BASE_DIR = Path(file).resolve().parent.parentSECRET_KEY = 

os.getenv(‘SECRET_KEY’)

ALLOWED_HOSTS = [‘localhost’, ‘127.0.0.1’]

INSTALLED_APPS = [‘django.contrib.admin’, 
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘mdeditor’,
‘profil’,
‘django_weasyprint’,
]

```

Here is some of parameters for settings.py for deployment config :

```python
BASE_DIR = Path(file).resolve().parent.parentSECRET_KEY = 
os.getenv(‘SECRET_KEY’)

ALLOWED_HOSTS = [‘mydomain.com’]

INSTALLED_APPS = [‘django.contrib.admin’, 
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘mdeditor’,
‘profil’,
‘django_weasyprint’,
]

```

Any help is welcome to help me understand where the problem might be.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![nhrnhr0](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/nhrnhr0/32/1613_2.png) [@nhrnhr0](https://forum.djangoproject.com/u/nhrnhr0)\
**Post date:** [August 21, 2025, 6:29am UTC](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497/2 "2025-08-21T06:29:55Z")

</div>

Did you run `python manage.py migrate` on your server?  
To what DB are you trying to connect? sqlite3? postgres?

---

<div class="post-metadata">

**Author:** ![falatop](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/falatop/32/29592_2.png) [@falatop](https://forum.djangoproject.com/u/falatop)\
**Post date:** [August 21, 2025, 7:09pm UTC](https://forum.djangoproject.com/t/help-about-deployment-configuration-of-a-simple-project/42497/3 "2025-08-21T19:09:31Z")

</div>

> [@falatop](#):
>
> root/  
> |-cv/  
> |-- cv/  
> | |-- **init**.py  
> | |-- asgi.py  
> | |-- settings.py  
> | |-- urls.py  
> | |-- wsgi.py  
> |-- profil/  
> | |-- **init**.py  
> | |-- admin.py  
> | |-- apps.py  
> | |-- models.py  
> | |-- urls.py  
> | |-- views.py  
> |- manage.py  
> |- db.sqlite3  
> passenger\_wsgi.py

Thank you for your feedback.  
After reading it, I had a doubt.  
A package wasn’t installed, so I installed the missing package and performed a migrate.  
I also realize that the tree structure I provided was incorrect, because the manage.py file was located in the “profile” folder, even though it’s in the first “cv” folder, at the same level as the database.  
So I fixed the tree above, including the DB. I didn’t touch the configuration.

However, I’m facing the same error.  
I’m using SQLite.
