Re: unexpected keyword argument with generic view

2006-04-18 Thread Luke Skibinski Holt
seRedirect('/blogs/create/blog/?msg=noblog') kwargs['object_id'] = request.user.id return update_object(request, *args, **kwargs) The class, urlpattern and view respectively. Luke Skibinski Holt --~--~-~--~~~---~--~~ You rece

unexpected keyword argument with generic view

2006-04-18 Thread Luke Skibinski Holt
blogs.get_object(user__exact:1) - which doesn't work. Is this a bug? I'm not passing anything strange, and the only thing that actually seems to get the blog object directly is pk=x. Any help would be appreciated... Luke Skibinski Holt --~--~-~--~~~---~

Make archive_* generic views less archival

2006-03-31 Thread Luke Skibinski Holt
p because my event model suits this setup perfectly (completely selfish). I'll submit a patch if this is generally a good thing. Luke Skibinski Holt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: Confusion about templates directory location

2006-03-19 Thread Luke Skibinski Holt
mplates I've found it all works quite neatly (src contains all django code). Luke Skibinski Holt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

setting abstract tags

2006-03-07 Thread Luke Skibinski Holt
I've written a custom manipulator but am having difficulty in adding tags to the newly created object, getting all sorts of errors. It sounds pathetic, but how does one use the object.set_tags() method? Any help would be appreciated, Luke Skibinski

Re: Conditional Validation of Formfields

2006-03-06 Thread Luke Skibinski Holt
n the future, or is magic removal changing them absolutley? Luke Skibinski Holt --~--~-~--~~~---~--~~ 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@g

Conditional Validation of Formfields

2006-03-06 Thread Luke Skibinski Holt
e ? Luke Skibinski Holt --~--~-~--~~~---~--~~ 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

Re: weekend datetime objects

2006-02-23 Thread Luke Skibinski Holt
.date(2000, 8, 6) #=> 1095 days, 0:00:00 Taken directly from: http://pleac.sourceforge.net/pleac_python/datesandtimes.html Hope this helps someone. Luke Skibinski Holt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: weekend datetime objects

2006-02-23 Thread Luke Skibinski Holt
Excellent - thanks for those - it's easy to get convoluted code when you're thinking on an entirely different tack. Luke Skibinski Holt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

weekend datetime objects

2006-02-22 Thread Luke Skibinski Holt
ot;, line 1, in ? ValueError: day is out of range for month Thanks, Luke Skibinski Holt --~--~-~--~~~---~--~~ 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@google

regular error "duplicate key violates unique constraint"

2006-02-22 Thread Luke Skibinski Holt
l","description","starts","ends","place_id","admission","underages","posted","updated","disabled") VALUES ('1',NULL,False,'Past Morning Event','','','2006-02-

Re: Please help with django tutorial #2

2006-02-17 Thread Luke Skibinski Holt
A shortcut to the 'print sql, copy sql, paste sql into db' route is (for postgresql users anyway) piping it directly in: python manage.py sqlall | psql dbname means you won't miss data :) Luke Skibinski Holt --~--~-~--~~~---~--~~ You receiv

Re: is_member_of method for user objects

2006-02-11 Thread Luke Skibinski Holt
"groupname" in user.get_group_list %} But my template skillz are mediocre at best ;) Luke Skibinski Holt

Re: truncate html filter?

2006-02-09 Thread Luke Skibinski Holt
ning nothing at all with no error ... it also feels a little unwieldly, but I'm shopping about for another solution - Beautiful Soup looks promising. Luke Skibinski Holt

upload to user directory

2006-02-06 Thread Luke Skibinski Holt
I'm having trouble trying to set the upload_to path for a filefield that will contain the user's id or username - "images/%s" % User.username obviously doesn't work, but it's exactly what I'm trying to do... can I set the upload path dynamically somehow? Luke Skibinski Holt

Re: scale of auth system

2006-02-04 Thread Luke Skibinski Holt
pport created by the community - just search the postings if this is more to your preference. Hope this helps some. Luke Skibinski Holt

Re: SQL debugging

2006-02-03 Thread Luke Skibinski Holt
g these queries (it's averaging 10 queries a page(!)) how many of these are cache hits? Those queries that take 0.00 to execute - could these be cache hits (or just really fast)? ... is there a more definite way of differentiating them? Luke Skibinski Holt

SQL debugging

2006-02-02 Thread Luke Skibinski Holt
Is is possible to access the SQL queries made as a template variable during any given page call? I've written a particularly ugly hack in order to use generic views and I'd like to see if it was all worth it ... Luke Skibinski Holt

__range problem

2006-02-01 Thread Luke Skibinski Holt
def archive_by_month(*args, **kwargs): kwargs['extra_context'] = {'username':kwargs['username']} del kwargs['username'] return archive_month(*args, **kwargs) Any suggestions on this one? Luke Skibinski Holt

Re: error restoring project

2006-01-30 Thread Luke Skibinski Holt
A: ordering=['title'] ... Luke Skibinski Holt

error restoring project

2006-01-30 Thread Luke Skibinski Holt
elationships with the user. Other models within those apps that don't have any relationship to the user (but to other models) are not failing. The steps I took to restore my project were create database manage.py init manage.py createsuperuser manage.py install admin manage.py install I'm using the latest revision as of this posting. Any ideas on what is going wrong? Did I miss something or do something in the wrong order? Luke Skibinski Holt

Re: recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
excellent - exactly what I was looking for. Thanks heaps, Andreas. Luke Skibinski Holt

recovering from interpreter db errors

2006-01-23 Thread Luke Skibinski Holt
and import everything again. Any help? I have no experience with psycopg ... Luke Skibinski Holt

Re: glitches in admin interface

2006-01-21 Thread Luke Skibinski Holt
It seems my problem with the repeating fields is a known bug with one-to-one relationships (http://code.djangoproject.com/ticket/1245) Luke Skibinski Holt

Re: glitches in admin interface

2006-01-21 Thread Luke Skibinski Holt
cheers - the validation of blank text fields is fixed, however the repeating results are still there - I'll post that as a seperate issue though. Luke Skibinski Holt

glitches in admin interface

2006-01-20 Thread Luke Skibinski Holt
onstraint "$2" DETAIL: Key (content_type_id)=(28) is not present in table "content_types". INSERT INTO "django_admin_log" ("action_time","user_id","content_type_id","object_id","object_repr","action_flag","change_message") VALUES ('2006-01-20 23:15:54.806513',1,28,'1','Alice''s blog',1,'') But inserts fine ... this is all very dodgy. Luke Skibinski Holt

Re: Preserving data through db updates/changes

2006-01-19 Thread Luke Skibinski Holt
ecially required fields. I was just hoping for some django magic to do it all for me ;) Now what would be fun would be something to populate a database table with random words or gibberish... Luke Skibinski Holt

Re: broken link in templates_python

2006-01-19 Thread Luke Skibinski Holt
to defraud your good self, my posts are signed with my full name. Hope this didn't cause you too much confusion. ;) Luke Skibinski Holt

broken link in templates_python

2006-01-18 Thread Luke Skibinski Holt
The first link in this section (http://www.djangoproject.com/documentation/templates_python/#subclassing-context-djangocontext) is broken. It should be like this (with two dashes): http://www.djangoproject.com/documentation/settings/#template-context-processors Luke Skibinski Holt

Preserving data through db updates/changes

2006-01-18 Thread Luke Skibinski Holt
go is great for prototyping, and despite my best laid plans (and usecases), things change and grow as I discover new ways of doing them (as they rightfully should in a prototype). Are there any such plans in the works? Luke Skibinski Holt