A;adido Wotlk Futura Implementacion y Varios arreglos en js
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+29
-11
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@@ -23,16 +24,27 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
SECRET_KEY = 'django-insecure-os9f6#@x_5*sfv2g6vyj*31$964_s%7(%&x0+m)crrbj^=0wus'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['novawow.com', 'www.novawow.com', '95.216.107.200']
|
||||
SECURE_SSL_REDIRECT = True
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
SECURE_HSTS_SECONDS = 31536000 # Habilita HSTS por 1 año
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
|
||||
SECURE_HSTS_PRELOAD = True
|
||||
SESSION_COOKIE_SECURE = True
|
||||
CSRF_COOKIE_SECURE = True
|
||||
if not DEBUG:
|
||||
ALLOWED_HOSTS = ['novawow.com', 'www.novawow.com', '95.216.107.200', 'localhost', '127.0.0.1']
|
||||
SECURE_SSL_REDIRECT = True
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
SECURE_HSTS_SECONDS = 31536000 # Habilita HSTS por 1 año
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
|
||||
SECURE_HSTS_PRELOAD = True
|
||||
SESSION_COOKIE_SECURE = True
|
||||
CSRF_COOKIE_SECURE = True
|
||||
else:
|
||||
# Modo desarrollo, no se aplican configuraciones de seguridad
|
||||
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
|
||||
SECURE_SSL_REDIRECT = False
|
||||
SECURE_PROXY_SSL_HEADER = None
|
||||
SECURE_HSTS_SECONDS = 0
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
|
||||
SECURE_HSTS_PRELOAD = False
|
||||
SESSION_COOKIE_SECURE = False
|
||||
CSRF_COOKIE_SECURE = False
|
||||
|
||||
# Application definition
|
||||
|
||||
@@ -46,6 +58,7 @@ INSTALLED_APPS = [
|
||||
'home',
|
||||
'django_ckeditor_5',
|
||||
'django_extensions',
|
||||
'wotlk_db',
|
||||
]
|
||||
|
||||
# Configuración para AC SOAP
|
||||
@@ -110,7 +123,7 @@ MIDDLEWARE = [
|
||||
|
||||
ROOT_URLCONF = 'novawow.urls'
|
||||
|
||||
URL_PRINCIPAL = 'http://novawow.com:8009'
|
||||
URL_PRINCIPAL = 'http://127.0.0.1:8000'
|
||||
|
||||
# Nombre del servidor
|
||||
NOMBRE_SERVIDOR = "Nova WoW"
|
||||
@@ -233,7 +246,12 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
STATIC_ROOT = 'static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
|
||||
|
||||
# Directorios adicionales donde buscar archivos estáticos
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
]
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||
|
||||
@@ -3,6 +3,7 @@ from django.conf.urls.i18n import i18n_patterns
|
||||
from django.urls import path, include
|
||||
from django.contrib import admin
|
||||
from .views import redirect_to_spanish # Importamos la vista de redirección
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path('', redirect_to_spanish), # Redirige la raíz a `/es/`
|
||||
@@ -12,6 +13,10 @@ urlpatterns = [
|
||||
urlpatterns += i18n_patterns(
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include('home.urls')), # Incluye las URLs de la app `home`
|
||||
path('wotlk/', include('wotlk_db.urls')),
|
||||
path('ckeditor5/', include('django_ckeditor_5.urls')),
|
||||
)
|
||||
|
||||
# Esto debe estar al final para que Django sirva archivos estáticos durante el desarrollo
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user