Wired integers displayed instead of Friends List in facebook connect

2009-06-11 Thread gganesh
hi, My app connects to Facebook and as user logins in with facebook connect ,i intent to display users friends list .I the process of doing so i have written a code as pasted below FB_RequireFeatures(["XFBML"],function() { FB.Facebook.init

Re: Open Sourcing a Website [dangerous?]

2009-06-11 Thread Kenneth Gonsalves
On Thursday 11 June 2009 22:27:11 Shadow wrote: > Thanks for the info, very helpful. > > You've convinced me, now I just need to convince the higher > authorities I have had a fair amount of success in convincing non-profits to open source the code of their webapps. Among points you can make:

Re: Processing Forms in HTML docs

2009-06-11 Thread Abhishek Nanda
any ideas? --~--~-~--~~~---~--~~ 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

Re: Open Sourcing a Website [dangerous?]

2009-06-11 Thread Kenneth Gonsalves
On Thursday 11 June 2009 15:41:59 Shadow wrote: > I'm about to launch a non-profit django website, and was thinking I > might as well open source the code as well. > > I noticed this has been done with djangoproject.com, but was thinking > how potentially dangerous it is, that any flaws are open

Re: How to doing something after change record of DB with admin view?

2009-06-11 Thread Rama Vadakattu
>From my point of view use of signals correctly fit your needs. On Jun 12, 5:31 am, Shuge Lee wrote: > For some reason, I want to create a static file after user change > record of DB with admin view, I need to use >

Determining the type of a form field within a template

2009-06-11 Thread thsut...@gmail.com
Hi all, I'm currently working on my first Django project and have run into a difficulty while trying to write a generic "display a form" template that I can {% include %} when I need to (as suggested in the documentation ). My goal is a simple

Re: Memory usage

2009-06-11 Thread Graham Dumpleton
On Jun 12, 11:51 am, Miles wrote: > Or rather - how to keep the server from blowing up. I've searched the > web before, but nothing I've found solves the problem. > > Some background info - I'm running worldoflogs.com, a site that gets > around 100 concurrent requests during

Re: URL Patterns for URL Encoding Symbols

2009-06-11 Thread Andy Dietler
Awesome thanks. I love the Django community. On Jun 11, 7:03 pm, Thomas Sutton wrote: > Hi Andy, > > 2009/6/12 Andy  Dietler : > > > > > > > > > Right now I've got a URL pattern that works for letters and numbers, > > but when a character like %20 gets

Memory usage

2009-06-11 Thread Miles
Or rather - how to keep the server from blowing up. I've searched the web before, but nothing I've found solves the problem. Some background info - I'm running worldoflogs.com, a site that gets around 100 concurrent requests during rush hour and still growing rather rapidly. Django powers the

urlconf doesn't coerce

2009-06-11 Thread notcourage
From: http://docs.djangoproject.com/en/dev/topics/http/urls/#topics-http-urls Each captured argument is sent to the view as a plain Python string, regardless of what sort of match the regular expression makes. * * * Does anybody think it would be nice to specify coercions like you can on

URL Patterns for URL Encoding Symbols

2009-06-11 Thread Andy Dietler
Right now I've got a URL pattern that works for letters and numbers, but when a character like %20 gets thrown in it fails. The pattern is this: (r'^(?P\w+)/$', 'detail'), Which works when I have: domain.com/Friends/ domain.com/24/ but not for domain.com/The%20Office/ How do I get it to

templates in Practical Django Projects

2009-06-11 Thread jayvandal
I am now on linux . I created a CMS under jim/djp/ I created the projec t to the flatpages. I am trying to create templates. I created a templates in jim/djp/templates.I created cms under templates, then flatpages directory. I then created default.html In the setting I put the template_dir = (

Re: Permission Denied: /tmp/python.cache_root

2009-06-11 Thread Graham Dumpleton
Since you never posted a full and complete traceback, we have no idea what code is even triggering this condition, so how can we suggest what needs to change. Also, you should do a 'ls -lasR' of /tmp/python.cache_root and work out if all files under the directory are owned by the same or

templates in Practical Django Projects

2009-06-11 Thread jayvandal
I am now on linux . I created a CMS under jim/djp/ I created the projec t to the flatpages. I am trying to create templates. I created a templates in jim/djp/templates.I created cms under templates, then flatpages directory. I then created default.html In the setting I put the template_dir = (

How to doing something after change record of DB with admin view?

2009-06-11 Thread Shuge Lee
For some reason, I want to create a static file after user change record of DB with admin view, I need to use signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals , or other stuff? --~--~-~--~~~---~--~~ You received this message because you

Re: how to custom Admin list_filter queryset? thanks ~

2009-06-11 Thread mydjango
thanks ~ On 6月11日, 下午5时40分, mydjango wrote: > I want many sites to use one admin,they only use his datas,but can't > view other user's datas. > > I use admin.ModelAdmin def queryset to custom changelistview, but when > i use list_filter with ForeignKey field , the filter

getting the latest story is too slow

2009-06-11 Thread ssc
Hello, I would like to retrieve the most recently published story from the database. The criterion date is not a field, but sits in a separate model connected by a ManyToMany field. # this works fine latest_story = Story.order_by('-publish_dates__publish_date')[0] # this also works, seems

Re: django-registration using a different registration form

2009-06-11 Thread Paddy Joy
Thanks Creecode, I discovered the new url needs to be before the urlconf to override it. url(r'^%saccounts/register/$' % settings.BASE_URL, 'registration.views.register', {'form_class': RegistrationWithPet}, name='registration_register'), url(r'^%saccounts/' % settings.BASE_URL, include

Re: how to override ordering in date-based generic views

2009-06-11 Thread Joseph Brown
Hi Justin - Thanks & sorry I missed your email until just now. I did try that, and it's interesting: it worked for any of the date based generic views that took a datepart parameter in the url, i.e. archive_year, archive_month, and archive_day. But archive_index just ignores it. Also tried

Re: How can I get consistent url mappings on both apache+mod_wsgi and the development server.

2009-06-11 Thread Graham Dumpleton
On Jun 12, 4:23 am, peta wrote: > I have django running under apache+mod-wsgi with... > >       WSGIScriptAlias /tools     /blah/blah/blah/tools.wsgi > > so http:server/tools/thingy cranks up the thingy tool.  Because > mod_wsgi strips off the /tools part the urlpatterns just

Hi, im new with Django

2009-06-11 Thread Asinox
Hi, im Asinox, im a php user , CodeIgniter Framewor user, but i want to test something different to PHP, so why not Python. But i have a litter problem, im using window with WAMP, my python path is : E:\wamp\bin\Python25\, my Django installation is: E:\wamp\bin \Python25\Lib\site-packages\django

Disabling I18N causes circular import?

2009-06-11 Thread ringemup
With I18n disabled, I'm getting what looks like a circular import error from one of my apps, but with it enabled, the error goes away. None of my modules is (to my knowledge) using any I18N features. Any clues what might be going on? --~--~-~--~~~---~--~~ You

Django & Couchdb ??

2009-06-11 Thread Nicolas Steinmetz
Hello, Interesed by couchdb, I would be interested to use both django & couchdb. I see that there is at least 6 implementations : - couchdb-django : http://code.google.com/p/couchdb-django/ - not updated since last august - django-couchdb : http://code.google.com/p/django-couchdb/ - not

Re: Permission Denied: /tmp/python.cache_root

2009-06-11 Thread joshm
This is a private beta...not production I have debug on for that reason. In this instance, there are 2 django sites running, so this could very well be the issue. They are being hosted on a vps but the production one has memcache setup as its cache backend, the beta site which is getting this

Problem with cascade delete of onetoone relation

2009-06-11 Thread jenlu
I have a model 'Account' with a OneToOne relation to another model Tokens and then lots of other stuff in my models Class Account (. tokens = models.OneToOneField('TokenStore', verbose_name=_(u'Token Store'), related_name='account') When deleting an Account from admin gui

Re: ModelChoiceField queryset option

2009-06-11 Thread Bobby Roberts
> Hi. > You should take a read on the queryset api, that would help you a lot > In the furture. For distinct values add .distinct() so you fx get > ...filter(...).distinct() > > ~Jakob Jakob - I've read the docs and know about distinct. The issue here is that a modelchoicefield returns the ID

Re: in admin interface - how to edit/show data based on ownership/not ownership

2009-06-11 Thread phoebebright
This post might help - http://groups.google.com/group/django-users/browse_thread/thread/c84dbbac27c6fea2/cf6624cca547fe89?lnk=gst=admin+owner#cf6624cca547fe89 Not exactly what you want but might give you some ideas. On Jun 11, 7:36 pm, "Sergio A." wrote: > Hello, > >

Re: ModelChoiceField queryset option

2009-06-11 Thread googletorp
Hi. You should take a read on the queryset api, that would help you a lot In the furture. For distinct values add .distinct() so you fx get ...filter(...).distinct() ~Jakob On Jun 11, 7:28 pm, Bobby Roberts wrote: > > The issue is the line:

Entering {{ variable }} into the Admin Interface

2009-06-11 Thread saved...@gmail.com
If the following question seems daft, then excuse me. Is it possible (from a data entry perspective) to enter a string with the variable in the admin? For example, can I enter the following data into the admin, "My name is {{ user.username }} ." When the template engine encounters this, it

Re: Seeing form validation errors

2009-06-11 Thread zayatzz
Well i found a solution finally... http://kfarr.com/2008/04/04/making-a-complex-customized-django-form-template-remember-to-include-errorsnon_field_errors/ If anyone else has this kind of problem then you could go ahead and check this example too :

in admin interface - how to edit/show data based on ownership/not ownership

2009-06-11 Thread Sergio A.
Hello, in this blog post: http://www.b-list.org/weblog/2008/dec/24/admin/ it is explained how to list only data that someone owns and restrict edit permission. What I'd like to do is to list all the data, but let users change only those owned, while showing the rest for reading. This means

Re: tinycme and filebrowser - unable to select image

2009-06-11 Thread Daniel Hilton
Hi Sam Yes mine is working now. Weird - will try a fresh project at some stage and try and track this one down. Was the error you were getting from tinyMCE saying that 'u is not defined'? Cheers, Dan 2009/6/11 nostradamnit > > Hi Daniel, > > Your javascript name change

How can I get consistent url mappings on both apache+mod_wsgi and the development server.

2009-06-11 Thread peta
I have django running under apache+mod-wsgi with... WSGIScriptAlias /tools /blah/blah/blah/tools.wsgi so http:server/tools/thingy cranks up the thingy tool. Because mod_wsgi strips off the /tools part the urlpatterns just have to match the tool name, i.e. (r'^thingy/',

Re: ModelChoiceField queryset option

2009-06-11 Thread Bobby Roberts
> The issue is the line: WebPage.objects.filter(page_plaque!='').  The > queryset syntax doens't use the != operator anywhere.  To do != operations > you need to instead do WebPage.objects.exclude(page_plaque=''). > ok that got past the error but there are dupes in there. Is there a way to pull

Re: ModelChoiceField queryset option

2009-06-11 Thread Alex Gaynor
On Thu, Jun 11, 2009 at 12:13 PM, Bobby Roberts wrote: > > hi group > > i'm trying to create a drop box that is populated with a distinct list > of values from a certain field (fieldname=page_plaque) in the table. > Here is what i have in my forms.py > > > class

Re: Imposing a negative constraint on related objects

2009-06-11 Thread Rowan Nairn
On Thu, Jun 11, 2009 at 9:15 AM, Jashugan wrote: > > On Jun 10, 2:48 pm, Rowan wrote: > >> Here is an English description of what I want to achieve: >> "People who have received mails with tag T, excluding mails in threads >> that they started themselves" >

Re: tinycme and filebrowser - unable to select image

2009-06-11 Thread nostradamnit
Hi Daniel, Your javascript name change didn't work for me :( Is your working now? Did you check your settings.FILEBROWSER_URL_FILEBROWSER_MEDIA? Mine was pointing to an invalid path ( I hadn't copied the filebrowser media files over ) . My install is working now :D Good luck, Sam On Jun 9,

ModelChoiceField queryset option

2009-06-11 Thread Bobby Roberts
hi group i'm trying to create a drop box that is populated with a distinct list of values from a certain field (fieldname=page_plaque) in the table. Here is what i have in my forms.py class PagePlaqueModelChoiceField (forms.ModelChoiceField): def label_from_instance(self,obj):

Re: tinycme and filebrowser - unable to select image

2009-06-11 Thread nostradamnit
Patrickk wins this one! Thanks! The problem was settings.FILEBROWSER_URL_FILEBROWSER_MEDIA which was a valid path but not a valid url. Apparently I got lost at the second item of the filebrowser basic installation :( Thanks again to everyone, Sam On Jun 9, 9:43 pm, patrickk

Re: Open Sourcing a Website [dangerous?]

2009-06-11 Thread Shadow
Hi Michael, Thanks for the info, very helpful. You've convinced me, now I just need to convince the higher authorities :P On Jun 12, 12:24 am, Michael wrote: > On Thu, Jun 11, 2009 at 6:11 AM, Shadow wrote: > > > > > Hi guys, > > > I'm about

Re: Generic Views vs. Admin

2009-06-11 Thread phoebebright
Jashugan, I agree that generic views for non-admins make sense, just be nice to be able to say body_html = auto_generate(model, list/display/update etc.) or whatever admin is doing and stick that in a generic template. {% extends 'base.html' %} {% block main %} {{body_html}} {% endblock %}

Re: Displaying a checkbox/list from database back onto a Django form

2009-06-11 Thread Jashugan
On Jun 10, 10:48 am, NealWalters wrote: > So I stored the list into my bigtable database.  The user goes to page > 2 or 3 of a five page form, then goes back to the first page where the > languages were, and now, I need to show the same languages checked > that he

Re: Problem with query set order_by

2009-06-11 Thread Sean Brant
You the man Alex, that was the problem! On Jun 11, 11:19 am, Alex Gaynor wrote: > On Thu, Jun 11, 2009 at 11:15 AM, Tom Evans wrote: > > > > > > > On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > > > If I have 2 sql queries one with a limit

Re: Problem with query set order_by

2009-06-11 Thread Alex Gaynor
On Thu, Jun 11, 2009 at 11:15 AM, Tom Evans wrote: > > On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > > If I have 2 sql queries one with a limit of 5 and the other with a > > limit or 6 they return there results in diffrent orders. > > > > Here is a example. > >

Re: Problem with query set order_by

2009-06-11 Thread Tom Evans
On Thu, 2009-06-11 at 09:04 -0700, Sean Brant wrote: > If I have 2 sql queries one with a limit of 5 and the other with a > limit or 6 they return there results in diffrent orders. > > Here is a example. > > >>> class Book(models.Model): > >>>title = models.CharField(max_length=150) > >>>

Re: Imposing a negative constraint on related objects

2009-06-11 Thread Jashugan
On Jun 10, 2:48 pm, Rowan wrote: > Here is an English description of what I want to achieve: > "People who have received mails with tag T, excluding mails in threads > that they started themselves" Have you tried using Q objects? Person.objects.filter(

Re: New to Django - question about AUTHENTICATION_BACKENDS and syncdb

2009-06-11 Thread Karen Tracey
On Wed, Jun 10, 2009 at 4:52 PM, spacelab wrote: > > I tried to follow the following tutorial > > http://agileweb.wordpress.com/2009/04/28/step-by-step-guide-to-use-sign-in-with-twitter-with-django/#comment-67 > however I failed to get it to work properly. > > To eleminate

Problem with query set order_by

2009-06-11 Thread Sean Brant
If I have 2 sql queries one with a limit of 5 and the other with a limit or 6 they return there results in diffrent orders. Here is a example. >>> class Book(models.Model): >>>title = models.CharField(max_length=150) >>>author = models.CharField(max_length=100) >>> book_list_1 =

Re: how to disable recursive delete in admin

2009-06-11 Thread Jashugan
On Jun 11, 8:43 am, Francis wrote: > If a link an image in ProductPage and then delete the image later, the > admin site will tell me that it would also delete the ProductPage. I > tried it, and it got deleted. I don't use the admin site that much, but this behavior

Re: Not displaying the data after space

2009-06-11 Thread Jeff FW
Take a look in the database itself (use the sqlite3 shell) and see if the full phrase is being stored. If it is, then there is an issue with how you are pulling the data out and displaying it in the form; if it isn't, then there is an issue with how you are saving the data in the first place.

Re: Unable to update a query

2009-06-11 Thread Jashugan
On Jun 11, 6:56 am, shradha wrote: > hi, > > I have created a django application , where my model class is > > class Developer(models.Model): > >     developer_id=models.CharField(primary_key=True,max_length=30) >     developer_name = models.CharField(max_length=100) >    

Re: how to disable recursive delete in admin

2009-06-11 Thread Francis
And it's what puzzle me. That's my models : class Image(models.Model): name = models.CharField(max_length=50) file = models.FileField(upload_to=PRODUCT_IMAGES) class ProductPage(Page): product_description = models.TextField() product_id = models.IntegerField()

Re: Generic Views vs. Admin

2009-06-11 Thread Jashugan
On Jun 11, 8:03 am, phoebebright wrote: > I have spent a good deal time researching this online and in this > group but can find no clear answer. I think the reason why is that it depends on what you want to do. > My instinct is that I should use the former, but do I

Re: how to disable recursive delete in admin

2009-06-11 Thread Jashugan
On Jun 11, 8:08 am, Francis wrote: > Is it possible to disable recursive delete? > > Because I have some pages models that has a m2m relationship with an > image/video table. But if I delete an image, I don't want it to also > delete the page. I don't think recursive

Re: How to doing something after change db record with admin view?

2009-06-11 Thread Jashugan
On Jun 11, 3:13 am, Shuge Lee wrote: > For some reason, I want to create a static file after user change > record of DB with admin view, I need to use > signalhttp://docs.djangoproject.com/en/dev/topics/signals/#topics-signals Yeah signals would work well.

Re: stringformat to get first 3 characters?

2009-06-11 Thread Daniel Roseman
On Jun 11, 3:50 pm, Frank Peterson wrote: > I need to use the stringformat filter on a variable in a template but > I just want it to grab the first 3 characters of the variable. > > {{ object.caption|lower|truncatewords:"1"|stringformat:"3s" }} > > Doesnt seem to

Re: django versions and wsgi - 'module' object has no attribute 'site'

2009-06-11 Thread Karen Tracey
On Wed, Jun 10, 2009 at 4:21 PM, El Marto wrote: > > Hi all! > > I m trying to run my django app using wsgi, The default django > installed in the server is 0.97-pre-SVN-6978 and I want to use the > development one. I inserted the development django path in the wsgi >

how to disable recursive delete in admin

2009-06-11 Thread Francis
Hi folks, I have a question related to deletion in the admin interface. Is it possible to disable recursive delete? Because I have some pages models that has a m2m relationship with an image/video table. But if I delete an image, I don't want it to also delete the page. thank you Francis

Generic Views vs. Admin

2009-06-11 Thread phoebebright
I have spent a good deal time researching this online and in this group but can find no clear answer. Generally, I can either use generic views and write a template for each model to list/view/update/delete or I can use admin and do a filter to only show a particular person's entries. My

stringformat to get first 3 characters?

2009-06-11 Thread Frank Peterson
I need to use the stringformat filter on a variable in a template but I just want it to grab the first 3 characters of the variable. {{ object.caption|lower|truncatewords:"1"|stringformat:"3s" }} Doesnt seem to work. --~--~-~--~~~---~--~~ You received this

Re: Getting a distinct list of Users from two related Models

2009-06-11 Thread Karen Tracey
On Wed, Jun 10, 2009 at 3:24 PM, Streamweaver wrote: > > Thanks so much for the reply. > > Oddly the method you suggests throws an error but I'm not sure why. > > The solution I came up with is as follows: > > User.objects.order_by('username').filter >

Not displaying the data after space

2009-06-11 Thread Nalini
Hi, I am using jvascript, python and django for my web page with Sqllite3 at database. When i enter some data in a textfield, for example "this is an instrument" it is getting saved accurately into the database, the problem is when i try to view the data in the database , the data that is

Re: Open Sourcing a Website [dangerous?]

2009-06-11 Thread Michael
On Thu, Jun 11, 2009 at 6:11 AM, Shadow wrote: > > Hi guys, > > I'm about to launch a non-profit django website, and was thinking I > might as well open source the code as well. > > I noticed this has been done with djangoproject.com, but was thinking > how

Unable to update a query

2009-06-11 Thread shradha
hi, I have created a django application , where my model class is class Developer(models.Model): developer_id=models.CharField(primary_key=True,max_length=30) developer_name = models.CharField(max_length=100) project_id = models.ForeignKey(Project) I have written a query to update

How to doing something after change db record with admin view?

2009-06-11 Thread Shuge Lee
How to doing something after change record of DB with admin view? For some reason, I want to create a static file after user change record of DB with admin view, I need to use signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals , or other stuff?

Re: MySQLdb Exceptions

2009-06-11 Thread Frédéric Hébert
Hi, have you an access to your mysql server config file ? In that case, you could enable logging : To see the current variables values type mysqld --verbose --version in a shell prompt. Search for log* variables. If log is set to false see link below "The general query log is a general record

Re: error using ChoiceField

2009-06-11 Thread newbie
Thank you very much urukay. That was really helpful. On Jun 11, 10:53 am, urukay wrote: > The problem is that, when you submit the form to your view, the form choices > does not exist (the only exist only at client side, not server side). > Before validating the form,

Re: ManyToMany Question

2009-06-11 Thread Daniel Roseman
On Jun 11, 1:06 pm, LeeRisq wrote: > Programming with Django is unfortunately my job on the side right now, > so limited time for coding and testing. I know I could answer this > question myself by tinkering around, but don't have time. > > When you have a generic ManyToMany

ManyToMany Question

2009-06-11 Thread LeeRisq
Programming with Django is unfortunately my job on the side right now, so limited time for coding and testing. I know I could answer this question myself by tinkering around, but don't have time. When you have a generic ManyToMany field specified between two models, will Django automatically

MySQLdb Exceptions

2009-06-11 Thread jrivero
Hi! I have one mysqldb exception on insert or update in some model with message [1] and can not find it. Django does not catch and return generic error 500. [1]: Exception exceptions.TypeError: "'NoneType' object is not callable" in > ignored I suspect that appears after a change in the

Open Sourcing a Website [dangerous?]

2009-06-11 Thread Shadow
Hi guys, I'm about to launch a non-profit django website, and was thinking I might as well open source the code as well. I noticed this has been done with djangoproject.com, but was thinking how potentially dangerous it is, that any flaws are open to see and be exploited. Is it just a matter

how to custom Admin list_filter queryset? thanks ~

2009-06-11 Thread mydjango
I want many sites to use one admin,they only use his datas,but can't view other user's datas. I use admin.ModelAdmin def queryset to custom changelistview, but when i use list_filter with ForeignKey field , the filter will show all user's date. how can custom list_filter queryset list ?

Re: how to custom Admin list_filter queryset?

2009-06-11 Thread Daniel Roseman
On Jun 11, 10:06 am, mydjango wrote: > how to custom Admin list_filter queryset? http://catb.org/esr/faqs/smart-questions.html -- DR. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

how to custom Admin list_filter queryset?

2009-06-11 Thread mydjango
how to custom Admin list_filter queryset? --~--~-~--~~~---~--~~ 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

Re: Processing Forms in HTML docs

2009-06-11 Thread Abhishek Nanda
Well the problem with the URL is that i cannot pass the data this way to the view. for example if i need to sort the results i have obtained how do i pass the QuerySet to the appropriate view function? what I am wondering like in a link we can directly go to a particular view if we can do

Re: How to SEO adapt a I18N django web site..

2009-06-11 Thread jenlu
Quick update - got it to work !!! Still awaiting for google to index my site under http://work724.com/en/start/ and http://work724.com/sv/start/ but everything seems to be working. One issue I had was the ordering of modules. Using localeurl 1.3 and in installation guide step 2 states: '...Add

question about UserChangeForm

2009-06-11 Thread Wim Feijen
Hello, In my views, I'd like to be able to rename a user using the UserChangeForm from django.contrib.auth.forms . However, the form does not validate. Should I use another instance than request.user? Errorlist: Translation: "Dit veld is verplicht." is Dutch for "This field is required."

Re: IFEQUAL takes two arguments error on Django 0.91

2009-06-11 Thread Jason Beaudoin
On Wed, Jun 10, 2009 at 5:43 PM, Frank Peterson wrote: > > I'm on Django 0.91 (unfortunately we are stuck with that and cannot > upgrade). > I have a really hard time believe you truly are stuck. Migration may not be the simplest in the short-run, but certainly

Re: error using ChoiceField

2009-06-11 Thread urukay
The problem is that, when you submit the form to your view, the form choices does not exist (the only exist only at client side, not server side). Before validating the form, you have to create appropriate choices for that choicefield. This should point you to the right direction: