Django applications in Fedora

Ignacio Vazquez-Abrams ivazqueznet at gmail.com
Fri Mar 6 17:40:48 UTC 2009


On Fri, 2009-03-06 at 12:04 -0500, David Malcolm wrote:
> I note your build seems to do some app-specific extraction of vars from
> the tarball's settings.py and then overwrite that with the
> post-postprocessed settings.py.in

Correct. Transifex has a subpackage, so I needed to perform a little
surgery in order to separate out the settings relevant to that
subpackage.

> > 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
> 
> I notice you also set up SECRETKEY in %post

I figured that it was as good a time as any to do it.

> Are you packaging any apache config files?  I didn't see anything
> dropped in /etc/httpd/conf.d   I guess you're separating the deployment
> of the app code + data from the wiring of it up to a particular httpd
> server.

I left implementation of the HTTP connection to the sysadmin. That way
they can use httpd, lighttpd, flup, or even (ugh) standalone if they
wanted.

> A related issue is that Django doesn't seem to have a good way to
> relocate all URLs in an app below a path.  You can set django.root, but
> unfortunately, this breaks all of the internal links.
> http://www.djangobook.com/en/beta/chapter21/ notes "The (sic) all your
> URL patterns will need to start with "/mysite/". For this reason we
> usually recommend deploying Django at the root of your domain or virtual
> host."   TurboGears has a url() function for dealing with this, but I
> haven't found an equivalent in Django yet.

ISTR hearing something about this, but I'm going to need to do some more
research.

-- 
Ignacio Vazquez-Abrams <ivazqueznet at gmail.com>

PLEASE don't CC me; I'm already subscribed
-------------- 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/591e28ab/attachment.sig>


More information about the fedora-devel-list mailing list