Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Nickolas Grigoriadis
What about 2 settings files, for the different instances? One for HTTP and one for HTTPS? You can partially override settings by doing something like this: from foo.settings.prod import * # Add local overrides here Regards, Nickolas On Monday, 6 August 2012 07:34:40 UTC+2, Mark Gemmill wrote:

Re: How to override an attribute?

2012-08-05 Thread Nickolas Grigoriadis
What I found useful sometimes, was to store the content_type_id of the object, so when I open the parent class, I can change the type to the right subclass. For example: from django.contrib.contenttypes.models import ContentType class Parent(models.Model): content_type = models.ForeignKey

Re: Django application template

2012-08-05 Thread Nickolas Grigoriadis
t possibly require simplification is the current dependancy on node.js and lesscss to compile twitter bootstrap. Thanks, Nickolas On Monday, August 6, 2012 1:33:57 AM UTC+2, Melvyn Sopacua wrote: > > On 5-8-2012 20:11, Nickolas Grigoriadis wrote: > > >- Make it easy to add app

Django application template

2012-08-05 Thread Nickolas Grigoriadis
I'm trying to build an easy to deploy Django project and app template. My attempt at it is hosted here: https://github.com/grigi/project_template It is incredibly difficult to let this not explode into a template that has so many dependencies that it becomes impossible to actually use :P My ai