On 07/21/2012 04:29 PM, psychowico wrote:
Hi all.
  I am quite new in Pyramid and still learning. Now I looking for best
way to manage static resources in project. I found nice package
"Fanstatic <http://www.fanstatic.org/en/latest/index.html>" and
"pyramid_fanstatic <http://pypi.python.org/pypi/pyramid_fanstatic/>"
plugin, but it looks that this not working with pyramid 1.3 and Python 3.2.
Main things that I want achieve is automatically replace develop
libraries version in develop mode by packed in production - /jquery.js/
and /jquery.min.js /for example.
I see some ways to manage this, but I looking for elegant way, I guess
this task is popular and some good way exists to do this.

If you've used a scaffold to set up your Pyramid application. You know where you do:

config.add_static_view(..)

to add a static view?

That's python of course. Conditionalize it with an "if". Add a different static directory based on a value passed in to "settings" in your main().

- C

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to