problem with django_openid

2009-08-11 Thread Kenneth Gonsalves
hi was trying to install django_openid on latest svn head. I am getting this error - do not know whether it is mine or openid's trace back: Environment: Request Method: GET Request URL: http://ilugc.web/ Django Version: 1.2 pre-alpha SVN-11422 Python Version: 2.6.0 Installed Applications: ['dj

Re: Django aggregates and having

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 5:50 AM, lfrodrigues wrote: > > Hi, > > I'm having some problems with "having": > > I want to group by date and restrict to a given week, in my tests I > can do this: > select_data = {"d": """date_format(date, '%%U')"""} > ScoreHistory.objects.extra(select=select_data).valu

Re: dates with a different format in the db

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 08:58 -0700, Vokial wrote: > Hi! > In a db i have, already filled up with data, i have a varchar field > which contains dates formatted like "mmdd". Is there a way to make > Django recognise that field as a proper DateField even if the > formatting is different than the u

Re: How to get this auto-field id value

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 17:27 -0700, David wrote: > Any tips/suggestions are highly appreciated... One tip is to wait more than eight hours before posting "please help me" yet again. > > > > On Aug 11, 9:26 am, David wrote: > > Just a little more information. The autoField id is in the model >

Re: syncdb with ForeignKey to_field outputs statements in wrong order

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 12:00 -0700, physicsnick wrote: > Actually they don't need to be unique (and I don't want them to be > unique). MySQL does not require that foreign keys be unique; only that > they be indexed. > > I am actually using this for a temporal database. There are many > instances o

Re: problem with django_openid

2009-08-11 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 07:10 +0530, Kenneth Gonsalves wrote: > hi > was trying to install django_openid on latest svn head. I am getting this > error - do not know whether it is mine or openid's The main error I see here is a complete failure to use cut-and-paste view from the debug screen when p

newbie queryset question

2009-08-11 Thread joep
I have a model which contains a list of users and a list of groups that can access the model, e.g,, readers = models.ManyToManyField(User, blank=True, null=True,) reader_groups = models.ManyToManyField(Group, blank=True, null=True,) where User and Group are the standard django auth model

Re: problem with django_openid

2009-08-11 Thread Kenneth Gonsalves
On Wednesday 12 Aug 2009 7:36:57 am Malcolm Tredinnick wrote: > On Wed, 2009-08-12 at 07:10 +0530, Kenneth Gonsalves wrote: > > hi > > was trying to install django_openid on latest svn head. I am getting this > > error - do not know whether it is mine or openid's > > The main error I see here is a

Re: Location of Change User admin template

2009-08-11 Thread Karen Tracey
On Tue, Aug 11, 2009 at 4:14 PM, bfrederi wrote: > > I was browsing contrib/admin templates for the "Change User" template > that allows you to change the user's permissions and such. I can't > seem to find it though. Can anyone point me in the right direction? Admin doesn't have special templa

Re: imitating a spreadsheet (kind of) with formsets

2009-08-11 Thread Karen Tracey
On Tue, Aug 11, 2009 at 7:49 PM, Chris Curvey wrote: > > So, is there a way for me to get a form field out of a form from > within the templating language? I'd like to do something like this: > > {% for field_name in field_names %} > > {{ field_name }} > {% for form in formset %} > {{ form[f

Re: Location of Change User admin template

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 10:24 AM, Karen Tracey wrote: > On Tue, Aug 11, 2009 at 4:14 PM, bfrederi wrote: >> >> I was browsing contrib/admin templates for the "Change User" template >> that allows you to change the user's permissions and such. I can't >> seem to find it though. Can anyone point me

Re: Location of Change User admin template

2009-08-11 Thread Karen Tracey
On Tue, Aug 11, 2009 at 11:57 PM, Russell Keith-Magee < freakboy3...@gmail.com> wrote: > > On Wed, Aug 12, 2009 at 10:24 AM, Karen Tracey wrote: > > On Tue, Aug 11, 2009 at 4:14 PM, bfrederi > wrote: > >> > >> I was browsing contrib/admin templates for the "Change User" template > >> that allows

Re: django 0.96.4 does not has django.utils._os

2009-08-11 Thread dongua
after i download ] http://code.djangoproject.com/browser/django/branches/0.96-bugfixes/django/utils/_os.py and runserver: Development server is running at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Unhandled exception in thread started by Traceback (most recent call last): File "D

Re: django 0.96.4 does not has django.utils._os

2009-08-11 Thread dongua
1177 def runserver(addr, port, use_reloader=True, admin_media_dir=''): 1178

django-tagging not working in 1.1?

2009-08-11 Thread nbv4
I'm having trouble getting my tagged modles registered in 1.1 When I have "tagging.register(MyModel)" at the bottom, I get this error when I try to add a new instance of that model in the admin: "null value in column "object_id" violates not-null constraint" full traceback:

django-tinymce not appearing in admin

2009-08-11 Thread diogobaeder
Hi, I configured django-tinymce extension to work with a model field; It loads all the JavaScript correctly, right after the field, in a script tag, passing the right element ID, but the editor simply doesn't show, only the original textarea is present. Here is a piece of my project where TinyMCE

Re: Deploying django on apache - cant access database

2009-08-11 Thread consiglieri
Thanks Graham! The absolute path was the issue. Can't believe I couldnt find that anywhere. As for the Alias, well i was just testing to make sure that wasnt an issue.And its in the httpd.conf , for perl-cgi you need that so since i was having issues i decided to try and see if it was causing my

Re: django-tinymce not appearing in admin

2009-08-11 Thread Kenneth Gonsalves
On Wednesday 12 Aug 2009 11:08:55 am diogobaeder wrote: > I configured django-tinymce extension to work with a model field; It > loads all the JavaScript correctly, right after the field, in a script > tag, passing the right element ID, but the editor simply doesn't show, > only the original texta

Re: Django aggregates and having

2009-08-11 Thread lfrodrigues
Sorry I didn't explain my self properly. I want this query: SELECT (date_format(date, '%%U')) AS `d`, SUM (`profile_scorehistory`.`points`) AS `l` FROM `profile_scorehistory` GROUP BY date_format(date, '%%U') HAVING `d`= 2 How can I make it with ORM? The other one was the only similar query I

Re: unique_together with None

2009-08-11 Thread gentlestone
Thank you for the explanation. Seems to be the correct solution of the problem (NULL, v1) != (NULL, v1) is overwrite the save method and check for existence of (NULL, v1) before saving a new instance of (NULL, v1). What I don't understand, why are the well-known databases so stupid and why they ca

Re: More Than Two Models With inlineformset_factory

2009-08-11 Thread Matthias Kestenholz
On Wed, Aug 12, 2009 at 12:51 AM, Geraldo wrote: > > Excellent, Matthias...  That should work nicely.  It does appear, > however, that there is no way to have more than 2 forms in a single > formset.  If inlineformset_factory had an append method things might > be a bit cleaner. > I presume you m

<    1   2