Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.37 KB | None | 0 0
  1. TemplateDoesNotExist at /
  2.  
  3. index.html
  4.  
  5. Request Method: GET
  6. Request URL: http://iecl.uni-potsdam.de/
  7. Django Version: 1.4.5
  8. Exception Type: TemplateDoesNotExist
  9. Exception Value:
  10.  
  11. index.html
  12.  
  13. Exception Location: /usr/lib/python2.7/dist-packages/django/template/loader.py in find_template, line 138
  14. Python Executable: /usr/bin/python
  15. Python Version: 2.7.3
  16. Python 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.  
  31. Server time: Mon, 7 Apr 2014 11:28:46 +0200
  32. Template-loader postmortem
  33.  
  34. Django 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.  
  42. Validating models...
  43.  
  44. 0 errors found
  45. Django version 1.4.5, using settings 'iecl_dev.settings'
  46. Development server is running at http://0.0.0.0:0/
  47. Quit the server with CONTROL-C.
  48.  
  49. import django.conf.global_settings as DEFAULT_SETTINGS
  50. import os
  51. DEBUG = True
  52. TEMPLATE_DEBUG = DEBUG
  53.  
  54. ADMINS = (
  55. )
  56.  
  57. SETTINGS_PATH = os.path.realpath(os.path.dirname(__file__))
  58.  
  59. MANAGERS = ADMINS
  60. DATABASES = { $
  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. }
  70. TIME_ZONE = 'Europe/Berlin'
  71.  
  72. LANGUAGE_CODE = 'en-us'
  73.  
  74. SITE_ID = 1
  75.  
  76. USE_I18N = True
  77.  
  78. MEDIA_ROOT = '/var/www/django_media/iecl_dev/media/'
  79. MEDIA_URL = ''
  80.  
  81. ADMIN_MEDIA_PREFIX = '/media/admin_media/'
  82.  
  83. SECRET_KEY = '<xxx>'
  84.  
  85. TEMPLATE_LOADERS = (
  86. 'django.template.loaders.filesystem.Loader',
  87. 'django.template.loaders.app_directories.Loader',
  88. )
  89.  
  90. MIDDLEWARE_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.  
  98. ROOT_URLCONF = 'iecl_dev.urls'
  99.  
  100. TEMPLATE_DIRS = (
  101. os.path.join(SETTINGS_PATH, 'templates'),
  102. )
  103. INSTALLED_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.  
  112. TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
  113. )
  114.  
  115. The contents of `/home/django/django/` are as follows:
  116.  
  117. /home/django/django/:
  118. iecl2
  119. iecl_dev
  120. templates
  121.  
  122. /home/django/django/iecl2:
  123. __init__.py
  124. __init__.pyc
  125. manage.py
  126. settings.py
  127. settings.pyc
  128. showStudents
  129. urls.py
  130. urls.pyc
  131.  
  132. /home/django/django/iecl2/showStudents:
  133. __init__.py
  134. __init__.pyc
  135. admin.py
  136. context_processors.py
  137. models.py
  138. models.pyc
  139. views.py
  140. views.pyc
  141.  
  142. /home/django/django/iecl_dev:
  143. __init__.py
  144. __init__.pyc
  145. manage.py
  146. piwik
  147. settings.py
  148. settings.pyc
  149. showStudents
  150. urls.py
  151. urls.pyc
  152.  
  153. /home/django/django/iecl_dev/piwik:
  154. __init__.py
  155. app_settings.py
  156. context_processors.py
  157. models.py
  158. tests.py
  159. urls.py
  160. views.py
  161.  
  162. /home/django/django/iecl_dev/showStudents:
  163. __init__.py
  164. __init__.pyc
  165. admin.py
  166. context_processors.py
  167. models.py
  168. models.pyc
  169. views.py
  170.  
  171. /home/django/django/templates:
  172. iecl
  173. iecl_dev
  174. /home/django/django/templates/iecl:
  175. 500.html
  176. admin
  177. changePW.html
  178. editStudent.html
  179. feedback.html
  180. feedback_thanks.html
  181. index.html
  182. location.html
  183. login.html
  184. page.html
  185. password_changed.html
  186. showStudent.html
  187. studentsOverview.html
  188.  
  189. /home/django/django/templates/iecl/admin:
  190. 404.html
  191. 500.html
  192. actions.html
  193. app_index.html
  194. auth
  195. base.html
  196. base_site.html
  197. change_form.html
  198. change_list.html
  199. change_list_results.html
  200. date_hierarchy.html
  201. delete_confirmation.html
  202. delete_selected_confirmation.html
  203. edit_inline
  204. filter.html
  205. includes
  206. index.html
  207. invalid_setup.html
  208. login.html
  209. object_history.html
  210. pagination.html
  211. prepopulated_fields_js.html
  212. search_form.html
  213. showStudents
  214. submit_line.html
  215.  
  216. /home/django/django/templates/iecl/admin/auth:
  217. user
  218.  
  219. /home/django/django/templates/iecl/admin/auth/user:
  220. add_form.html
  221. change_password.html
  222.  
  223. /home/django/django/templates/iecl/admin/edit_inline:
  224. stacked.html
  225. tabular.html
  226.  
  227. /home/django/django/templates/iecl/admin/includes:
  228. fieldset.html
  229.  
  230. /home/django/django/templates/iecl/admin/showStudents:
  231. pagecontent
  232. userpagecontent
  233.  
  234. /home/django/django/templates/iecl/admin/showStudents/pagecontent:
  235. change_form.html
  236.  
  237. /home/django/django/templates/iecl/admin/showStudents/userpagecontent:
  238. change_form.html
  239.  
  240. /home/django/django/templates/iecl_dev:
  241. 500.html
  242. __init__.py
  243. admin
  244. changePW.html
  245. editStudent.html
  246. feedback.html
  247. feedback_thanks.html
  248. index.html
  249. location.html
  250. login.html
  251. page.html
  252. password_changed.html
  253. piwik
  254. showStudent.html
  255. studentsOverview.html
  256.  
  257. /home/django/django/templates/iecl_dev/admin:
  258. 404.html
  259. 500.html
  260. actions.html
  261. app_index.html
  262. auth
  263. base.html
  264. base_site.html
  265. change_form.html
  266. change_list.html
  267. change_list_results.html
  268. date_hierarchy.html
  269. delete_confirmation.html
  270. delete_selected_confirmation.html
  271. edit_inline
  272. filter.html
  273. includes
  274. index.html
  275. invalid_setup.html
  276. login.html
  277. object_history.html
  278. pagination.html
  279. prepopulated_fields_js.html
  280. search_form.html
  281. showStudents
  282. submit_line.html
  283.  
  284. /home/django/django/templates/iecl_dev/admin/auth:
  285. user
  286.  
  287. /home/django/django/templates/iecl_dev/admin/auth/user:
  288. add_form.html
  289. change_password.html
  290.  
  291. /home/django/django/templates/iecl_dev/admin/edit_inline:
  292. stacked.html
  293. tabular.html
  294.  
  295. /home/django/django/templates/iecl_dev/admin/includes:
  296. fieldset.html
  297.  
  298. /home/django/django/templates/iecl_dev/admin/showStudents:
  299. pagecontent
  300. userpagecontent
  301.  
  302. /home/django/django/templates/iecl_dev/admin/showStudents/pagecontent:
  303. change_form.html
  304.  
  305. /home/django/django/templates/iecl_dev/admin/showStudents/userpagecontent:
  306. change_form.html
  307.  
  308. /home/django/django/templates/iecl_dev/piwik:
  309. tracking.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.  
  336. SETTINGS_PATH = os.path.dirname(__file__)
  337. PROJECT PATH = os.path.join(SETTINGS_PATH, os.pardir)
  338. PROJECT_PATH = os.path.abspath(PROJECT_PATH)
  339. TEMPLATES_PATH = os.path.join(PROJECT_PATH, "templates")
  340.  
  341. TEMPLATE_DIRS = (
  342. TEMPLATES_PATH,
  343. )
  344.  
  345. TEMPLATES = [
  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. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement