Re: why are not templates automatically reloaded ?

2011-07-17 Thread 马叶
this is my production.ini


[app:exam]
use = egg:exam
reload_templates = true
debug_authorization = false
debug_notfound = false
debug_routematch = false
debug_templates = false
default_locale_name = en
sqlalchemy.url = sqlite:///%(here)s/exam.db

when i edit my templates ,
It does not work

2011/7/17 Michael Merickel mich...@merickel.org

 On Sat, Jul 16, 2011 at 5:55 AM, wbwylbt wbwy...@gmail.com wrote:

  I modified development.ini :
 'reload_templates'=true


 Just to nitpick it should be:
 [app:myapp]
 reload_templates = true

 If you're actually throwing quotes around reload_templates, I'm pretty sure
 it won't work.

 --

 Michael

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-discuss@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pylons-discuss?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



why are not templates automatically reloaded ?

2011-07-16 Thread wbwylbt
 I modified development.ini :
'reload_templates'=true

when I edited my templates fiels ,,

i can not  see changes to templates take effect immediately during
development

i need to  restart  the application

why  are not templates automatically reloaded ?

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: why are not templates automatically reloaded ?

2011-07-16 Thread Jonathan Ballet
On Sat, Jul 16, 2011 at 03:55:51AM -0700, wbwylbt wrote:
  I modified development.ini :
 'reload_templates'=true
 
 when I edited my templates fiels ,,
 
 i can not  see changes to templates take effect immediately during
 development
 
 i need to  restart  the application
 
 why  are not templates automatically reloaded ?

As far as I can see in the Pyramid repository, all the default
templates (aka. scaffolds now) do have the templat auto reloading
feature enabled, as you can see in
https://github.com/Pylons/pyramid/tree/1.0/pyramid/paster_templates

 Jon

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: why are not templates automatically reloaded ?

2011-07-16 Thread Michael Merickel
On Sat, Jul 16, 2011 at 5:55 AM, wbwylbt wbwy...@gmail.com wrote:

  I modified development.ini :
 'reload_templates'=true


Just to nitpick it should be:
[app:myapp]
reload_templates = true

If you're actually throwing quotes around reload_templates, I'm pretty sure
it won't work.

-- 

Michael

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.