Комментарии:
hi sir, my name is Subodh Paswan recently I have done B-Tech in IT so I make it a Django project like yours but I face some problem and plz help me out
sir when i do export DJANGO_SETTINGS_MODULE=bhagwatgita.settings then i got error
C:\xampp\htdocs\project\bhagwatgita>echo $DJANGO_SETTINGS_MODULE
$DJANGO_SETTINGS_MODULE
C:\xampp\htdocs\project\bhagwatgita>export DJANGO_SETTINGS_MODULE=bhagwatgita.settings
'export' is not recognized as an internal or external command,
operable program or batch file.
Hmmmm... I just added an alias to my .bashrc
ОтветитьAnyone got this working on windows?
I get:
"django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings." In the end of a long error message print.
I used set DJANGO_SETTINGS_MODULE="project name".settings
and I made sure the path to django-admin was set in environment variable path.
Did I miss something?
cool
ОтветитьHey, I found your channel a couple days ago, you're doing a great job. Do you have plans to make a video about django deploy?
Ответить