Wednesday, March 30, 2011

Re: staticfile app question

On Wednesday, March 30, 2011 04:58:42 pm Sells, Fred wrote:
> This may be using a canon to swat a fly, but...
> I had a project some time ago where I needed a very repetitive
> java/swing UI. I ended up creating python classes that had a __repr__
> method that generated the java source code. Then I was able to have
> very concise python files that instantiated the classes I needed and
> used that to generate java.
> Perhaps a similar idea would work with .css possible even using the
> django template system.

pretty much what I was thinking of. but not using __repr__ or a string just
the templates, but the idea is the same. I don't find css to repedative, not
as much as gui programming, no where near as close, so dynamically creating
sheets wouldn't be really neccessary. Just fill in existing templates.

You could probably do this with flatpages too.


What on earth would a man do with himself if something did not stand in his
-- H.G. Wells

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment