Django applications in Fedora
Ignacio Vazquez-Abrams
ivazqueznet at gmail.com
Fri Mar 6 15:51:39 UTC 2009
So, here's what I did:
1) Move settings.py to /etc/%{name}/00-default.conf
2) Process django-settings.py.in (attached), replacing [[confpath]]
with /etc/%{name}, and saving it as settings.py in the project root
3) Profit!
Well, it was a little more complex than that, but that's the gist of it.
Full details here:
http://ivazquez.fedorapeople.org/packages/transifex/transifex.spec
--
Ignacio Vazquez-Abrams <ivazqueznet at gmail.com>
PLEASE don't CC me; I'm already subscribed
-------------- next part --------------
import os.path
import glob
conffiles = glob.glob(os.path.join('[[confpath]]', '*.conf'))
conffiles.sort()
for f in confiles:
execfile(f)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090306/ba2211d9/attachment.sig>
More information about the fedora-devel-list
mailing list