新增“数据编辑”
This commit is contained in:
@@ -39,6 +39,8 @@ INSTALLED_APPS = [
|
||||
'django.contrib.staticfiles',
|
||||
'accounts',
|
||||
'main',
|
||||
'elastic',
|
||||
'django_elasticsearch_dsl',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -132,3 +134,17 @@ X_FRAME_OPTIONS = 'DENY'
|
||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
# Elasticsearch configuration
|
||||
ELASTICSEARCH_DSL = {
|
||||
'default': {
|
||||
'hosts': 'localhost:9200'
|
||||
},
|
||||
}
|
||||
|
||||
# Elasticsearch index settings
|
||||
ELASTICSEARCH_INDEX_NAMES = {
|
||||
'elastic.documents.AchievementDocument': 'wordsearch266666',
|
||||
'elastic.documents.UserDocument': 'users',
|
||||
'elastic.documents.NewsDocument': 'elastic_news',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user