robots added
modified: mysite/settings.py idk a dockploy modified: mysite/settings.py
This commit is contained in:
+22
-2
@@ -28,11 +28,20 @@ SECRET_KEY = os.getenv('DJANGO_KEY')
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
# Allow hosts from env, otherwise fall back to common local/dev hosts.
|
||||
ALLOWED_HOSTS = [
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
'0.0.0.0',
|
||||
'192.168.1.180',
|
||||
'acidarchon.com',
|
||||
'www.acidarcon.com',
|
||||
]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'rest_framework',
|
||||
'django.contrib.admin',
|
||||
@@ -75,6 +84,13 @@ TEMPLATES = [
|
||||
WSGI_APPLICATION = 'mysite.wsgi.application'
|
||||
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_RENDERER_CLASSES': [
|
||||
'rest_framework.renderers.JSONRenderer',
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
|
||||
|
||||
@@ -130,5 +146,9 @@ STATIC_ROOT = BASE_DIR / 'staticfiles'
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
|
||||
# deplpoy security
|
||||
|
||||
SESSION_COOKIE_SECURE = True
|
||||
|
||||
Reference in New Issue
Block a user