devel Digest, Vol 51, Issue 5
Adam Bossy
adambossy at gmail.com
Sat Mar 13 13:21:59 EST 2010
Catching the error and continuing is probably safe. What is the output when
you run the tests? Most likely, you'll encounter the same error (at least
this was the case in the last build I tried), simply because django is being
loaded twice. Venus can run fine in spite of this.
Adam
On Fri, Mar 12, 2010 at 5:00 PM, <devel-request at lists.planetplanet.org>wrote:
> Send devel mailing list submissions to
> devel at lists.planetplanet.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.planetplanet.org/mailman/listinfo/devel
> or, via email, send a message with subject or body 'help' to
> devel-request at lists.planetplanet.org
>
> You can reach the person managing the list at
> devel-owner at lists.planetplanet.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devel digest..."
>
>
> Today's Topics:
>
> 1. Planet Venus & multiple Django templates (Justin Dugger)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 12 Mar 2010 00:23:40 -0600
> From: Justin Dugger <jldugger at ubuntu.com>
> To: devel at lists.planetplanet.org
> Subject: Planet Venus & multiple Django templates
> Message-ID:
> <816bc7511003112223m3eaafbfbsd155e3f7bcfa9b6 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> It seems I've run into a bug in planet venus, when using Django to
> output both HTML and RSS.
>
> With the following theme config.ini:
> [Planet]
> template_files:
> rss20.xml.dj
> index.html.dj
>
> I get:
> $ planet /etc/planet/planet.ini
> Traceback (most recent call last):
> File "/usr/bin/planet", line 138, in <module>
> splice.apply(doc.toxml('utf-8'))
> File "/usr/lib/pymodules/python2.6/planet/splice.py", line 118, in apply
> output_file = shell.run(template_file, doc)
> File "/usr/lib/pymodules/python2.6/planet/shell/__init__.py", line 66, in
> run
> module.run(template_resolved, doc, output_file, options)
> File "/usr/lib/pymodules/python2.6/planet/shell/dj.py", line 25, in run
> TEMPLATE_DIRS=(os.path.dirname(script),)
> File "/usr/lib/pymodules/python2.6/django/conf/__init__.py", line
> 49, in configure
> raise RuntimeError, 'Settings already configured.
>
> Each template works fine on its own, but when both are supplied it
> fails. As a workaround I think I can just invoke planet twice with
> seperate config files, but perhaps it's as easy as catching the
> runtime error and continuing?
>
> Justin Dugger
>
>
> ------------------------------
>
> --
> devel mailing list
> devel at lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel
>
>
> End of devel Digest, Vol 51, Issue 5
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archives/devel/attachments/20100312/69767ccb/attachment.html>
More information about the devel
mailing list