added ipinfo.is api , fixed innertext on html

This commit is contained in:
acidburnmonkey
2025-08-07 01:20:09 -04:00
parent 45c4abc752
commit ad2bd9a426
6 changed files with 86 additions and 100 deletions
+2 -18
View File
@@ -26,9 +26,9 @@ load_dotenv()
SECRET_KEY = os.getenv('DJANGO_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ['localhost']
ALLOWED_HOSTS = ['*']
# Application definition
@@ -133,19 +133,3 @@ STATIC_ROOT = BASE_DIR / 'staticfiles'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# Security settings for production
SECURE_SSL_REDIRECT = False
USE_TLS = False
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': [
'rest_framework.renderers.JSONRenderer',
],
}