Thanks Tom for this info I have adjusted the models .py as such..
from django.db import models
class ModelManagerReadOnly(model.Manager):
def update(self, *args, **kwargs):
pass
class ModelReadOnly(models.Model):
objects = ModelManagerReadOnly() # The ReadOnly manager.
On Mon, Oct 29, 2012 at 8:44 AM, Gregg Branquinho wrote:
> from django.db import models
>
>
> class ModelManagerReadOnly(model.Manager):
> def update(self, *args, **kwargs):
> pass
>
>
> class ModelReadOnly(models.Model):
> objects = ModelManagerReadOnly() # The ReadOnly manager.
from django.db import models
class ModelManagerReadOnly(model.Manager):
def update(self, *args, **kwargs):
pass
class ModelReadOnly(models.Model):
objects = ModelManagerReadOnly() # The ReadOnly manager.
def save(self, *args, **kwargs):
pass
#
Hi guys thanks for the help so Far, from what I understand this is what I
have to do for models..
from django.db import models
class ModelReadOnly(models.Model):
def save(self, *args, **kwargs):
pass
#raise NotImplemented
class Meta:
managed = False
c
On Thu, Oct 25, 2012 at 12:43 PM, Gregg Branquinho wrote:
> Hi Russel,
>
> First off thank you for the suggestion, I am going to give it a whirl and
> see how it works out.. I have a couple of concerns about the pricing
> database it the
> * it is on mssql and the data is spread accross 3 databas
your models in"external DB" method to do
nothing
-Original Message-
From: Gregg Branquinho
Sender: django-users@googlegroups.com
Date: Wed, 24 Oct 2012 21:43:01
To:
Reply-To: django-users@googlegroups.com
Subject: Re: Connecting to external databases from Views.py
Hi Russel,
Fir
Hi Russel,
First off thank you for the suggestion, I am going to give it a whirl and
see how it works out.. I have a couple of concerns about the pricing
database it the
* it is on mssql and the data is spread accross 3 database on the same
server so the query would have to be cross database..
Hi Gregg,
Is there any reason you can't treat this as a mutliple-database
configuration?
https://docs.djangoproject.com/en/dev/topics/db/multi-db/
Django allows you to specify more than one database, and then direct
queries at specific databases. So, you have your "main" django database for
your
8 matches
Mail list logo