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
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
--~--~-~--~~~---~
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
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
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
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
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
.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
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
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
l","description","starts","ends","place_id","admission","underages","posted","updated","disabled")
VALUES ('1',NULL,False,'Past Morning Event','','','2006-02-
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
"groupname" in user.get_group_list %}
But my template skillz are mediocre at best ;)
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
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
pport created by the community - just
search the postings if this is more to your preference.
Hope this helps some.
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
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
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
A:
ordering=['title']
...
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
excellent - exactly what I was looking for. Thanks heaps, Andreas.
Luke Skibinski Holt
and import everything again. Any help?
I have no experience with psycopg ...
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
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
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
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
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
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
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
30 matches
Mail list logo