Python Forum

Full Version: help on django issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I follow the tuto below in order to display a simple "hello" message with django in windows
but when I launch my web page from http://127.0.0.1:8000/ I have the message below:
OSError: [WinError 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte: '<frozen importlib._bootstrap>'
Here is what I have in

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'projets:apps.ProjetsConfig'

And when I try to run the command below :

python manage.py migrate
python manage.py makemigrations
python manage.py migrate

I have the message

ModuleNotFoundError: No module named 'projets:apps'


what is the problem please??
(May-20-2021, 03:33 PM)jip31 Wrote: [ -> ]Hi
I follow the tuto below in order to display a simple "hello" message with django in windows
but when I launch my web page from http://127.0.0.1:8000/ I have the message below:
OSError: [WinError 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte: '<frozen importlib._bootstrap>'
Here is what I have in

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'projets:apps.ProjetsConfig'

And when I try to run the command below :

python manage.py migrate
python manage.py makemigrations
python manage.py migrate

I have the message

ModuleNotFoundError: No module named 'projets:apps'


what is the problem please??

I found
it was due to : instead . 'projets:apps.ProjetsConfig'