Hello
What I want to achieve is the equivalent of this:
select * from server, backup where backup.serverid=server.id and
servername={backupserver}
To do that the django way is proving challenging, maybe because the
database was an existing one (not created the django way), or maybe
because I'm
On 6 Nov, 10:39, achab61 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm in trouble trying to get running the Mysqldb adapter on Windows.
>
> My configuration is MySQL vers. 5.0.67, PythonWin vers. 2.5.2
I use much the same as you, but got mysql-python from Sourceforge - no
problems:
http://sourcefo
On 6 Nov, 11:56, Daniel Roseman <[EMAIL PROTECTED]> wrote:
> On Nov 6, 10:25 am, gv <[EMAIL PROTECTED]> wrote:
>
> Well, you don't appear to have any foreign keys linking Backup and
> Server. You'd need something like this in your Backup declaration:
>
>
On 6 Nov, 12:30, achab61 <[EMAIL PROTECTED]> wrote:
> I've got the same package but I'm getting the same error.
> Is there anything do once you run the exe ? Did you make any special
> configuration in your Windows (I'm on XP SP2) i.e. PATH etc...
I cannot remember doing anything extra. My under
On 6 Nov, 12:33, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> If you have `serverid` field in database so you can add reference with
> custom column name [1]. For example:
>
> server = models.ForeignKey(Server, db-column="serverid")
>
> [1]:http://docs.djangoproject.com/en/dev/ref/models/fields/#d
Hello
I'm constucting a table in the Django template language, and have this
problem. When there is no value (from the dictionary generated by the
view), I would like to fill in -1 like this:
{{ item.ActiveSessions|default:"-1" }}
However, only the cells that get values are filled in, if no va
Hello
I'm making a small app that holds data of servers in our organisation
(the database existed previously, and I've created the models.py using
the inspectdb as described in:
http://docs.djangoproject.com/en/dev/howto/legacy-databases/ )
The admin site works OK, but each server is displayed
Oops - I just saw the relevant bit in the tutorial, so it is done like
this:
class Server(models.Model):
def __unicode__(self):
return self.question
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
8 matches
Mail list logo