Anyone managed to use django-mongodb-cache with Django >= 1.3.1?
http://pypi.python.org/pypi/django-mongodb-cache
It appears to have been abandoned since May/2010. Maybe there's a better
alternative?
--
You received this message because you are subscribed to the Google Groups
"Django users"
this is my code and weirdly it creates new entry instead of updating the
passed one in instance argument, don't know if that because of m2m
relationship in Entry model or my code is broken!
what could be the cause?
### my edit view
@login_required
def edit_entry_view(request, entry_id):
You might try reading the tutorial. It provides example of a form.
On Mar 10, 2012, at 6:16 PM, jbr3 wrote:
> Hi,
>
> I'm trying to build a quiz app. The quizzes will have varying numbers
> of questions and a radio button next to each of 4 potential answers
> (there will only be one correct
That just says that your Entry class inherits from the Model class,
which is found in the models module. I am a relative noob also, and
found a hard copy Django book was my best initial source.
On Mar 10, 10:09 am, Rico wrote:
> > Since you realize that the problem is in
Strange. The same issue occurs with the password_reset view as well.
On Sat, Mar 10, 2012 at 5:05 PM, Scott Macri wrote:
> That's exactly what I was thinking. So I changed
> 'django.contrib.auth.views.change_password' to
> 'django.contrib.auth.views.bullfrog' in the
Hi,
I'm trying to build a quiz app. The quizzes will have varying numbers
of questions and a radio button next to each of 4 potential answers
(there will only be one correct answer for each question). I want to
save the user's answers in the database and automatically grade the
quiz by comparing
All I can suggest is some pdb time.
First, from the manage.py shell, can you import your view's module, and can
you reference your view function (or class) off of the name of your import?
Run type on it, and otherwise inspect it. Call it from pdb.run() (you have
to put the expression that calls
That's exactly what I was thinking. So I changed
'django.contrib.auth.views.change_password' to
'django.contrib.auth.views.bullfrog' in the urlconf. It renders a
completely different error. Something to the effect of bullfrog not
existing.
On Sat, Mar 10, 2012 at 3:12 PM, Bill Freeman
On Sat, Mar 10, 2012 at 4:16 PM, Philip Kimmey wrote:
> Hi folks,
>
> I bumped Django from 1.4 alpha to 1.4rc1 and all of a sudden my unit
> test runs went from ~16mins to ~29mins. The 16 minutes was extremely
> stable before (many hundreds of runs in Jenkins) and the 29 mins is
I would expect ViewDoesNotExist to not be sensitive to the template. It
sounds like the urlconf is specifying a view function that does not exist
(at least in the way and in the place that it is specified).
On Sat, Mar 10, 2012 at 3:07 PM, Scott Macri wrote:
> Even
Even explicitly setting the template name causes a ViewDoesNotExist
error to occur.
url(r'^accounts/password/change/$',
'django.contrib.auth.views.password_change',{'template_name':'registration/password_change_form.html',}),
Anyone have any ideas? Thanks.
On Fri, Mar 9, 2012 at 1:32 PM, Scott
On Mar 6, 10:40 am, bruno desthuilliers
wrote:
> On Mar 6, 7:07 am, Aryeh Leib Taurog wrote:
>
> > Sometimes self.get_another_object() returns an object which doesn't
> > have attribute 'x' so my_title() raises an AttributeError exception.
> >
You can do exactly that by specifying a sender:
https://docs.djangoproject.com/en/1.3/topics/signals/#connecting-to-signals-sent-by-specific-senders
Also, note that the sender is available in the receiver because it's
always the first argument sent by the signal, so you can have a function
I want to listen to pre ( or post ) save signal from a special model
in my models but the problem is in listen function I can not mention a
specific model . it gets signal from all models but I want to just use
signal from a specific models
I would tnx for any idea
--
You received this message
Hi folks,
I bumped Django from 1.4 alpha to 1.4rc1 and all of a sudden my unit
test runs went from ~16mins to ~29mins. The 16 minutes was extremely
stable before (many hundreds of runs in Jenkins) and the 29 mins is
very consistent now (about 10 runs.)
Any ideas what might have changed between
Hey,
I don't have a good answer for your exact question. One alternative,
though, may be to use nginx, or another httpd, to handle the upload and
just have it pass the path along to Django. e.g.
http://www.grid.net.ru/nginx/upload.en.html
Good luck!
On Sat, Mar 10, 2012 at 11:18 AM, Fedel Bari
Hi!
I have some troubles uploading large files via ajax and would be very
happy if someone could help.
I use ajax to upload files to my django app via XHR - not Multipart
Forms.
When using this technique, django seems to not use the default
FileUpload Handlers, so I do not have something like
Hi!,
Any idea about how can I get a list of all available signals?
--
Marc
--
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
> Any idea what is the best way to accomplish this?
Sort the list in Python in your view. Its easier to do, easier to test
and easier to maintain.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
>
> Since you realize that the problem is in how you've registered the Entry
> class, don't you think it would be a good idea to show us how you're doing
> it in that admin.py?
> --
> DR.
>
I've managed to solve the problem - it wasn't in the admin.py - it was with
my models.py.
*class
More info.
I found that the problem is that my "MultipleChoiceField" and
"ChoiceField" fields are not behaving. As I added additional fields,
such as CharField, it became more clear what was happening.
My MultipleChoiceField is being rendered with the
CheckboxSelectMultiple() widget and the
Hello everyone!
Can anyoney help me with my problem? I've posted it on Stackoverflow.
Here it is:
http://stackoverflow.com/questions/9646085/django-admin-py-save-model-is-not-called-by-model-save-in-save-method-of-mo
Thanks!
--
You received this message because you are subscribed to the Google
On Saturday, 10 March 2012 07:31:16 UTC, Rico wrote:
>
> I'm trying to learn Django and have been following several online
> tutorials hoping to understand how to create my own projects.
>
> I'm having trouble interpreting the error messages that are given when I
> do something wrong.
I have a small cms. I have two models, one for Mainmenu items, and one
for page with content with a foreignkey to the main menu items:
class Mainmenu_items(models.Model):
title = models.CharField(max_length=60)
mainmenu_order = models.IntegerField(default='99')
class
can u paste the file's contents ?
On Sat, Mar 10, 2012 at 1:01 PM, Rico wrote:
> I'm trying to learn Django and have been following several online
> tutorials hoping to understand how to create my own projects.
>
> I'm having trouble interpreting the error messages that
I'm trying to learn Django and have been following several online tutorials
hoping to understand how to create my own projects.
I'm having trouble interpreting the error messages that are given when I do
something wrong. Unfortunately I don't seem to get much help when I try and
find a
26 matches
Mail list logo