Re: Cab issue

2007-10-15 Thread [EMAIL PROTECTED]

Thanks. Got it working.

/mac

On Oct 14, 10:51 pm, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>
> > Exception Value:   Template u'base.html' cannot be extended, because it
> > doesn't exist
>
> It's a "convention" in django that your main template is named
> "base.html". It should be place in the root directory of your template
> directory.
>
> Let's imagine :
> /templates/
> /templates/base.html
> /templates/cab/
> /templates/yourapp/
> ...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Cab issue

2007-10-14 Thread Nicolas Steinmetz

[EMAIL PROTECTED] a écrit :
> Exception Value:  Template u'base.html' cannot be extended, because it
> doesn't exist


It's a "convention" in django that your main template is named 
"base.html". It should be place in the root directory of your template 
directory.

Let's imagine :
/templates/
/templates/base.html
/templates/cab/
/templates/yourapp/
...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Cab issue

2007-10-14 Thread Jeremy Dunck

On 10/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This obviously means that i have misunderstood somthing in the
> Templates section of the readme. Could someone provide some example
> templates or requirements and locations for the templates needed?
>

>From the ReadMe:

"The Subversion checkout will get you a set of example templates
matching those currently in use on djangosnippets.org, but they assume
the existence of base project-wide templates used by that site; you'll
need to either create templates with the same names to extend, or edit
the included templates to suit your site's layout."

Did you create a base.html template somewhere it can be found by a
template loader?

(If you're not sure what a template loader is, check these out:
http://www.djangoproject.com/documentation/settings/#template-loaders
http://www.djangoproject.com/documentation/templates_python/#loading-templates
)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Cab issue

2007-10-14 Thread [EMAIL PROTECTED]

I have problems getting the Cab (http://code.google.com/p/cab/)
application up and running. I have followed the instructions in the
readme, but it fails with:

Request Method: GET
Request URL:http://localhost:8000/snippets/
Exception Type: TemplateSyntaxError
Exception Value:Template u'base.html' cannot be extended, because it
doesn't exist
Exception Location: C:\Python24\Lib\site-packages\django\template
\loader_tags.py in get_parent, line 58
Python Executable:  C:\Python24\python.exe
Python Version: 2.4.1

This obviously means that i have misunderstood somthing in the
Templates section of the readme. Could someone provide some example
templates or requirements and locations for the templates needed?

Martin


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---