Django applications in Fedora

David Malcolm dmalcolm at redhat.com
Thu Feb 26 00:13:52 UTC 2009


Has anyone packaged any Django-based web applications as RPMs for
Fedora?

I noticed that ReviewBoard was being looked at:
https://fedorahosted.org/fedora-infrastructure/ticket/1196

Are any others in Fedora yet?


I'm wondering what the best way of handling configuration (settings.py)
is.

Normally you would set apache config for say "mysite" [1] to:

    SetEnv DJANGO_SETTINGS_MODULE mysite.settings

to get settings from, say, mysite.settings which would
be /usr/lib/python2.5/site-packages/mysite/settings.py

But since this is a config file, should it be below /etc/ ?

Perhaps mysite.settings in an RPM should be a simple python module that
looks in /etc/mysite.conf and gets values from there, and that file
should be %config(noreplace)

Thoughts?
Dave

[1]
http://docs.djangoproject.com/en/dev/topics/settings/#on-the-server-mod-python





More information about the devel mailing list