Bad Marshal Data error

2009-10-31 Thread Jeff
Hi, I'm getting the following error when I run "python manage.py", "python manage.py runserver", or "python manage.py shell" in my project's directory: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/python2.6/site-packages/djang

Django crash when accessing User instance containing ManyToMany field only through request.user

2009-10-31 Thread ewoudenberg
Hi, I'm adding row level permissions to the admin using this guideline: http://www.djangosnippets.org/snippets/1054/. Everything works fine when I add a simple ForeignKey to the User object and use that to identify records 'owned' by the user. e.g.: from django.contrib.auth.models import User

Re: forms vs modelforms

2009-10-31 Thread Mike Ramirez
On Saturday 31 October 2009 15:34:07 Ross wrote: > I'm new to Django and web programming in general and I'm trying to > write a simple page that will allow users to sign up for different > leagues. The sign up form will have multiple fields (name, phone, > address, etc). I've read over the forms do

forms vs modelforms

2009-10-31 Thread Ross
I'm new to Django and web programming in general and I'm trying to write a simple page that will allow users to sign up for different leagues. The sign up form will have multiple fields (name, phone, address, etc). I've read over the forms documentation and the modelforms documentation, but I'm st

Form that updates a list of items?

2009-10-31 Thread Nick Arnett
I'm just getting familiar with Django and I think I've got all the basics... and I have lots of experience with Python and MySQL, but I'm having a hard time figuring out how to do something that would be easy for me in plain Python. One of the problems I keep finding with various pieces of docume

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Mike Ramirez
On Saturday 31 October 2009 12:00:13 Christophe Pettus wrote: > On Oct 31, 2009, at 11:52 AM, Mike Ramirez wrote: > > I do not understand why web developers who use php, still do. > > PHP has a large, and (perhaps more importantly) easy-to-find ecosystem > surrounding it. I think that Python's su

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Christophe Pettus
On Oct 31, 2009, at 11:52 AM, Mike Ramirez wrote: > I do not understand why web developers who use php, still do. PHP has a large, and (perhaps more importantly) easy-to-find ecosystem surrounding it. I think that Python's superiority as a language is simply not open to debate, but if you a

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Mike Ramirez
On Saturday 31 October 2009 10:42:24 Andy McKay wrote: > One key thing to remember is that Django and Drupal (and the other > things you mentioned) are quite different things. You are comparing > apples to oranges which makes the sell harder. > > Drupal is a CMS and has a different target audience

Many-toMany with list_display in Admin-Site with django 1.1

2009-10-31 Thread Tobias Kabbeck
I had the same problem and solved it with this suggestions. With django 1.1 the admin-site has an output like this: [, ] Somebody know how i could solve this? I don't want to output the keywords nor parenthesis. Thanks for tips --~--~-~--~~~---~--~~ You received

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread shacker
On Oct 31, 10:42 am, Andy McKay wrote: > One key thing to remember is that Django and Drupal (and the other   > things you mentioned) are quite different things. You are comparing   > apples to oranges which makes the sell harder. To clarify - I'm very aware that one is a framework and the other

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Andy McKay
One key thing to remember is that Django and Drupal (and the other things you mentioned) are quite different things. You are comparing apples to oranges which makes the sell harder. Drupal is a CMS and has a different target audience. It has the level of complexity that comes from solving t

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread sstein...@gmail.com
On Oct 31, 2009, at 1:20 PM, Alexandru Nedelcu wrote: > Another thing you could do is to implement your own CMS in Django that > has most of the features managers are looking for ... That's *exactly* what scares the crap out of managers; custom code vs. something "everyone" is using. You're

Re: Making the case for Django (vs. Drupal)

2009-10-31 Thread Alexandru Nedelcu
For me, Drupal is anti-developers. Indeed, it is very hard to balance a platform to be friendly both to users and to developers, and IMHO, Drupal is decent but doesn't do great on anything (ease of use, ease of development, scalability, etc...). Drupal has many more third-party modules. But those

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2009-10-31 Thread Ethan Jucovy
Hey, I actually just did 5-star ratings for a project I'm working on, and have been trying to figure out if I have anything reusable worth releasing as a package (and trying to find the time to figure that out..) I'll outline what I did and what I used to do it. I used django-ratings[1,2] for th

Making the case for Django (vs. Drupal)

2009-10-31 Thread shacker
At the university where I work, there is a LOT of momentum behind Drupal. A large and active users group, and dozens of departmental sites running it. I've succeeded in building a few departmental sites with Django but still feel like it's an uphill battle convincing managers to agree to go with a

Re: Fwd: Twisted WSGI (trunk) + Django 1.1.1 + Pinax Twisted WSGI setup == broken forms?

2009-10-31 Thread ssteinerX
On Oct 31, 12:07 am, "sstein...@gmail.com" wrote: After much aggravation and annoyance, I reset my entire development environment with a new virtualenv with no site packages and only installed the base system requirements. Also, I went back to the simpler method suggested by Pinax though I've

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2009-10-31 Thread Mike Ramirez
On Saturday 31 October 2009 07:40:05 David wrote: > I would like to have reusable ratings (typical layout with 5 stars). I > have found this http://www.thebroth.com/blog/119/css-rating-stars that > explains how to display this using css. For actually collecting the > rating I was thinking of using

Best Practices: How to best implement Rating-Stars in Django Templates

2009-10-31 Thread David
I would like to have reusable ratings (typical layout with 5 stars). I have found this http://www.thebroth.com/blog/119/css-rating-stars that explains how to display this using css. For actually collecting the rating I was thinking of using an image map or maybe simple radio buttons. I would like

Django: displaying an image inside the admin (change form)

2009-10-31 Thread syberkitten
Hi, being a Django newbiew, i've been searching all over for how to display an image inside the admin's change_form - that is, the page where we edit the records for a model. although i've managed to show a thumbnail image in the display_list view of the admin inside the editing form, i have no

Django: displaying an image inside the admin (change form)

2009-10-31 Thread Liam
Hi, being a Django newbiew, i've been searching all over for how to display an image inside the admin's change_form - that is, the page where we edit the records for a model. although i've managed to show a thumbnail image in the display_list view of the admin inside the editing form, i have no

Django + Twisted trunk, fresh virtualenv, simplest demo

2009-10-31 Thread sstein...@gmail.com
Hi! I was pulling my hair out yesterday, trying to get my Django application's forms working on both the development server, and running under Twisted trunk. POST variables were not arriving in the REQUEST object where they belonged, but only under Twisted. So, I d

Re: Django using 2 DB

2009-10-31 Thread Russell Keith-Magee
On Sat, Oct 31, 2009 at 1:18 PM, Gustavo Henrique wrote: > > Thanks Russ! > How I create a combobox in ModelForm contains data from other database? Like I said - Django doesn't do this out of the box. If there was a documented solution for this problem, I would have pointed you at this reference

using Curl to upload files

2009-10-31 Thread Vidja
Hi all, Recently I have been developing an application that receives files from jobs (bash scripts) running on remote systems. My first thought was to use cURL for uploading since Bash does not have libraries like LWP for perl or urllib2 for python. This approach failed miserably as Django did n

Maximum AutoField Value

2009-10-31 Thread A. Rossi
What is the maximal value for an AutoField? When that value is reached, does it "wrap" around to 0, or does something else occur? Is it database-backend dependent? I can't find it in the documentation, nor on this mailing list. Thank you. --~--~-~--~~~---~--~~ You

Re: Inlines and foreign key

2009-10-31 Thread Alessandro Ronchi
On Fri, Oct 30, 2009 at 12:03 AM, Matt Schinckel wrote: > > > My solution was to have a custom PersonAdminForm, which allows for > setting of the username and password (and validates these, creating a > new user if one was not previously attached). This form is then > attached to the PersonAdmin