Re: Django applications in Fedora

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

 



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@xxxxxxxxx>

PLEASE don't CC me; I'm already subscribed

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux