Fix url template
This commit is contained in:
parent
55c17554f1
commit
7b6613bd36
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
static/admin/
|
static/admin/
|
||||||
static/django_extensions/
|
static/django_extensions/
|
||||||
static/rest_framework/
|
static/rest_framework/
|
||||||
|
/static/
|
||||||
|
@ -57,8 +57,8 @@ ROOT_URLCONF = "core.urls"
|
|||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
"BACKEND": "django.template.backends.django.DjangoTemplates",
|
||||||
"DIRS": [os.path.join(BASE_DIR, "app", "templates")],
|
"DIRS": [os.path.join(BASE_DIR, "templates")],
|
||||||
"APP_DIRS": True,
|
"APP_DIRS": False,
|
||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
"context_processors": [
|
"context_processors": [
|
||||||
"django.template.context_processors.debug",
|
"django.template.context_processors.debug",
|
||||||
|
@ -5,7 +5,7 @@ DEBUG=True
|
|||||||
SECRET_KEY=mysecret
|
SECRET_KEY=mysecret
|
||||||
DOMAIN=project.localhost
|
DOMAIN=project.localhost
|
||||||
DOMAIN_URL=http://project.localhost
|
DOMAIN_URL=http://project.localhost
|
||||||
ALLOWED_HOSTS=project.localhost,localhost
|
ALLOWED_HOSTS=localhost,django,caddy,django.localhost,project.localhost
|
||||||
STATIC_ROOT=static
|
STATIC_ROOT=static
|
||||||
STATIC_URL=/static/
|
STATIC_URL=/static/
|
||||||
MEDIA_ROOT=media
|
MEDIA_ROOT=media
|
||||||
|
Loading…
Reference in New Issue
Block a user