and of course, a save() on the model would be necessary:
class ClientModel(models.Model):
"""
An abstract base class model that provides a link to client table
"""
client = Client()
def save(self):
client =
super(ClientModel, self).save()
class Meta:
Would it not be possible to create a base model and model manager that
specifies a client, and override the default django.db.models.Model
and django.db.models.Manager classes? Something like this:
class Client(models.Model):
client_name = models.CharField(max_length=64)
# etc...
class
I've decided to push forward with the project using Django with separate
client instances. It will keep my development overhead low and allow me to
better focus on the application.
I appreciate all the great feedback. This has definitely clarified a lot
for me.
-MG
On Sun, Oct 12, 2008 at
On Oct 10, 8:53 pm, mguthrie <[EMAIL PROTECTED]> wrote:
> Graham,
> Thanks for the detailed response. I have yet to get too much into
> the internals of Apache in regards to Python applications. My
> background is in PHP which is a whole different beast with it's own
> unique way of being
mguthrie wrote:
> The following link seems to support Graham's conclusion:
>
> http://www.technobabble.dk/2008/aug/25/django-mod-wsgi-perfect-match/
>
>
Since Graham was a major contributor to mod_python and is the author of
mod_wsgi it would be surprising if he'd given you anything other than
On Oct 11, 12:53 pm, mguthrie <[EMAIL PROTECTED]> wrote:
> Discussing all of this has made me re-think my approach and whether
> Django will be a good fit for this specific project. It may be better
> for me to simply use a different python framework and let the client
> separation be
The following link seems to support Graham's conclusion:
http://www.technobabble.dk/2008/aug/25/django-mod-wsgi-perfect-match/
-MG
On Oct 10, 6:53 pm, mguthrie <[EMAIL PROTECTED]> wrote:
> Graham,
> Thanks for the detailed response. I have yet to get too much into
> the internals of Apache
Graham,
Thanks for the detailed response. I have yet to get too much into
the internals of Apache in regards to Python applications. My
background is in PHP which is a whole different beast with it's own
unique way of being tweaked. I'll have to look into the mod_wsgi
setup you mentioned.
On Oct 11, 9:23 am, mguthrie <[EMAIL PROTECTED]> wrote:
> I had read in more than one place that a django instance can eat up to
> 10mb - 30mb of memory. I don't know whether that is fact or fiction
> and I'm also confused by the term instance. Is an instance defined as
> multiple different
I had read in more than one place that a django instance can eat up to
10mb - 30mb of memory. I don't know whether that is fact or fiction
and I'm also confused by the term instance. Is an instance defined as
multiple different Django projects or a single Django project used
multiple times? If
On Fri, Oct 10, 2008 at 12:34 PM, mguthrie <[EMAIL PROTECTED]> wrote:
>
> I've been looking into Django for building something that is more web
> application than it is website. I understand that Django has been
> developed in a sort of CMS mindset but to date I haven't found any
> reason why it
I've been looking into Django for building something that is more web
application than it is website. I understand that Django has been
developed in a sort of CMS mindset but to date I haven't found any
reason why it couldn't create non-content centric web apps as well.
My project requirements
12 matches
Mail list logo