РР
Size: a a a
РР
DT
django-admin runserverпишет
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.вот и стою на асфальте в лыжах, перегуглил, почитал, не смог найти рабочего решения.
testproj
├── manage.py
├── myNewApp
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── admin.cpython-37.pyc
│ │ └── models.cpython-37.pyc
│ ├── admin.py
│ ├── apps.py
│ ├── migrations
│ │ └── __init__.py
│ ├── models.py
│ ├── tests.py
│ └── views.py
└── testproj
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-37.pyc
│ └── settings.cpython-37.pyc
├── asgi.py
├── settings.py
├── urls.py
└── wsgi.py
РР
DT
U
❯ ./manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
February 11, 2020 - 15:16:31
Django version 3.0.3, using settings 'testproj.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
AO
site.title_site.count
DT
❯ ./manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
February 11, 2020 - 15:16:31
Django version 3.0.3, using settings 'testproj.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
V
DT
V
AK
Д
DT
U
inspectdb
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.
U
DT
DT
DT