Django redirect to a view function after selecting an item from dropdown box

2019-09-11 Thread Rudolph Louis Cabeltis
Hello, I am using Forms by Django. And that form has a select box with two options. After a user selected an option. I would like the user to do the function in the django view. Will I be able to do this without using AJAX or Javascript? Thank you. -- You received this message because you are

Re: Buttons

2015-07-23 Thread Jake Rudolph
'failure reason, if any'}. > Don't forget to update your urls.py to reflect the new view. > > On the Javascript side, in the registered function, you write code that > both posts to your Django view in an Ajax call and, if successful, makes > the display change. > > On Wed, Jul 2

Buttons

2015-07-22 Thread Jake Rudolph
I am trying to make a button on the index page that changes the boolean field of my object, and then displays that object in a different place on the page. I am not sure what to put as the action for this button, and where to put and call the function that will actually change the value in the

Re: Interfacing Django Project with Python Script

2015-07-17 Thread Jake Rudolph
. On Friday, July 17, 2015 at 5:12:51 AM UTC-7, larry@gmail.com wrote: > > On Thu, Jul 16, 2015 at 7:44 PM, Jake Rudolph <jidru...@gmail.com > > wrote: > > If I have a separate Python script that I want to interact with my > Django > > project, how d

Interfacing Django Project with Python Script

2015-07-16 Thread Jake Rudolph
If I have a separate Python script that I want to interact with my Django project, how do I set them up to communicate? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Images in MySQL

2008-07-14 Thread Rudolph
Ticket 5361 provides a way to accomplish this by writing a custom backend: http://code.djangoproject.com/ticket/5361 The ticket is on the "maybe" list for 1.0! Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Order_by foreignkey that can be null (after QS-RF branch merged)

2008-05-23 Thread Rudolph
Thanks. You are right, my actual code ordered by a specific field but I kept the example simple because it shows the same problem. Thanks for the link to the ticket because I could not find a ticket for it myself. Rudolph --~--~-~--~~~---~--~~ You received

Re: Order_by foreignkey that can be null (after QS-RF branch merged)

2008-05-23 Thread Rudolph
A small clearification to the previous post: by disappear I mean they are not in the queryset. They stay in the database ofcourse. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Order_by foreignkey that can be null (after QS-RF branch merged)

2008-05-23 Thread Rudolph
a can see these items in the list view (because it only orders on the first field?), but when I click them for editing I get a 404. Also in my view, using the default ordering all the items that do not have "bar" disappear. Is this expected behaviour or a bu

Re: How to get request.user in templatetag?

2006-11-29 Thread Rudolph
Sorry, that was a stupid question, context['request'].session contains the session. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How to get request.user in templatetag?

2006-11-29 Thread Rudolph
But how do you access the session dictionary from a templatetag? --~--~-~--~~~---~--~~ 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

Re: date filter behaviour

2006-09-23 Thread Rudolph
Thanks! Rudolph --~--~-~--~~~---~--~~ 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 filter behaviour

2006-09-23 Thread Rudolph
time values if I wanted to use them). Anyone any idea? Rudolph --~--~-~--~~~---~--~~ 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

Re: Django on Debian Sarge?

2006-07-03 Thread Rudolph
I've got Django running on Sarge and de default mod_python package. No problem at all. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Removing a file from object

2006-07-02 Thread Rudolph
Hi, I've got a model with a FileField and blank=True. When I create an object by using the admin interface and fill in a file, everything is ok. When I edit the object again, there's no way to remove the file (without uploading a new file). Is this something yet to be done? Rudolph

Re: When to use django.db.models.LazyDate() and when datetime.now()?

2006-06-10 Thread Rudolph
Thanks Luke, very nicely explained! Rudolph --~--~-~--~~~---~--~~ 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

DateField and DateTimefield do not really validate

2006-06-06 Thread Rudolph
a missing feature one expects to find in the validation thing. Rudolph --~--~-~--~~~---~--~~ 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

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Rudolph
Just like James Bennett, I would use templatetags for suchs "blocks" with little bits of information. I even generate a menu by using a templatetag. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Django Google Summer of Code & Merquery

2006-05-26 Thread Rudolph
use to calculate the search results (I did this with Python sets, but you could do it anyway you like). If you like it, you can use it ofcourse (BSD license). Cheers, Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Authentication by email+pass

2006-05-25 Thread Rudolph
random value (substring of SHA of e-mailadress for example). Rudolph --~--~-~--~~~---~--~~ 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

Re: For what is useful order_with_respect_to?

2006-05-16 Thread Rudolph
the bigger _order values don't get updated. Or maybe someone has plans to add this kind of behaviour? A bit more documentation on this subject would be nice. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: Admin Functionality Enhancement

2006-05-08 Thread Rudolph
Hi, +1 for a per-app page which by default lists all models of the app. Then the bread crumbs should also have another level: home > app-name > model-name which makes sense since you could have models with the same name but in different apps. R

Re: hack for file-browser

2006-05-03 Thread Rudolph
also use popen. Rudolph --~--~-~--~~~---~--~~ 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: hack for file-browser

2006-05-02 Thread Rudolph
Really nice work. I would love to use it! Rudolph --~--~-~--~~~---~--~~ 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 unsubs

Re: MR: columns not unique error while syncdb against django.contrib.comments

2006-04-26 Thread Rudolph
I think your problem is not with the comments app. Have look at the problem + solution over here: http://groups.google.com/group/django-users/browse_thread/thread/7d062b3cac57e4b4 Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-26 Thread Rudolph
This revision also causes another minor bug. When running syncdb it tells you Adding permission '' for every permission. This is caused by the __repr__ and __str__ changes. Shall I file a bug report? --~--~-~--~~~---~--~~ You received this message because you are

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
The above fixes the issue, but to completely remove all uppercased names also do: BEGIN; UPDATE django_content_type set name='group' where model='group'; UPDATE django_content_type set name='user' where model='user'; COMMIT; --~--~-~--~~~---~--~~ You received

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
Fix this in PostgreSQL like this: BEGIN; UPDATE auth_permission set name='Can add group' where codename='add_group'; UPDATE auth_permission set name='Can change group' where codename='change_group'; UPDATE auth_permission set name='Can delete group' where codename='delete_group'; UPDATE

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
This should be on the Magic Removal wiki page, including SQL commands to update the records. I'll create the PostgreSQL commands within a few hours and post them here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: magic-removal call for testing

2006-04-20 Thread Rudolph
That's certainly good news! I use M-R for a few weeks on a development server and it feels really solid. I think it's a good decision not to wait for subclassing, validation-aware models and ajax. Thanks *very* much for all the hard work! Rudolph

Re: Vim users - syntax highlighting for Django templates

2006-04-18 Thread Rudolph
Also have a look at: http://code.djangoproject.com/wiki/UsingVimWithDjango Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Django Summer of Code

2006-04-16 Thread Rudolph
Thanks! Maybe you can contact Guido van Rossum about this, he mentioned Google in his blog and works for Google... Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Some help on edit_inline outside admin in M-R

2006-04-15 Thread Rudolph
in the FormWrapper in forms/__init__.py I read this post: http://groups.google.com/group/django-developers/browse_thread/thread/6851a96df13d0b61 and http://code.djangoproject.com/ticket/535 But I'm still not abled to get this to work... Rudolph --~--~-~--~~~---~--~~ You received

Django Summer of Code

2006-04-15 Thread Rudolph
Hi, I just read Google started a new Summer of Code. It would be nice for Django to get some extra work done this summer (release 1.0?) and get some attention. It's just a suggestion... Rudolph --~--~-~--~~~---~--~~ You received this message because you

Re: Strange exception when creating a user.

2006-04-11 Thread Rudolph
The 's' in Users was a typo. The problem seems to have solved itself... I tried the exact same procedure again on an updated version of M-R (while typing the message a new revision became available). Thanks! Rudolph --~--~-~--~~~---~--~~ You received

Strange exception when creating a user.

2006-04-11 Thread Rudolph
ures when creating a user in Python shell, without the create_user method. When I add a user by using the admin interface, there's no problem at all. Does anyone else experience this? Solutions? Rudolph --~--~-~--~~~---~--~~ You received this message because you are sub

Re: How to make the module name translatable in M-R

2006-04-07 Thread Rudolph
All seems okay (the app name appears in the .po file), but it doesn't get translated (the model names get translated!). I guess one should make a small change to contrib/admin/templatetags/adminapplist.py to make it happen... Or does someone get this working with current M-R branch? Rudolph

Re: Locale from URL Middleware

2006-04-07 Thread Rudolph
Optional middleware seems okay, or perhaps we can just set up a wiki-page on the Django site about this so everybody can implement this their own way. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: A model which is recursively referring to itself in Magic Removal

2006-04-05 Thread Rudolph
Is that an inconsistancy to be removed (ie a bug)? Rudolph --~--~-~--~~~---~--~~ 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 u

Re: Locale from URL Middleware

2006-04-05 Thread Rudolph
Dutch www.example.com/nl-nl/ -> site in Dutch etc. I would highly appreciate such middleware. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: 0.91 vs SVN vs m-r

2006-04-03 Thread Rudolph
For me, edit_inline in M-R just works, but I didn't try any complex edit_inline models yet. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: A model which is recursively referring to itself in Magic Removal

2006-04-02 Thread Rudolph
I finally found my problem: I tried to get the children of an object by myobject.child_set.all() (because I set related_name to 'child'), but it should be myobject.item_set.all() (in your case myobject.person_set.all()). Thanks for your help! Rudolph

Re: Get objects in _manipulator_validate_.....() methods

2006-04-02 Thread Rudolph
Thanks! It solved my problem. Rudolph --~--~-~--~~~---~--~~ 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 g

A model which is recursively referring to itself in Magic Removal

2006-04-02 Thread Rudolph
an exception: 'Item' object has no attribute 'child_set'. Rudolph --~--~-~--~~~---~--~~ 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 u

Replacement for _manipulator_validate_customer_id(self, field_data, all_data) in Magic Removal

2006-04-02 Thread Rudolph
in the save() method doesn't achive this, and the validate() method: http://groups.google.com/group/django-developers/browse_frm/thread/171a18122fd44c5a is not called when saving in the admin interface). Rudolph --~--~-~--~~~---~--~~ You received this message

How to exclude in limit_choices_to (magic removal)

2006-04-02 Thread Rudolph
Hi, I'm migrating my project to Magic Removal. I couldn't find how to do the equivalent of the limit_choices_to = {'name__ne' : 'John'} in Magic Removal. Rudolph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Get objects in _manipulator_validate_.....() methods

2006-03-28 Thread Rudolph
I'm writing a _manipulator_validate_.() method. These methods become methods for the manipulator of a model and will be validated before save() is called. Any exception of validators.ValidationError will very nicely be displayed in the admin interface (if your raise such an exception in

Re: Recursive self referring foreignkeys

2006-02-10 Thread Rudolph
Thanks! Thats just what I needed! --~--~-~--~~~---~--~~ 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: Error when relating a model to another model more than once

2006-02-02 Thread Rudolph
Thanks! That must be ticket 1305: http://code.djangoproject.com/ticket/1305 I'll just work around it for a while (until 'before too long') because the rest of Django fits all my needs! Rudolph

Re: Error when relating a model to another model more than once

2006-02-01 Thread Rudolph
, Rudolph

Re: Error when relating a model to another model more than once

2006-01-31 Thread Rudolph
meone know a different solution to my problem? I really need to get this working for a project. Thanks in advance! Rudolph

Re: Error when relating a model to another model more than once

2006-01-30 Thread Rudolph
To be complete, this is the Error page I get: TypeError at /admin/reg/languages/2/ 'bool' object is not callable Request Method: GET Request URL:http://localhost:8000/admin/reg/languages/2/ Exception Type: TypeError Exception Value:'bool' object is not callable

Re: Some thoughts about slug and slugify

2006-01-28 Thread Rudolph
this but is seems very usable. Will this or something like this be integrated into Django? Rudolph

Re: Some thoughts about slug and slugify

2006-01-27 Thread Rudolph
why I switched to Django): $slug = strtolower(htmlentities($title, ENT_NOQUOTES, 'UTF-8')); $slug_no_accents = preg_replace("/&(.)(acute|cedil|circ|ring|tilde|uml);/", "$1", $slug); One should be abled to port this to Django in no-time. Rudolph

Re: best practices for translating content

2006-01-11 Thread Rudolph
Wouldn't it be a cleaner approach to seperate language dependent content completely from the actual models. It's more "DRY" because you only define the text fields on one place. You could even introduce a site-wide model for all language dependent content like this: class Content(meta.Model):

Up and down in admin list

2006-01-09 Thread Rudolph
also affect this sorting value. Thanks in advance, Rudolph