Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
;>>> TEMPLATE_DIRS=('C:/Python26/Lib/site-packages/django/contrib/admin/templates/admin') >>>>> >>>>> I used this as an example to point to some templates that are known to >>>>> work, >>>>> rather than point to my own temp

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
st(name) django.template.base.TemplateDoesNotExist: admin/base.html (I also tried without manually setting TEMPLATE_DIRS, but just ran django.conf.settings.configure(), still to no avail.) Anyone, any ideas? I'm completely new to Django, but I've not been working in Python lately either, so it could

Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
te('admin/base.html') >>> >>> Traceback (most recent call last): >>>  File "", line 1, in >>>  File "django/template/loader.py", line 164, in get_template >>>    template, origin = find_template(template_name) >>>  File "django/te

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
django/template/loader.py", line 145, in find_template raise TemplateDoesNotExist(name) django.template.base.TemplateDoesNotExist: admin/base.html (I also tried without manually setting TEMPLATE_DIRS, but just ran django.conf.settings.configure(), still to no avail.) Anyone, any ideas? I'm co

Re: Django Standalone Template

2011-10-31 Thread Bill Freeman
m completely new to Django, but I've not been working > in Python lately either, so it could just be a Python mistake on my part. > > - Stefan > > Original Message > Subject: Django Standalone Template > Date: Fri, 28 Oct 2011 19:54:20 -0700 (PDT) > From:

Re: Django Standalone Template

2011-10-31 Thread Stefan Lisowski
. - Stefan ---- Original Message ---- Subject: Django Standalone Template Date: Fri, 28 Oct 2011 19:54:20 -0700 (PDT) From: Stefan Lisowski <s.lisow...@isti.com> Reply-To: django-users@googlegroups.com To: Django users <django-users@googlegroups.com> Hi Django folks - I'm new to

Re: Django Standalone Template

2011-10-30 Thread SmileyChris
Take a read through this section of the docs: https://docs.djangoproject.com/en/1.3/ref/templates/api/#loading-templates Specifically, those templates are found via the app_directories.Loader. So you'd run loader.get_template('admin/base.html') to get that template. The reason that it's in a

Django Standalone Template

2011-10-28 Thread Stefan Lisowski
Hi Django folks - I'm new to Django, and I just want to use the template system now, independent of the rest of Django. But I can't get it to see a template. Even the system templates as was suggested when I started Googling for my error. >>> import django.template >>>