POST still occurs after HttpResponseRedirect

2009-01-11 Thread stryderjzw
Hi, Here's part of my code: class NewAssignmentFormPreview(FormPreview): def done(self, request, form): assignment = form.save(commit=False) assignment.save() ... return HttpResponseRedirect(assignment.get_absolute_url()) I do an HttpResponseRedirect to go to the

User Profiles and Fixtures

2009-02-01 Thread stryderjzw
Hi! I did some searching, but I felt it's going nowhere, so here's the question. I'm using Django 1.1 r9756, the one where tests are using transactions. I have a user profile automatically created with signals, as below: def create_player(sender, instance=None, **kwargs): if instance

Re: User Profiles and Fixtures

2009-02-01 Thread stryderjzw
to alter dumpdata manually everytime. On Feb 1, 12:22 am, stryderjzw <stryder...@gmail.com> wrote: > Hi! > > I did some searching, but I felt it's going nowhere, so here's the > question. > > I'm using Django 1.1 r9756, the one where tests are using > transactions

Re: Disabling middleware for tests

2009-02-16 Thread stryderjzw
This doesn't seem to be working for me. I created my own test_settings.py in the project root directory. I ran python manage.py test --settings=test_settings It runs as usual and CSRF still fails when I run tests. Anyone know what I might be doing wrong here? How can I tell that python

Re: Disabling middleware for tests

2009-02-16 Thread stryderjzw
> > I thought it was something to do with self.client.login failing (because I > would get 403) > > I couldn't figure this out: is there a way to tell that we are running as a > test ? > >      felix :    crucial-systems.com > > On Mon, Feb 16, 2009 at 9:33 PM, str

Re: Disabling middleware for tests

2009-02-16 Thread stryderjzw
in deeper into the Django code. On Feb 16, 6:42 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-02-16 at 18:36 -0800, stryderjzw wrote: > > [...] > > > However, I'm running into the problem that I have no clue if manage.py > > ever r

Re: problem to save..

2007-07-26 Thread stryderjzw
http://www.djangoproject.com/documentation/authentication/ This should be a good start! Also check out chapter 12 of django book at www.djangobook.com. Justin On Jul 26, 12:08 am, "Marco A." <[EMAIL PROTECTED]> wrote: > I am a newbie ! > > I doesnt have esperience whit django and web

edit_inline fields does not save

2007-07-26 Thread stryderjzw
Hi, I'm having a similar problem to this thread below: http://groups.google.com/group/django-users/browse_thread/thread/608554256525c37e/6c944a02a622ba53?lnk=gst=edit_inline+does+not+save=1#6c944a02a622ba53 For my problem, I'm creating a GroupProfile, similar to the well known UserProfile. I

[OT] Python package names

2008-11-02 Thread stryderjzw
HI, This is semi-off topic, but it is a python question. I'm trying to use some of the generic django applications, like django- tagging. Taking django-tagging, for example, it requires me to symlink the source folder to "site-packages/tagging". However, I want to keep site-packages structured

Re: Python package names

2008-11-02 Thread stryderjzw
Hmm, I tried django_tagging, but it still gives me ImportErrors. I think it's because, for django-tagging project, they internally look for tagging as the package name. On Nov 2, 11:44 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 3, 4:58 am, stryderjzw <[EMAIL PROTE

Re: Python package names

2008-11-07 Thread stryderjzw
Ah, I've been busy past couple of days.. but there's some interesting ideas here. Thanks! Justin On Nov 3, 6:35 am, "Valts Mazurs" <[EMAIL PROTECTED]> wrote: > Sure, I also keep django apps outside site-packages directory but it is not > really the same level of convenience :) > > Valts. > >

Re: superuser has no rights with newforms admin

2008-07-19 Thread stryderjzw
Strange, I'm getting the message "You don't have permission to edit anything." on the admin homepage. I've done admin.autodiscover() on the project urls page, I've created admin.py files for my models and registered the classes with admin.site.register(). Any clues? Cheers! Justin On Jul 19,

Templates with multiple repeating blocks

2008-01-02 Thread stryderjzw
Hi, I have the same situation as a thread (http://groups.google.com/group/ django-users/browse_thread/thread/2dbb2b7f01951a2/efbeb1f74be6e454? lnk=gst=multiple+template+block) started in 2005. The idea is that in my template, I want to use the same template block for both the and tags. I

Re: Templates with multiple repeating blocks

2008-01-16 Thread stryderjzw
Thanks, everyone. I like this idea. That really helped. I hope this gets considered. Cheers, Justin On Jan 3, 1:16 pm, AmanKow <[EMAIL PROTECTED]> wrote: > I posted a diff on dpaste: http://dpaste.com/hold/29777/ > > This is for a change to django/template/loader_tags.py > > This change