global settings and work on test website
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
This commit is contained in:
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/
|
||||
"""
|
||||
import os
|
||||
from pathlib import Path
|
||||
from urllib import request as urllib_request
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -223,3 +224,23 @@ CELERY_IMPORTS = [
|
||||
'apps.random_simpsons.utils'
|
||||
# Add other app tasks here if needed
|
||||
]
|
||||
|
||||
|
||||
|
||||
###########################################################################################
|
||||
#
|
||||
# Custom settings
|
||||
#
|
||||
###########################################################################################
|
||||
|
||||
|
||||
PROXY_URL = 'http://gluetun-svc.gluetun.svc:8888'
|
||||
PROXY = urllib_request.ProxyHandler({
|
||||
'http': PROXY_URL,
|
||||
'https': PROXY_URL # Add the handler for HTTPS
|
||||
})
|
||||
|
||||
PROXIES = {
|
||||
"http" : PROXY_URL,
|
||||
"https" : PROXY_URL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user