Re: missing default values in formfields.FormWrapper(...)

2005-12-05 Thread Emanuele
Thanks a lot! It works perfectly. I think this should go in 'Forms and Manipulators' docs as soon as possible! Emanuele

unexpected keyword argument 'member_name' (rev 1547)

2005-12-05 Thread Emanuele
Hi, today I upgraded to SVN version 1547, but when running admin interface I got this while adding an instance of a model ('ddt' model): TypeError at /admin/koan/ddt/add/ __init__() got an unexpected keyword argument 'member_name' Request Method: GET Request URL:http://127.0.0.1:

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-05 Thread Kenneth Gonsalves
On Monday 05 Dec 2005 4:15 pm, Emanuele wrote: > today I upgraded to SVN version 1547, but when running admin > interface I got this while adding an instance of a model ('ddt' >  model): try deleting all the .pyc files in the django tree (or delete the whole tree and do a fresh svn checkout. Svn

suitability of django

2005-12-05 Thread maskedbeagle
Hi all hope this is a suitable place for newbies to make nieve blurts and questions - if not tell me to piss off and perhaps even direct me to the right forum... Im evaluating web frameworks - and what Im mainly hoping for is one that allows me as much opportunity to organise things as Id like -

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-05 Thread Emanuele
I tried it but without success: I still get --- TypeError at /admin/koan/ddt/add/ __init__() got an unexpected keyword argument 'member_name' Request Method: GET Request URL:http://127.0.0.1:8000/admin/koan/ddt/add/ Exception Type: TypeError Exception Value:__init__() g

Re: manytomany not working

2005-12-05 Thread Lee
Never mind. I followed the advice given in another thread from today and deleted all the .pyc files, re-upped to the current version, and everything works. I also had to quit and restart my ipython session: although I thought I was reloading, not everything was getting reloaded.

Re: suitability of django

2005-12-05 Thread Daniel Ericsson
On 5 dec 2005, at 13.25, maskedbeagle wrote: What Im specifically wondering relates to organisation and models - before I waste time trying - if I was to establish different models for my app e.g. django-admin.py startapp mammal, django-admin.py startapp reptile, django-admin.py startapp zoo

gettext is not defined

2005-12-05 Thread olive
Hello, While gettext is in the PATH, I get the following javascript errors browsing an admin page with calendar and DateTime widgets: Erreur : gettext is not defined Fichier source : http://127.0.0.1:8000/media/js/calendar.js Ligne : 26 Erreur : gettext is not defined Fichier source : http://12

Re: gettext is not defined

2005-12-05 Thread hugo
>While gettext is in the PATH, I get the following javascript errors >browsing an admin page with calendar and DateTime widgets: JavaScript doesn't have anything to do with PATH ;-) You need to check what is in the pages - if you for example overloaded admin templates with your own, you will nee

Re: gettext is not defined

2005-12-05 Thread olive
Georg, I did not overload any admin template. The problem appears the last time calendar.js and DateTimeShortcuts.js have been updated by svn up. Do I need to add a parameter in the corresponding model meta.Admin ? Olivier.

Re: Declare a variable in a template

2005-12-05 Thread Waylan Limberg
On 12/3/05, Jiri Barton <[EMAIL PROTECTED]> wrote: > > Wow, dorodok, that is elegant, indeed. I have already implemented by > the inclusion_tag as the guys suggested, but I'm going to do it the CSS > way. > Just remember that every time you want to add another tab, then you'll have to edit the CSS

Re: unexpected keyword argument 'member_name' (rev 1547)

2005-12-05 Thread oggie rob
Hi Emanuele, A quick glance at the use of 'member_name' in the output showed a line that contained this: 'member_name': 'fornitura.0.materiale_id' Is that supposed to be in your model? -rob

Re: gettext is not defined

2005-12-05 Thread hugo
>The problem appears the last time calendar.js and DateTimeShortcuts.js >have been updated by svn up. Not reproduceable here - have you removed your .pyc files after svn up? svn doesn't update .pyc files, and since .pyc are created based on the date/time of the .py file, sometimes old modules sti

Re: suitability of django

2005-12-05 Thread oggie rob
Why Django? -Fantastic ease and flexibility for generating complex view-only pages. -Free admin interface (which my users will see a lot of) -Python -Very responsive and active community Why not TG? -Because I hadn't heard of it! -Seems similar to Django but less planned in some parts. URL d

Re: Uploading a file

2005-12-05 Thread PythonistL
Simon,Thank you for your help. I changed the view a little. I have def UploadFile(request): if request.POST: print "We are in POST" import os.path filepath = '/Media/Static/' filename = request.FILES[ 'file' ][

Django's MVC architecture

2005-12-05 Thread [EMAIL PROTECTED]
I just posted about this over at the blog and just wondered if anyone had noticed this? Django seems to switch things around a bit so MVC has become MTV. If you compare it to RoR which calls its templates views (correct) and calls its control code "controller" and so on. Django seems to call its

Re: Django's MVC architecture

2005-12-05 Thread Jacob Kaplan-Moss
Hi Doug -- This is addressed in the FAQ: http://www.djangoproject.com/ documentation/faq/ Jacob

Re: Uploading a file

2005-12-05 Thread Eric Walstad
On Monday 05 December 2005 10:47 am, PythonistL wrote: > Try reading this. It might help.

delete(), cascade, and the case of the missing data

2005-12-05 Thread Jeffrey E. Forcier
Howdy all, There are tangential references to this on the list archives and elsewhere, but I haven't found any describing this specific situation: In short, if I have a model object type with both 'simple' sub- objects (objects with a single ForeignKey to the main object and no other refe

Re: Django's MVC architecture

2005-12-05 Thread [EMAIL PROTECTED]
Haha. I hadn't noticed that. Very good but it still functions and appears like a mis-labelled MVC model. However, I'm still very much smitten with it. I certainly wouldn't rid myself of my other half simply because she had an unusual name.

Re: missing default values in formfields.FormWrapper(...)

2005-12-05 Thread Emanuele
Maybe this is relevant for those interested in the thread: manipulator.flatten_data() is available only on recent SVN version of Django. It is unfortunately NOT available in Django_0.90. Cheers, Emanuele

Re: delete(), cascade, and the case of the missing data

2005-12-05 Thread Robert Wittams
There really is no sensible way around the requirement for transactions, unless you want to check every constraint yourself. It is planned to go in before 0.91, AFAIK.

Re: delete(), cascade, and the case of the missing data

2005-12-05 Thread Jeffrey E. Forcier
Yea, I was afraid that was it, just wanted to make sure I wasn't missing something silly/obvious. I need to put some code out the door tomorrow, which is why I asked now instead of just waiting for transactions to go in; I guess it won't hurt too much to quickly patch the relevant method

ANN: Django site on washingtonpost.com

2005-12-05 Thread Adrian Holovaty
Check it out: The first Django app at washingtonpost.com! The U.S. Congress Votes Database http://projects.washingtonpost.com/congress/ It lets you browse every vote in the U.S. Congress since 1991. This is the first of many Django apps at The Post. :) Adrian -- Adrian Holovaty holovaty.com |

Re: ANN: Django site on washingtonpost.com

2005-12-05 Thread david
Very cool. Great to see. david. On 12/5/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Check it out: The first Django app at washingtonpost.com! > > The U.S. Congress Votes Database > http://projects.washingtonpost.com/congress/ > > It lets you browse every vote in the U.S. Congress since 19

Re: ANN: Django site on washingtonpost.com

2005-12-05 Thread Tom Tobin
On 12/5/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Check it out: The first Django app at washingtonpost.com! Already added to my aggregator. ;-) BTW, is there any particular reason the Recent Votes feed is in Atom, while all the others are in RSS? (Not that my aggregator cares; just cu

Re: ANN: Django site on washingtonpost.com

2005-12-05 Thread Adrian Holovaty
On 12/5/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > BTW, is there any particular reason the Recent Votes feed is in Atom, > while all the others are in RSS? (Not that my aggregator cares; just > curious!) Nice catch! I'd left that code in as a test and forgot to remove it. I'll update it on the s

Re: Problem with TinyMCE integration

2005-12-05 Thread lawgon
olive wrote: > Thanks a lot did you solve the problem? i changed the path, and though the path is now showing correctly when viewing the page source, tiny_mce is not showing in the textarea regards kg

Re: Uploading a file

2005-12-05 Thread PythonistL
Eric, Thank you for your reply. I checked the http://code.djangoproject.com/wiki/NewbieMistakes and corrected the form( I added "/" in action) like this ### Choose a file n to be loaded: ## but the result is the SAME. The program will never go through the request.POST sect