2017-08-23 5 views
0

は、私は、サーバーのUbuntu 16.04.3 x64のジャンゴTemplateDoesNotExist

私はメインのテンプレートを知らないで私のウェブサイトを展開しました。

templates

私は、彼らが同じ

Permissions

設定されているアクセス権限のファイルがローカルホスト何もかも上でこの

""" 
Django settings for INZ project. 

Generated by 'django-admin startproject' using Django 1.10.4. 

For more information on this file, see 
https://docs.djangoproject.com/en/1.10/topics/settings/ 

For the full list of settings and their values, see 
https://docs.djangoproject.com/en/1.10/ref/settings/ 
""" 

import os 

# Build paths inside the project like this: os.path.join(BASE_DIR, ...) 
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 


# Quick-start development settings - unsuitable for production 
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ 

# SECURITY WARNING: keep the secret key used in production secret! 
SECRET_KEY = '#wx61%!ioz(yba#e=t7jh-*&(!l#kri=^y%ik(x4m3j8oix+hq' 

# SECURITY WARNING: don't run with debug turned on in production! 
DEBUG = True 

ALLOWED_HOSTS = ['46.101.116.26'] 
EMAIL_HOST ='smtp.gmail.com' 
EMAIL_HOST_USER ='[email protected]' 
EMAIL_HOST_PASSWORD = '#####' 
EMAIL_PORT = 587 
EMAIL_USE_TLS = True 

# Application definition 

INSTALLED_APPS = [ 
    'django.contrib.admin', 
    'django.contrib.auth', 
    'django.contrib.contenttypes', 
    'django.contrib.sessions', 
    'django.contrib.messages', 
    'django.contrib.staticfiles', 
    'games' 
] 

MIDDLEWARE = [ 
    'django.middleware.security.SecurityMiddleware', 
    'django.contrib.sessions.middleware.SessionMiddleware', 
    'django.middleware.common.CommonMiddleware', 
    'django.middleware.csrf.CsrfViewMiddleware', 
    'django.contrib.auth.middleware.AuthenticationMiddleware', 
    'django.contrib.messages.middleware.MessageMiddleware', 
    'django.middleware.clickjacking.XFrameOptionsMiddleware', 
] 

ROOT_URLCONF = 'INZ.urls' 

TEMPLATES = [ 
    { 
     'BACKEND': 'django.template.backends.django.DjangoTemplates', 
     'DIRS': [os.path.join(BASE_DIR, 'templates')], 
     'APP_DIRS': True, 
     'OPTIONS': { 
      'context_processors': [ 
       'django.template.context_processors.debug', 
       'django.template.context_processors.request', 
       'django.contrib.auth.context_processors.auth', 
       'django.contrib.messages.context_processors.messages', 
      ], 
     }, 
    }, 
] 

WSGI_APPLICATION = 'INZ.wsgi.application' 


# Database 
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases 

のように見えるがチェック結構です。私はWindows 8.1を持っている可能性があります。私の問題の理由は勝つために異なるファイル構造があるからです。

+0

スタックオーバーフローに 'SECRET_KEY'を含めることはお勧めできません。それを変更する必要があります。 – Alasdair

答えて

0

Linuxとファイルシステムは大文字と小文字が区別されます。ファイル名をList.htmlからlist.htmlに変更して、コードに一致させます。

+0

クイックヘルプ – Gornl

関連する問題