Hi Dushyant,
From the default settings.py :
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or
"C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'',
)
so you need to have
TEMPLATE_DIRS = (
'c:/myproject/template',
}
Hope that helps,
Mike
Dushyant Sharma wrote:
> i have found this during working with django on windws.
> if i create folder like template, backup (start characters t, b etc)
> it wont work because template folder settings in the SETTINGS.py will
> be
> TEMPLATE_DIRS = (
> 'c:\myproject\template',
> }
>
> it would not work because \t is tab character and it would render a
> tab in the path resulting in template not found exception.
> similarly other executable characters like \b for bell etc. would
> result in template not found exception.
>
> a solution for it can be escaping the executable character so instead
> of using \t using \\t would work
> TEMPLATE_DIRS = (
> 'c:\myproject\\template',
> }
>
> it's not a problem at all in linux.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---