Мой админ не работает.Я уже пробовал пару часов.
Миграция работает:
C:\Users\sebas\AI_MachineLearning\Django_Projekt\pythonprojects\cookbook>python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, recipes, sessions, sites
Running migrations:
No migrations to apply.
C:\Users\sebas\AI_MachineLearning\Django_Projekt\pythonprojects\cookbook>
The Superuser is created.
Runserver works:
C:\Users\sebas\AI_MachineLearning\Django_Projekt\pythonprojects\cookbook>python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
September 18, 2019 - 22:06:57
Django version 2.2.5, using settings 'cookbook.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Если я попробую URL-адреса ../admin
:
http://dpaste.com/069QF7H
Поддерживает ли NotExist в / admin / login /
Site matching query does not exist.
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/login/?next=/admin/
Django Version: 2.2.5
Exception Type: DoesNotExist
Exception Value:
Site matching query does not exist.
Exception Location: C:\Users\sebas\.conda\envs\pythonDjango\lib\site-packages\django\db\models\query.py in get, line 408
Python Executable: C:\Users\sebas\.conda\envs\pythonDjango\python.exe
Python Version: 3.6.7
Python Path:
['C:\\Users\\sebas\\AI_MachineLearning\\Django_Projekt\\pythonprojects\\cookbook',
'C:\\Users\\sebas\\.conda\\envs\\pythonDjango\\python36.zip',
'C:\\Users\\sebas\\.conda\\envs\\pythonDjango\\DLLs',
'C:\\Users\\sebas\\.conda\\envs\\pythonDjango\\lib',
'C:\\Users\\sebas\\.conda\\envs\\pythonDjango',
'C:\\Users\\sebas\\.conda\\envs\\pythonDjango\\lib\\site-packages']
Server time: Mi, 18 Sep 2019 21:55:32 +0200
--------------------------------------------------------------------------