Django 组合索引

 1 TEMPLATES = [
 2     {
 3         'BACKEND': 'django.template.backends.django.DjangoTemplates',
 4         'DIRS': [os.path.join(BASE_DIR,  'templates')],
 5         'APP_DIRS': True,
 6         'OPTIONS': {
 7             'context_processors': [
 8                 'django.template.context_processors.debug',
 9                 'django.template.context_processors.request',
10                 'django.contrib.auth.context_processors.auth',
11                 'django.contrib.messages.context_processors.messages',
12             ],
13             'libraries': {  # Adding this section should work around the issue.
14                 'staticfiles': 'django.templatetags.static',
15             },
16         },
17     },
18 ]
settings

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-01-18
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-11-23
  • 2021-08-27
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案