How to Run Django Development Server - Alternatives (Django Tutorial) | Part 41

How to Run Django Development Server - Alternatives (Django Tutorial) | Part 41

Max Goodridge

7 лет назад

11,890 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@SuBoKuMaR
@SuBoKuMaR - 02.10.2018 11:21

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.

Ответить
@troyjones9344
@troyjones9344 - 30.12.2017 00:43

Hmmmm... I just added an alias to my .bashrc

Ответить
@ViktorWingqvist
@ViktorWingqvist - 21.11.2017 04:04

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?

Ответить
@djangodeveloper7127
@djangodeveloper7127 - 21.03.2017 22:17

cool

Ответить
@ItaloLemos13
@ItaloLemos13 - 27.01.2017 07:04

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?

Ответить