On 2006-12-11, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> I've got a rough version of schema evolution working now.
>
> The basic implementation is what the SoC project was trying to do.
[...]
> I honestly think it's a *bad* solution to the problem. I've been
> looking at sqlalchemy and the 'migr
On 2006-12-17, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> Test coverage is ~44 test cases. There are currently 2 known problems
> in the code from a 'correctness' standpoint, and there is a ton of
> refactoring that needs to be done before it should be considered for
> merging into the trunk.
I se
On 2006-12-15, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
> Either way, the ultimate goal would be to convince Adrian that the
> branch is stable, get him to take a look at it, and merge the branch
> into the trunk. Adrian is pretty busy, so I'm guessing he would be
> looking for some communi
On 2006-12-17, Victor Ng <[EMAIL PROTECTED]> wrote:
>
> FYI - the schema evolution code submitted from the SoC project doesn't
> work, so keeping it up to date is a moot point. There have been
> several posts from people trying to use it where the SoC version of
> the schema evolution code just h
FYI - the schema evolution code submitted from the SoC project doesn't
work, so keeping it up to date is a moot point. There have been
several posts from people trying to use it where the SoC version of
the schema evolution code just halts.
The implementation in my patch is basically a complete
Rob and Kamil
Thanks for the encouragement. The docs are pretty good and the book is
shaping up pretty good too. Looks like I am on my way now.
Thomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
One correction:
One 'child' class (ie. with a OneToOneField) does always keep the
reference to the base class in it's pk column.
A couple of additions:
- the OneToOneField is obviously partially working, as even when the
reference is dnot there, the standard 'id' field name is correctly
replace
I have a models.py with several model classes referencing a 'base'
model class using OneToOne fields. The CREATE statement displayed by
manage.py sqlall is weirdly inconsistent -- sometimes the id columns
of the 'child' model classes contain a REFERENCES clause (ie. to the
'base' class), sometimes
Dave: Ah yes *slap in the forehead*. I had forgotten that you could add
additional fields using extra() and sort by them. Thanks for your
solution.
Don: Excellent point. I hadn't considered the behavior of other
aggregate functions and things could get quite messy handling the many,
different beha
On 12/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ideally, this should be a something which is fetched in the view so I
> can just do {{ next_object.get_absolute_url }} in the template (and
> obviously for previous too)
It feels like what you want is a custom manager function; you could
2006/12/14, T. Size <[EMAIL PROTECTED]>:
>
>
> I guess the next thing for me to do is to spend alot of
> time with the documentation and built a couple of simple apps/tutorials
> to flush out my understanding of how Django will work.
>
>
a lot of time... not really, django was my first contact wi
quickly:
{{ current_object.id|add:"1" }} but u havent access to methods of next
object if it doesn't exist, but you can hardcode a link to object.
2006/12/16, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>
> Hey Everyone,
>
> Wondering if anyone can help me out here. Is it possible to get the
> next
I have models like this:
class domain:
...
default_uid = integerfield
class user:
domain = foreignkey(domain)
I'd really like to do something in the user table like:
uid = integerfield(default=domain.default_uid)
but I can't figure out the semantics to do it... help?
--~--~
On 12/15/06, Milan Andric <[EMAIL PROTECTED]> wrote:
> I would like to loop through the fields in my model and print the names
> (verbose_name) and value of the fields. I've been hacking at it for
> sometime but can't figure it out. I had some help from Magus on IRC
> but still can't find soluti
Hey Everyone,
Wondering if anyone can help me out here. Is it possible to get the
next item in the database (not by date, but by ID). Obviously, I can't
just do this by saying current id +1 as the next item could have been
deleted.
Ideally, this should be a something which is fetched in the view
On 12/15/06, Milan Andric <[EMAIL PROTECTED]> wrote:
> But this does not allow me to specify whether or not comments require
> registration/login. The only other way to do it is by defining each
> view in a urls.py and wrapping each view with @login_required or
> similar. This breaks the encapsu
On 12/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> def __str__(self):
> return str(self.id) + " [" + str(self.purchaser) + "] " +
> str(self.amount) + " (" + str(self.currentAmount) + ")"
I'm going to do some poking to see if I can replicate your actual
problem; in the meanti
If you want only registered people to use comments use Comments
instead of FreeComments.
G
On 12/15/06, Milan Andric <[EMAIL PROTECTED]> wrote:
>
> In my urls.py, following the wiki docs on FreeComment, I'm using
> (r'^comments/', include('django.contrib.comments.urls.comments')),
>
> But th
OK I'm using django 0.95, python 2.4.4 and MySql 5.0.20a-nt on Win
2000. I have the following model code:
from django.db import models
class Purchaser(models.Model):
name = models.CharField(maxlength=200)
memberid = models.IntegerField()
email = models.CharField(maxlength=200)
de
I'd like to represent foreign key relationships inside the Admin
interface when there are multiple nested one-to-many relationships.
Here's a simple example model to demonstrate, using the
edit_inline=models.TABULAR parameter:
__
class Root(models.Model):
name = models.CharField(maxl
I found this exact problem when I use gemini
(http://www.countersoft.com/) and enter django, but only when I request
in gemini a page with their rich text editor...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
Austin here is an object from the model of one of my applications. The
self referential many-to-many relationship is optional and works find
in the admin interface. Note that you may or may not need the
symmetrical part.
class Customer(models.Model):
"""
A Customer is anyone we have so
As I've mentioned in my blog in the past, I'm porting my nascent
flashcard testing website, Quisition, over to use Django.
Because a lot of data is specific to a user, my system would be a lot
more scalable if I had a separate sqlite database for each user, just
for the user-specific inform
Howdy Matt!
Here is a small, complete working sample. When you initially load the
page it just displays the choices and prompts you to select a value and
click submit. When you submit it, it redisplays the form and then
displays what choice you selected.
urls.py:
from django.conf.urls.defaults
Thanks Adrian, I had a look -- but nothing of substance is there. Is
this branch still active or has been abandoned?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
Is it still giving the same error after adding the name? Or is it a
different error now?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@goog
2006/12/15, DavidAtEcodata <[EMAIL PROTECTED]>:
>
>
> This seems to be a known problem but no-one has offered a solution as
> far as I can find out. I've just set up Django on my Windows PC,
> everything is working fine from the Python command line but I can't log
> in to the admin page - I get an
> I guess the next thing for me to do is to spend alot of
> time with the documentation and built a couple of simple apps/tutorials
> to flush out my understanding of how Django will work.
>
Hi Thomas,
And don't forget to look at the http://www.djangobook.com/
Rob
--~--~-~--~~
Try to delete your cookies.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EM
Hi Dirk,
I think it's the other way around, try this
class Content(models.Model):
title = models.CharField('Title', maxlength=255, core=True)
body = models.TextField('Body text')
class Admin:
fields = (
(None, {'fields': ('title','body',)}),
)
list_disp
I had it before, once.
Restart everything!
2006/12/16, Jeremy Dunck <[EMAIL PROTECTED]>:
>
>
> On 12/15/06, DavidAtEcodata <[EMAIL PROTECTED]> wrote:
> >
> > This seems to be a known problem but no-one has offered a solution as
>
> What URL are you requesting?
>
> > so I'm convinced this is purely
31 matches
Mail list logo