Django и Pycharm продолжают выдавать ошибку URL
Я продолжаю получать этот Логин, хотя в моем проекте я не упоминаю о входе в системуСтраница не найдена (404) Метод запроса: GET URL запроса: http://127.0.0.1:8000/login/. Используя URLconf, определенный в mysite.urls, Django попробовал эти шаблоны URL, в таком порядке:
admin/ Текущий путь, login/, не совпадает ни с одним из этих путей.
Вы видите эту ошибку, потому что у вас в файле настроек Django стоит DEBUG = True. Измените это значение на False, и Django отобразит стандартную страницу 404. мой реальный код проект django-admin mysite settings""" Настройки Django для проекта mysite.
Создано командой 'django-admin startproject' с использованием Django 4.1.3.
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "secret code"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
You have 18 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.
July 04, 2024 - 17:36:23
Django version 4.2.13, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
indicates that everything is corrects but weather you command line or click on the http: address you get the above error ... i've reset the ide updated os & pycharm no matter what i get the above error even tried a work around in settings LOGIN = False still got the error .... anyone know how to solve this problem
You have 18 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.
July 04, 2024 - 17:36:23
Django version 4.2.13, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
indicates that everything is corrects but weather you command line or click on the http: address you get the above error ... i've reset the ide updated os & pycharm no matter what i get the above error even tried a work around in settings LOGIN = False still got the error .... anyone know how to solve this problem