What I don't want to do is use an absolute path, because I'd like to be able to move my project files around without having to tinker with the code to keep it working.
Anand Chitipothu
unread,
Oct 22, 2012, 2:06:54 AM10/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to we...@googlegroups.com
but the current python file and 'templates' in different directory
在 2012年10月22日星期一UTC+8下午2时07分17秒,Anand写道:
Jason Macgowan
unread,
Oct 22, 2012, 8:02:23 PM10/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to we...@googlegroups.com
What Anand posted will work. Your templates/ directory has to be in
the same root directory as the python file; otherwise the development
server would not have worked. If I'm mistaken, post your directory
tree for the project so we can see what's going on