Browse Source

appVersion
传值

chenjunkai 6 years ago
parent
commit
6cf704fe37
3 changed files with 6 additions and 3 deletions
  1. 2 1
      Ansjer/formal_settings.py
  2. 2 1
      Ansjer/local_settings.py
  3. 2 1
      Ansjer/test_settings.py

+ 2 - 1
Ansjer/formal_settings.py

@@ -55,7 +55,8 @@ APPEND_SLASH = False
 TEMPLATES = [
 TEMPLATES = [
     {
     {
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
-        'DIRS': [BASE_DIR + '/static/templates', ],
+        # 'DIRS': [BASE_DIR + '/static/templates', ],
+        'DIRS': [BASE_DIR + '/templates', ],
         'APP_DIRS': True,
         'APP_DIRS': True,
         'OPTIONS': {
         'OPTIONS': {
             'context_processors': [
             'context_processors': [

+ 2 - 1
Ansjer/local_settings.py

@@ -56,7 +56,8 @@ APPEND_SLASH = False
 TEMPLATES = [
 TEMPLATES = [
     {
     {
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
-        'DIRS': [BASE_DIR + '/static/templates', ],
+        # 'DIRS': [BASE_DIR + '/static/templates', ],
+        'DIRS': [BASE_DIR + '/templates', ],
         'APP_DIRS': True,
         'APP_DIRS': True,
         'OPTIONS': {
         'OPTIONS': {
             'context_processors': [
             'context_processors': [

+ 2 - 1
Ansjer/test_settings.py

@@ -56,7 +56,8 @@ APPEND_SLASH = False
 TEMPLATES = [
 TEMPLATES = [
     {
     {
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
         'BACKEND': 'django.template.backends.django.DjangoTemplates',
-        'DIRS': [BASE_DIR + '/static/templates', ],
+        # 'DIRS': [BASE_DIR + '/static/templates', ],
+        'DIRS': [BASE_DIR + '/templates', ],
         'APP_DIRS': True,
         'APP_DIRS': True,
         'OPTIONS': {
         'OPTIONS': {
             'context_processors': [
             'context_processors': [