Add function to build canonical url
This commit is contained in:
parent
e8d73b9909
commit
b59377471a
6 changed files with 87 additions and 41 deletions
|
@ -15,6 +15,8 @@ ALLOWED_HOSTS = []
|
|||
|
||||
INTERNAL_IPS = ['localhost', '127.0.0.1',]
|
||||
|
||||
CANONICAL_URL_DOMAIN = "https://nyymix.net"
|
||||
|
||||
# Localization
|
||||
|
||||
LANGUAGES = [
|
||||
|
@ -32,9 +34,6 @@ LOCALE_PATHS = [
|
|||
BASE_DIR / 'locale',
|
||||
]
|
||||
|
||||
# Hostname for canonical_url
|
||||
CANONICAL_HOST = "nyymix.net"
|
||||
|
||||
|
||||
# Application definition
|
||||
INSTALLED_APPS = [
|
||||
|
@ -79,7 +78,6 @@ TEMPLATES = [
|
|||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'gallery.context_processors.canonical_url_processor',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue