tengo un error en el enrutamiento y no logro definir por que, la version de django es 3.1.* es como que si la ruta declarada no existiera, agradeceria mucho su ayuda
ARCHIVO SETTINGS.PY
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'apps.adopcion',
'apps.mascota',
]
-----------------------------------------------------------------------------
.
.
.
-----------------------------------------------------------------------------
# STATIC_ROOT = [Path(BASE_DIR, 'static')]
STATIC_URL = '/static/'
STATICFILES_DIR = [Path(BASE_DIR, 'static'),]
FIN ARCHIVO
-----------------------------------------------------------------------------
ARCHIVO HTML
{% load static%}
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
{% block extrastatic %}
{%endblock%}
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}">
<title>{%block title %} documento {%endblock%}</title>
</head>
-----------------------------------------------------------------------------
diagrama de carpetas
-refugio
---apps
-----mascota
-----adopcion
---refugio
------settings.py
------+++++++++
---static
-------css
------------base.css
------------bootstrap.min.css
---template
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7e15c686-d59c-4aa3-b998-3c31597cc0b2n%40googlegroups.com.
No comments:
Post a Comment