Re: Have to submit a form twice (302) because of POST?

2011-04-07 Thread PieterB
Solved, a small error in my forms.py due to copy-paste :) On Apr 7, 11:00 am, PieterB wrote: > Hi, > > It's a while since I've used django and I have a little problem with a > new form. > The user has to do the same thing twice, which is a bit awkward... > > First

Have to submit a form twice (302) because of POST?

2011-04-07 Thread PieterB
Hi, It's a while since I've used django and I have a little problem with a new form. The user has to do the same thing twice, which is a bit awkward... First I go to the page with a normal href. [07/Apr/2011 11:00:29] "GET /request/ HTTP/1.1" 200 2055 After that, I've a page where the user has

Re: CSRF verification failures (admin)

2010-08-19 Thread PieterB
On Aug 19, 2:09 am, Russell Keith-Magee wrote: >  * Your TEMPLATE_DIRS setting is pointing to a directory with pre-1.2 > templates >  * Your Django install is running pre-1.2 code, or using stale pyc > files (which might mean you're loading templates from the wrong app > directory) >  * You have

Re: CSRF verification failures (admin)

2010-08-18 Thread PieterB
the admin but I have not tried it much > but I haven't changed any admin templates. > > It does seem to be something happening on the testing server but not on my > mac in dev > > Hmmm.. > > > > On Tue, Aug 17, 2010 at 11:20 PM, PieterB wrote: > > No I di

Re: CSRF verification failures (admin)

2010-08-17 Thread PieterB
dmin template customization? If you copied a > template from django before 1.2, then upgraded, your admin template > might be missing the csrf_token template tag. > > Alex > > On Aug 17, 7:55 am, PieterB wrote: > > > For an internal application, I constantly receiveCSRFverification

CSRF verification failures (admin)

2010-08-17 Thread PieterB
token for Django's admin interface? -- PieterB -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googl

Simple FormWizard wizard howto/example

2010-08-09 Thread PieterB
Hi, I'm still pretty new to django and searching some simple FormWizard examples What I want to do: First step: ModelChoiceField is populated with queryset Second step: A ChoiceField needs to be populated with object.get(model__field__exact=resultfromstep1)' In the last step I want to show al

Custom method to query external db

2010-07-26 Thread PieterB
In one of my models, 3 values refer to unique ID's in an external db I want to query for a sum for each ID. What's the best way to query this external MySQL db? Example == Model: - class Test(models.Model): name = models.CharField(max_length=10) id1 = models.PositiveIntegerFiel

Re: Since recently: django_session error

2010-07-20 Thread PieterB
Yes, I tried a lot of things :-) On Jul 20, 9:52 am, commonzenpython wrote: > i know this might sound kinda dumb, but have you tried syncing the > database ? just in case -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Since recently: django_session error

2010-07-20 Thread PieterB
When I try to access the admin interface, I receive the following error DatabaseError at /admin/ no such table: django_session (File "/usr/lib/python2.6/site-packages/django/db/backends/sqlite3/ base.py", line 200, in execute return Database.Cursor.execute(self, query, params) DatabaseError:

Re: Django for system administration apps

2010-07-02 Thread PieterB
On Jul 2, 3:57 pm, Dennis Kaarsemaker wrote: > On vr, 2010-07-02 at 06:42 -0700, PieterB wrote: > puppet using django as well. Without going into detail, how have you made the coupling between the two > -- > Dennis K. > > They've gone to plaid! -- You received this

Django for system administration apps

2010-07-02 Thread PieterB
How frequently is Django used to write system administration applications? I want to write django frontend's for some linux tools and scripts we use in the futures. Is django a good solution for this or should I use other techniques/ frameworks (zope, pylons...)? I also want to write an app queryi