[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: karaage




Hi,

On Fri, 16.07.2010 at 10:03:24 +1000, Brian May <brian@microcomaustralia.com.au> wrote:
> python path, and then karaage can import then using "import
> karaage.conf.settings" for example. Use of dist-utils and cdbs makes
> the debian/rules file very simple.
> 
> However, from the point of view of the package, it would be better if
> we could put the config files under /etc/karaage.

in roundup, I inherited the following solution, which I find almost
practical (could be better, but works ok):

...
execfile("/etc/roundup/cgiconf.py")
...


The file contains some Python code to set variables and such.

I'd guess that this translates to your Django app in the following way:

settings.py becomes eg.

execfile("/etc/karaage/settings.py")


-- 
Kind regards,
--Toni++


Reply to: