|-- activeapp
| |-- __init__.py
| |-- __init__.pyc
| |-- media
| | |-- css
| | | `-- style.css
| | |-- img
| | `-- js
| |-- models.py
| |-- models.pyc
| |-- tests.py
| `-- views.py
|-- activeblog.pidaproject
|-- __init__.py
|-- __init__.pyc
|-- manage.py
|-- settings.py
|-- settings.pyc
|-- templates
| |-- base.html
| `-- blogpost_list.html
|-- urls.py
`-- urls.pyc
6 directories, 17 files
i159@i159-desktop:~/djproj/activeblog$
def blank_path(*x):
return join(abspath(dirname(__file__)), *x)
TEMPLATE_DIRS = (
blank_path('templates')
(r'^$', list_detail.object_list, {'queryset': BlogPost.objects.all(),}),
Using loader django.template.loaders.filesystem.Loader:Откуда в пути берется activeapp?
/home/i159/djproj/activeblog/templates/activeapp/blogpost_list.html (File does not exist)
Изменяю urls на:
(r'^$', direct_to_template, {'template': 'blogpost_list.html', }),