· 7 years ago · Jul 16, 2018, 10:06 PM
1TemplateDoesNotExist at /
2
3index.html
4
5Request Method: GET
6Request URL: http://iecl.uni-potsdam.de/
7Django Version: 1.4.5
8Exception Type: TemplateDoesNotExist
9Exception Value:
10
11index.html
12
13Exception Location: /usr/lib/python2.7/dist-packages/django/template/loader.py in find_template, line 138
14Python Executable: /usr/bin/python
15Python Version: 2.7.3
16Python Path:
17
18['/home/python/iecl/lib/python2.7/site-packages/distribute-0.6.28-py2.7.egg',
19 '/home/python/iecl/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg',
20 '/usr/lib/python2.7',
21 '/usr/lib/python2.7/plat-linux2',
22 '/usr/lib/python2.7/lib-tk',
23 '/usr/lib/python2.7/lib-old',
24 '/usr/lib/python2.7/lib-dynload',
25 '/usr/local/lib/python2.7/dist-packages',
26 '/usr/lib/python2.7/dist-packages',
27 '/usr/lib/pymodules/python2.7',
28 '/home/python/iecl/lib/python2.7/site-packages',
29 '/home/django/django']
30
31Server time: Mon, 7 Apr 2014 11:28:46 +0200
32Template-loader postmortem
33
34Django tried loading these templates, in this order:
35
36 Using loader django.template.loaders.filesystem.Loader:
37 /home/django/django/templates/iecl_dev/index.html (File does not exist)
38 Using loader django.template.loaders.app_directories.Loader:
39 /usr/lib/python2.7/dist-packages/django/contrib/auth/templates/index.html (File does not exist)
40 /usr/lib/python2.7/dist-packages/django/contrib/admin/templates/index.html (File does not exist)
41
42Validating models...
43
440 errors found
45Django version 1.4.5, using settings 'iecl_dev.settings'
46Development server is running at http://0.0.0.0:0/
47Quit the server with CONTROL-C.
48
49import django.conf.global_settings as DEFAULT_SETTINGS
50import os
51DEBUG = True
52TEMPLATE_DEBUG = DEBUG
53
54ADMINS = (
55)
56
57SETTINGS_PATH = os.path.realpath(os.path.dirname(__file__))
58
59MANAGERS = ADMINS
60DATABASES = { $
61 'default': { $
62 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
63 'NAME': 'iecl', # Or path to database file if using sqlite3.
64 'USER': 'iecl', # Not used with sqlite3.
65 'PASSWORD': '<xxx>', # Not used with sqlite3.
66 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. $
67 'PORT': '', # Set to empty string for default. Not used with sqlite3.
68 }
69}
70TIME_ZONE = 'Europe/Berlin'
71
72LANGUAGE_CODE = 'en-us'
73
74SITE_ID = 1
75
76USE_I18N = True
77
78MEDIA_ROOT = '/var/www/django_media/iecl_dev/media/'
79MEDIA_URL = ''
80
81ADMIN_MEDIA_PREFIX = '/media/admin_media/'
82
83SECRET_KEY = '<xxx>'
84
85TEMPLATE_LOADERS = (
86 'django.template.loaders.filesystem.Loader',
87 'django.template.loaders.app_directories.Loader',
88)
89
90MIDDLEWARE_CLASSES = (
91 'django.middleware.csrf.CsrfViewMiddleware',
92 'django.middleware.common.CommonMiddleware',
93 'django.contrib.sessions.middleware.SessionMiddleware',
94 'django.contrib.auth.middleware.AuthenticationMiddleware',
95 'django.contrib.messages.middleware.MessageMiddleware',
96)
97
98ROOT_URLCONF = 'iecl_dev.urls'
99
100TEMPLATE_DIRS = (
101 os.path.join(SETTINGS_PATH, 'templates'),
102)
103INSTALLED_APPS = (
104 'django.contrib.auth',
105 'django.contrib.contenttypes',
106 'django.contrib.sessions',
107 'django.contrib.sites',
108 'iecl_dev.showStudents',
109 'django.contrib.admin',
110)
111
112TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
113)
114
115The contents of `/home/django/django/` are as follows:
116
117/home/django/django/:
118iecl2
119iecl_dev
120templates
121
122/home/django/django/iecl2:
123__init__.py
124__init__.pyc
125manage.py
126settings.py
127settings.pyc
128showStudents
129urls.py
130urls.pyc
131
132/home/django/django/iecl2/showStudents:
133__init__.py
134__init__.pyc
135admin.py
136context_processors.py
137models.py
138models.pyc
139views.py
140views.pyc
141
142/home/django/django/iecl_dev:
143__init__.py
144__init__.pyc
145manage.py
146piwik
147settings.py
148settings.pyc
149showStudents
150urls.py
151urls.pyc
152
153/home/django/django/iecl_dev/piwik:
154__init__.py
155app_settings.py
156context_processors.py
157models.py
158tests.py
159urls.py
160views.py
161
162/home/django/django/iecl_dev/showStudents:
163__init__.py
164__init__.pyc
165admin.py
166context_processors.py
167models.py
168models.pyc
169views.py
170
171/home/django/django/templates:
172iecl
173iecl_dev
174/home/django/django/templates/iecl:
175500.html
176admin
177changePW.html
178editStudent.html
179feedback.html
180feedback_thanks.html
181index.html
182location.html
183login.html
184page.html
185password_changed.html
186showStudent.html
187studentsOverview.html
188
189/home/django/django/templates/iecl/admin:
190404.html
191500.html
192actions.html
193app_index.html
194auth
195base.html
196base_site.html
197change_form.html
198change_list.html
199change_list_results.html
200date_hierarchy.html
201delete_confirmation.html
202delete_selected_confirmation.html
203edit_inline
204filter.html
205includes
206index.html
207invalid_setup.html
208login.html
209object_history.html
210pagination.html
211prepopulated_fields_js.html
212search_form.html
213showStudents
214submit_line.html
215
216/home/django/django/templates/iecl/admin/auth:
217user
218
219/home/django/django/templates/iecl/admin/auth/user:
220add_form.html
221change_password.html
222
223/home/django/django/templates/iecl/admin/edit_inline:
224stacked.html
225tabular.html
226
227/home/django/django/templates/iecl/admin/includes:
228fieldset.html
229
230/home/django/django/templates/iecl/admin/showStudents:
231pagecontent
232userpagecontent
233
234/home/django/django/templates/iecl/admin/showStudents/pagecontent:
235change_form.html
236
237/home/django/django/templates/iecl/admin/showStudents/userpagecontent:
238change_form.html
239
240/home/django/django/templates/iecl_dev:
241500.html
242__init__.py
243admin
244changePW.html
245editStudent.html
246feedback.html
247feedback_thanks.html
248index.html
249location.html
250login.html
251page.html
252password_changed.html
253piwik
254showStudent.html
255studentsOverview.html
256
257/home/django/django/templates/iecl_dev/admin:
258404.html
259500.html
260actions.html
261app_index.html
262auth
263base.html
264base_site.html
265change_form.html
266change_list.html
267change_list_results.html
268date_hierarchy.html
269delete_confirmation.html
270delete_selected_confirmation.html
271edit_inline
272filter.html
273includes
274index.html
275invalid_setup.html
276login.html
277object_history.html
278pagination.html
279prepopulated_fields_js.html
280search_form.html
281showStudents
282submit_line.html
283
284/home/django/django/templates/iecl_dev/admin/auth:
285user
286
287/home/django/django/templates/iecl_dev/admin/auth/user:
288add_form.html
289change_password.html
290
291/home/django/django/templates/iecl_dev/admin/edit_inline:
292stacked.html
293tabular.html
294
295/home/django/django/templates/iecl_dev/admin/includes:
296fieldset.html
297
298/home/django/django/templates/iecl_dev/admin/showStudents:
299pagecontent
300userpagecontent
301
302/home/django/django/templates/iecl_dev/admin/showStudents/pagecontent:
303change_form.html
304
305/home/django/django/templates/iecl_dev/admin/showStudents/userpagecontent:
306change_form.html
307
308/home/django/django/templates/iecl_dev/piwik:
309tracking.html
310
311├── manage.py
312├── yourproject
313│  ├── __init__.py
314│  ├── settings.py
315│  ├── templates
316│  ├── urls.py
317│  ├── wsgi.py
318│  └── wsgi.pyc
319├── yourfirstapp
320│  ├── __init__.py
321│  ├── admin.py
322│  ├── models.py
323│  ├── templates
324│  ├── tests.py
325│  ├── urls.py
326│  └── views.py
327├── yoursecondapp
328 ├── __init__.py
329 ├── admin.py
330 ├── models.py
331 ├── templates
332 ├── tests.py
333 ├── urls.py
334 └── views.py
335
336SETTINGS_PATH = os.path.dirname(__file__)
337PROJECT PATH = os.path.join(SETTINGS_PATH, os.pardir)
338PROJECT_PATH = os.path.abspath(PROJECT_PATH)
339TEMPLATES_PATH = os.path.join(PROJECT_PATH, "templates")
340
341TEMPLATE_DIRS = (
342 TEMPLATES_PATH,
343)
344
345TEMPLATES = [
346 {
347 'BACKEND': 'django.template.backends.django.DjangoTemplates',
348 'DIRS': [],
349 'APP_DIRS': True,
350 'OPTIONS': {
351 'context_processors': [
352 'django.template.context_processors.debug',
353 'django.template.context_processors.request',
354 'django.contrib.auth.context_processors.auth',
355 'django.contrib.messages.context_processors.messages',
356 ],
357 },
358 },
359]