How to set queryset on the second step of a form wizard?

2008-08-20 Thread rr
Hi Guru, Depending on step 1's selection, I want to set the queryset of one of the fields (a ModelChoiceField) e.g. class StepOneForm(forms.Form): channelType = forms.ModelChoiceField(queryset=ChannelType.objects.all()) class StepTwoForm(forms.Form): channel = forms.ModelChoiceField() cla

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread fabio natali
Ivan Sagalaev wrote: [...] > fabio natali wrote: > > KeyError at /manufacturer > > u'manufacturer' > > when accessing http://localhost:8000/manufacturer > > KeyError says that it can't find a key 'manufacturer' in dict > model_classes. This leads me to think that model_classes is empty. It > ca

mas sobre unicodedecode erros

2008-08-20 Thread anonymous
Hola, Tengo el siguiente error In [2]: from myapp.models import * In [3]: Mymodel.objects.all() Out[3]: --- UnicodeDecodeErrorTraceback (most recent call last) /home/user/myproject/ in () /var/

UnicodeDecodeError and mysql

2008-08-20 Thread anonymous
Hello all, I get the following error: In [2]: from myapp.models import * In [3]: Mymodel.objects.all() Out[3]: --- UnicodeDecodeErrorTraceback (most recent call last) /home/user/myproject/ in ()

Re: ifequal doesn't evaluate expressions

2008-08-20 Thread woeye
I think it's ok that the Django team wants to keep the codebase clean and maintainable. But from an endusers point of view I understand Zinovii's position, too. Sometimes I feel that Django's feature set is very basic and provides only the bare minimum to get started. For real work you have to wri

Re: Browser timeout on long processes

2008-08-20 Thread coulix
Yes, if you can check the Restfull book from Oreilly there is a good example on using a queue system to submit lengthy job. You submit the work and it gives you back an url that you can check 'repeatedly' to see the progress or completion of the job. Greg On Aug 20, 5:01 am, Julien Phalip <[EMAI

Re: polymorphism and abstract classes

2008-08-20 Thread Kip Parker
Maybe have a look at generic relations? http://www.djangoproject.com/documentation/models/generic_relations/ You could also use multi-table inheritance rather than abstract classes, then use the parent class Animal as the key in ZooEnclosure. Abstract classes can't exist on their own, which I exp

Re: Browser timeout on long processes

2008-08-20 Thread Ronny Haryanto
On Wed, Aug 20, 2008 at 4:16 PM, coulix <[EMAIL PROTECTED]> wrote: > Yes, if you can check the Restfull book from Oreilly there is a good > example on using > a queue system to submit lengthy job. You submit the work and it gives > you back an url > that you can check 'repeatedly' to see the progr

TypeError - unpack non-sequence

2008-08-20 Thread Alfonso
Hey, Upgraded to latest svn trunk and now getting brand new error on every page/url path save for homepage. Not entirely sure how to track down the fault in configuration etc. Anyone help? Thankyou! Traceback: Environment: Request Method: GET Request URL: http://www.urbanebeauty.co.uk/beauty

RE: How to tiger mail

2008-08-20 Thread Emily Rodgers
This explained it all to me when I first started using cron. http://www.unixgeeks.org/security/newbie/unix/cron-1.html I also put this at the top of my crontab file to remind me what is what: #minute (0-59), # hour (0-23), # day of month (1-31), # month

Cryha - Toolkit for crypto on database

2008-08-20 Thread Kless
I'm proud to release version 0.9 of Cryha. Cryha is a Python toolkit for securing information into a data base; it lets hash passwords, and encrypt/decrypt personal information. It is ready for input of Unicode characters, and the schema is returned as Unicode. The text is stored according to th

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread Ivan Sagalaev
fabio natali wrote: >> import models > > I added the line > > import arteak.management.models It's not the same thing :-). This line won't load the name "models" into your local environment. If you want import from some path this should be: from arteak.management import models

how to populate data again after validation

2008-08-20 Thread Will Rocisky
I am not using builtin {{form}} to print form in template. I am using my own things. Now, after validation, when it shows error and comes back to form, all the data has disappeared. How can I keep data in fields even after validation. I am using render_to_response --~--~-~--~~---

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
Hello, How are you doing your validation? Is the form populating a model instance or doing something else? I would be helpful to see some of the function in your views file. Em > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Will Roc

Re: how to populate data again after validation

2008-08-20 Thread Will Rocisky
I am just using... model... class Contact(models.Model): Name = models.CharField(max_length=100) email = models.CharField(max_length=100) comments = models.TextField(blank=False) form... class ContactForm(ModelForm): Name = forms.CharField(label='Name') em

Re: advice on model design please

2008-08-20 Thread omat
I think the most natural fit for this is a database like the google appengine provides, not a relational one: Attach a review to an encounter whenever needed, and access it as an attribute of the encounter On Aug 19, 11:29 pm, omat <[EMAIL PROTECTED]> wrote: > Another approach can be to generat

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
Why are you using your own tags (just out of interest!)? It might be that you have just provided a cut down version of your code but from what I see, there are a few reasons why it may not be working properly. It looks like you are only passing the errors to the template, but not the other form

Re: psycopg2 error with syncdb (but not with sqlite)

2008-08-20 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 11:26 AM, Chris Moffitt <[EMAIL PROTECTED]> wrote: > I am seeing this error - http://dpaste.com/72596/ with django trunk (rev > 8445) when I try to run syncdb using psycopg2 but it works just fine if I > use sqlite. > > Basically I'm getting an error when doing the table in

Re: Changing the returned query set in the admin interface 'add' section depending on user permissions.

2008-08-20 Thread chewynougat
Thanks John, A combination of overriding django's built in functions and some jiggery pokery has got me most of the way there. I shall continue. On Aug 19, 2:23 pm, John M <[EMAIL PROTECTED]> wrote: > I suspect you'll have to intercept one of the many signals django has > in it's architecture.  

Re: how to populate data again after validation

2008-08-20 Thread Will Rocisky
actually I feel comfortable with custom html stuff.. thats why. ooopps yeah that was a typo since I typed everything while am on-the- go :) I am new to django so I don't really know what to do. could you please a little more? thanks On Aug 20, 4:55 pm, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Steve Holden
Marty Alchin wrote: > On Tue, Aug 19, 2008 at 10:59 PM, Mike Scott <[EMAIL PROTECTED]> wrote: >> So the fact that you say we have to force nearly 15000 people to >> change is a rather void argument. > > Thanks for correcting me. I haven't administered a Google Group > before, so I didn't realize

Forms tutorial

2008-08-20 Thread mccomas . chris
Anyone know of a good tutorial on using forms out there other than the documentation? I'm working on a project where individuals set goals for themselves, start date, end date, and steps goal. Then at the end of the goal period they can go back and add their actual number of steps during that peri

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
It is defintely worth using django where possible to do what it can (otherwise why use django!). The form stuff can do loads for you (validation for one). http://www.djangoproject.com/documentation/modelforms/ and http://www.djangoproject.com/documentation/models/model_forms/ Are really usefu

Re: another problem with M2M through intermediary

2008-08-20 Thread Russell Keith-Magee
On Wed, Aug 20, 2008 at 12:30 PM, akonsu <[EMAIL PROTECTED]> wrote: > > > consider the code below. it has two print statements at the end. their > output should be identical, but it is not. i think there is a bug. ... > print [p.x for p in Pair.objects.filter(y = y0, name = 'd')] > print y0.xs.fil

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread fabio natali
Hi Ivan! Ivan Sagalaev wrote: [...] > fabio natali wrote: > > I added the line > > > > import arteak.management.models > > It's not the same thing :-). This line won't load the name "models" into > your local environment. If you want import from some path this should be: > > from a

Re: Forms tutorial

2008-08-20 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-08-20, o godz. 13:44, przez [EMAIL PROTECTED] : > Anyone know of a good tutorial on using forms out there other than the > documentation? I'm working on a project where individuals set goals > for themselves, start date, end date, and steps goal. Then at the end >

Re: Browser timeout on long processes

2008-08-20 Thread Donn
> You could use Ajax for this. The client could periodically (say, every > second) send a request to the server asking if the calculation is > over. If the view is running a loop - how would you provide a variable to another view (that Ajax is calling) about the situation? Let's say a percentag

Re: Generic views list_detail

2008-08-20 Thread [EMAIL PROTECTED]
Thanks for the help Daniel. I think I'm making some progress now :-) --~--~-~--~~~---~--~~ 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 unsubsc

Re: translating app name

2008-08-20 Thread patrickk
how? On Aug 15, 10:43 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Aug 15, 10:17 am, patrickk <[EMAIL PROTECTED]> wrote: > > > is there any possibility to translate the name of an application for > > the admin-interface? it´s a bit disturbing if every models is > > translated to german where

GenericRelation setting and behaviour due to .clear() from __set__ in ReverseGenericRelatedObjectsDescriptor

2008-08-20 Thread Matt Hoskins
This is probably not a bug and just a consequence of what I'm trying to do (and probably not doing it in a very good way), so this is not me saying "something needs to be fixed or changed", just observing. I have a model class of "Document" which has a file field on it and is set up to have a Gen

Sorting problem with model having ForeignKey and ManyToManyField

2008-08-20 Thread laspal
hi, I am trying to sort my tables depending upon the header. Its working fine if my models does have any ForeignKey or ManyToManyField. but if its does sorting is not working. class Meeting(models.Model): created_by = models.ForeignKey(User, blank=True, null=True) meeting_desc = models.Ch

how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
Hi. I want to retreive the name of the currently logged in user on the OS on which my django app lives. Is this possible? The thing is. The app is to be used in a private environment, so all the users have to log on to the webserver first(this cant be changed). I would be nice to avoid having th

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Christian Joergensen
PeteDK wrote: > Hi. > > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? You are aware that on most systems, more than one user is allowed to login concurrently? [...] > i have looked into the python standard library, an

Re: TypeError - unpack non-sequence

2008-08-20 Thread Christian Joergensen
Alfonso wrote: > Upgraded to latest svn trunk and now getting brand new error on every > page/url path save for homepage. Not entirely sure how to track down > the fault in configuration etc. Anyone help? Thankyou! Please specify the exact svn revision. Also, what revision was the last where y

Re: Browser timeout on long processes

2008-08-20 Thread Julien Phalip
> If the view is running a loop -  how would you provide a variable to another > view (that Ajax is calling) about the situation? Let's say a percentage > complete -- I immediately think of a global variable, but am not sure how > this works in a multi-user web situation. You could use the cache

Inline Editing

2008-08-20 Thread peter_g
Hi! I use the SVN release and have a newbie problem in the admin area: I try to display fields for my DemoThing class/model, which I didn't model with a OneToOneField, but followed suggestions of a ForeignKey- approach. What do I have to change or add so that not only my "MainThing" gets displ

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread Ivan Sagalaev
fabio natali wrote: > That's right! So here comes my current urls.py: > > http://dpaste.com/72638/ > > then the traceback I get at http://localhost:8000/: > > http://dpaste.com/72639/ Oy! I've found it :-). It has nothing to do with model_view decorator or anything that we're talking here abo

Re: Sorting problem with model having ForeignKey and ManyToManyField

2008-08-20 Thread Malcolm Tredinnick
On Wed, 2008-08-20 at 05:55 -0700, laspal wrote: > hi, > I am trying to sort my tables depending upon the header. > Its working fine if my models does have any ForeignKey or > ManyToManyField. > but if its does sorting is not working. "Not working" could mean anything: the codes crashes, it runs

Re: translating app name

2008-08-20 Thread Rajesh Dhawan
On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote: > how? > You can see the following "blocktrans" fragment in django/contrib/ admin/templates/admin/index.html: {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %} -Rajesh D --~--~-~--~~~---~--~--

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
On 20 Aug., 15:14, Christian Joergensen <[EMAIL PROTECTED]> wrote: > PeteDK wrote: > > Hi. > > > I want to retreive the name of the currently logged in user on the OS > > on which my django app lives. > > Is this possible? > > You are aware that on most systems, more than one user is allowed to >

Re: Inline Editing

2008-08-20 Thread peter_g
...ah, sorry: I was not explicit enough. I'm looking for the correct way to display one entry block of "DemoThing" fields below "MainThing", without any notions of "#1" etc. And upon saving, Data are stored in both tables. So that it follows a OneToOne intention. --~--~-~--~~--

Re: translating app name

2008-08-20 Thread patrickk
how do I provide the translations ... ??? On Aug 20, 3:33 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote: > > > how? > > You can see the following "blocktrans" fragment in django/contrib/ > admin/templates/admin/index.html: > > > {% blocktr

Re: translating app name

2008-08-20 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh Dhawan: > On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote: >> how? >> > > You can see the following "blocktrans" fragment in django/contrib/ > admin/templates/admin/index.html: > > > {% blocktrans with app.name as name %}

Re: UnicodeDecodeError and mysql

2008-08-20 Thread Karen Tracey
On Wed, Aug 20, 2008 at 3:31 AM, anonymous <[EMAIL PROTECTED]> wrote: > > Hello all, > > I get the following error: > > In [2]: from myapp.models import * > > In [3]: Mymodel.objects.all() > Out[3]: > --- > UnicodeDecodeE

Re: translating app name

2008-08-20 Thread Malcolm Tredinnick
On Wed, 2008-08-20 at 15:53 +0200, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh > Dhawan: > > > On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote: > >> how? > >> > > > > You can see the following "blocktrans" fragment in django/contrib/ > > admin/

Redirecting to different page depending on user authentication

2008-08-20 Thread ad777
Hi there, I am new at django and I was wondering what is the best way of redirecting users to their own customized page after they get authenticated. I have extended the user model to include a unique user id for each user... is it somehow possible to use this? Thanks. --~--~-~--~~

Re: Browser timeout on long processes

2008-08-20 Thread Donn
On Wednesday, 20 August 2008 15:27:24 Julien Phalip wrote: > You could use the cache by setting a key that the other view can look > up. Right, thanks-- I'll go look it up. \d --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: translating app name

2008-08-20 Thread Rajesh Dhawan
On Aug 20, 9:49 am, patrickk <[EMAIL PROTECTED]> wrote: > how do I provide the translations ... ??? You will have to put the translations for your app names manually (as Malcolm confirms above, they won't be automatically extracted for you). But once you provide the app name translation, it wil

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread fabio natali
Dear Ivan, it sounds like we are closer to the solution, still not got it though. Ivan Sagalaev wrote: [...] > > http://dpaste.com/72639/ > > Oy! I've found it :-). It has nothing to do with model_view decorator or > anything that we're talking here about. It's in urls.py, on line 30: > >

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Guillaume Lederrey
2008/8/20 PeteDK <[EMAIL PROTECTED]>: > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? You should realize that there is no direct connection between the user logged in the webserver and the user connecting via HTTP to your

Re: Browser timeout on long processes

2008-08-20 Thread Guillaume Lederrey
2008/8/20 Julien Phalip <[EMAIL PROTECTED]>: > >> If the view is running a loop - how would you provide a variable to another >> view (that Ajax is calling) about the situation? Let's say a percentage >> complete -- I immediately think of a global variable, but am not sure how >> this works in a

Combining feeds

2008-08-20 Thread Eric Montgomery
I have a couple of feeds set up, one for a blog and one for a podcast. I want to create a combined feed that contains both of them without having to create the combined feed from scratch. Is there some way to combine two (or more) feed classes into one? --~--~-~--~~~-

Re: How to set queryset on the second step of a form wizard?

2008-08-20 Thread Rajesh Dhawan
Hi, > Depending on step 1's selection, I want to set the queryset of one of > the fields (a ModelChoiceField) > > e.g. > class StepOneForm(forms.Form): >channelType = > forms.ModelChoiceField(queryset=ChannelType.objects.all()) > class StepTwoForm(forms.Form): >channel = forms.ModelChoice

Re: Redirecting to different page depending on user authentication

2008-08-20 Thread Norman Harman
ad777 wrote: > Hi there, > > I am new at django and I was wondering what is the best way of > redirecting users to their own customized page after they get > authenticated. I have extended the user model to include a unique > user id for each user... is it somehow possible to use this? The user

formset and __init__

2008-08-20 Thread patrickk
my upload form looks like this: class UploadForm(forms.Form): def __init__(self, path_server, path, *args, **kwargs): self.path_server = path_server self.path = path super(UploadForm, self).__init__(*args, **kwargs) file = forms.FileField(label="File") use_im

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread Ivan Sagalaev
fabio natali wrote: > For the sake of clarity, my django project is named arteak, the models > we are using belong to an app called "management". Ah! Then there should of course be get_model('management', kwargs.pop('model')). I thought 'arteak' was the name of the app. This is why it returns N

Re: formset and __init__

2008-08-20 Thread Brian Rosner
On Wed, Aug 20, 2008 at 9:10 AM, patrickk <[EMAIL PROTECTED]> wrote: > > my upload form looks like this: > > class UploadForm(forms.Form): > >def __init__(self, path_server, path, *args, **kwargs): >self.path_server = path_server >self.path = path >super(UploadForm, sel

Re: psycopg2 error with syncdb (but not with sqlite)

2008-08-20 Thread Chris Moffitt
> > > I'm afraid I don't have any magic solutions. The best approach I can > suggest is to log the SQL that is being executed (either in the > Postgres query log or by putting in some debug statements into Django > to output connection.queries). Then narrow down the statement that is > causing prob

Re: formset and __init__

2008-08-20 Thread patrickk
ok. I know how to use BaseFormSet, but how do I override _construct_form resp. how do I pass the parameters. btw, it seems quite odd to override _construct_form when usually one has to override __init__. On Aug 20, 5:21 pm, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 9:10

Re: how to locate the OS currently logged in user??

2008-08-20 Thread Steve Holden
PeteDK wrote: > Hi. > > I want to retreive the name of the currently logged in user on the OS > on which my django app lives. > Is this possible? > > The thing is. The app is to be used in a private environment, so all > the users have to log on to the webserver first(this cant be changed). > I

Re: formset and __init__

2008-08-20 Thread Justin Fagnani
On Wed, Aug 20, 2008 at 8:34 AM, patrickk <[EMAIL PROTECTED]> wrote: > > ok. I know how to use BaseFormSet, but how do I override > _construct_form resp. how do I pass the parameters. btw, it seems > quite odd to override _construct_form when usually one has to override > __init__. __init_() simp

Re: formset and __init__

2008-08-20 Thread patrickk
thanks. and how do I pass these arguments within the view? UploadFormSet = formset_factory(form=UploadForm, formset=BaseUploadFormSet, extra=5, PATH_SERVER, path) ... or ... ??? On Aug 20, 5:52 pm, "Justin Fagnani" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 8:34 AM, patrickk <[EMAIL PR

RE: how to locate the OS currently logged in user??

2008-08-20 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > Sent: 20 August 2008 16:37 > To: django-users@googlegroups.com > Subject: Re: how to locate the OS currently logged in user?? > > > PeteDK wrote: > > Hi. > > > > I want

Re: formset and __init__

2008-08-20 Thread Brian Rosner
On Wed, Aug 20, 2008 at 9:34 AM, patrickk <[EMAIL PROTECTED]> wrote: > > ok. I know how to use BaseFormSet, but how do I override > _construct_form resp. how do I pass the parameters. btw, it seems > quite odd to override _construct_form when usually one has to override > __init__. > You need to

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread shadfc
With the code from the django-storages you referenced installed somewhere on PYTHONPATH, its as easy as setting a few things in your settings.py. You can see the docs for the code at http://code.larlet.fr/doc/django-s3-storage.html. Put the Required and Optional (if you want it, obviously) stuff

Re: formset and __init__

2008-08-20 Thread patrickk
one last question: how do I pass the paramaters from the view to the form? thanks, patrick On Aug 20, 5:56 pm, "Brian Rosner" <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20, 2008 at 9:34 AM, patrickk <[EMAIL PROTECTED]> wrote: > > > ok. I know how to use BaseFormSet, but how do I override > > _con

Re: Generic Views and ModelAdmin: too much code?

2008-08-20 Thread fabio natali
Ivan Sagalaev wrote: > fabio natali wrote: > > For the sake of clarity, my django project is named arteak, the models > > we are using belong to an app called "management". > > Ah! Then there should of course be get_model('management', > kwargs.pop('model')). I thought 'arteak' was the name of t

Re: formset and __init__

2008-08-20 Thread Justin Fagnani
On Wed, Aug 20, 2008 at 9:13 AM, patrickk <[EMAIL PROTECTED]> wrote: > > one last question: how do I pass the paramaters from the view to the > form? That's where you'll need to override __init__(). Like Brian said, at this point it's straightforward Python: pass your arguments into __init__(), s

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread Martin Diers
I would suspect that #2 is a mime-type problem, which is just an S3 property. Presuming the ImageField translates to a basic href into S3, the mime-type property of the file would need to be set or else it is going to come across as a Binary file. Some browsers are ok with this non-standa

Re: TypeError - unpack non-sequence

2008-08-20 Thread Alfonso
Hi Christan, Thanks for your reply - last version where everything worked was 8255, to be honest not 100% sure where to track the problem or whether it's 100% related to a svn update but I'm confident that the major change since last worked. Allan On Aug 20, 2:19 pm, Christian Joergensen <[EMAI

Re: how to locate the OS currently logged in user??

2008-08-20 Thread PeteDK
On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: django-users@googlegroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > > Sent: 20 August 2008 16:37 > > To: django-users@googlegroups.com > > Subject: Re: how to locate the OS

Re: How to set queryset on the second step of a form wizard?

2008-08-20 Thread rr
Thanks Rajesh But...it doesn't work It complains about form0 doesn't have cleaned_data. I guess form0 = super(MyFormWizard, self).get_form(0, data=data) only gives you a form with no data?! On Aug 20, 11:06 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > > Depending onstep1's selectio

problem with code.djangoproject.com/wiki/CookBookNewformsAdminAndUser

2008-08-20 Thread [EMAIL PROTECTED]
Hello, I'm trying to save user info automatically via admin interface. I found an example in code.djangoproject.com/wiki/ CookBookNewformsAdminAndUser and tested it out. It doesn't work. I got the following error: = TypeError at /admin/geo_note/post/add/ save_model() got multiple va

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread shadfc
I don't think its as simple as that. As I said, "no software I have will recognize them as valid images". This includes GIMP, Eye of Gnome, etc. All say that it is not a valid image or is corrupted. Jay On Aug 20, 12:41 pm, Martin Diers <[EMAIL PROTECTED]> wrote: > I would suspect that  #2 is

Re: mas sobre unicodedecode erros

2008-08-20 Thread Jeff Anderson
anonymous wrote: Hola, UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128) ¿Cómo podría resolverlo? La versión de django es svn trunk y la de Mysql es la 5. Tendría que ver tus modelos antes de ayudar con eso. ¿Has probado eso con algo

Memcached Help?

2008-08-20 Thread [EMAIL PROTECTED]
I just upgraded our memcached configuration to span across multiple servers instead of just on the web server as we were using previously. Our configuration went from this... CACHE_BACKEND = 'memcached://127.0.01:11211' To this... CACHE_BACKEND = 'memcached:// 10.0.0.1:11211;10.0.0.2:11211;10.0

Re: [MOVED] Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Tom Tobin
On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote: > Let me propose a stopgap: edit the django-users and django-developers > pages to state, in large bold text, what the purpose of each list is > (this is "edit welcome message" in Google Groups). Let's see if that > helps any,

Re: TypeError - unpack non-sequence

2008-08-20 Thread Alfonso
Interestingly changing /django/core/handlers.py line 77 from: request.path_info) to: request.path) Makes everything work again - hmm. No idea why though. Thanks Allan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Forms tutorial

2008-08-20 Thread mccomas . chris
Thnx. Something else, I've looked for, with little/no luck, is a form to edit information in the database. So that after a user initially inputs their goal, they can come back at the end of the time period and enter how many steps they actually took... Chris On Aug 20, 8:18 am, Jarek Zgoda <[EM

OT: Tool to test trackbacks

2008-08-20 Thread Florian Lindner
Hello, I've added a Trackback function to my blog (written in Django). Does anyone knows a tool (internet site) which allows to send a test trackback to my blog to test it (incl. auto discovery)? Thanks, Florian --~--~-~--~~~---~--~~ You received this message

Re: TypeError - unpack non-sequence

2008-08-20 Thread Malcolm Tredinnick
On Wed, 2008-08-20 at 11:46 -0700, Alfonso wrote: > Interestingly changing /django/core/handlers.py line 77 from: > > request.path_info) > > to: > > request.path) > > Makes everything work again - hmm. No idea why though. So what you're saying is that if you introduce old bugs back into Dja

Re: [MOVED] Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Tom Tobin
On Tue, Aug 19, 2008 at 11:16 AM, Tom Tobin <[EMAIL PROTECTED]> wrote: > As an aside (and perhaps this is a topic for another thread), I really > don't like that "meta" discussion gets shoved off into -users; > django-users is *far* too high-traffic, and I don't keep myself > subscribed to it becau

Re: translating app name

2008-08-20 Thread Rajesh Dhawan
Rajesh Dhawan wrote: > On Aug 20, 9:49�am, patrickk <[EMAIL PROTECTED]> wrote: > > how do I provide the translations ... ??? > > You will have to put the translations for your app names manually (as > Malcolm confirms above, they won't be automatically extracted for > you). But once you provide

Re: Django admin not showing date picker, etc.

2008-08-20 Thread efcjoe
I upgraded Django to 1.0-beta1 and it all seems to be working now. On Aug 16, 12:33 pm, efcjoe <[EMAIL PROTECTED]> wrote: > Hi > I'm having problems with djangoadmin. Trying to follow tutorial 2 > from the website. The icons next to date fields and the (Show) link on > collapsed fieldsets arenots

Re: Browser timeout on long processes

2008-08-20 Thread makebelieve
Sweet, thank you for all the help guys! I'll go through all this and figure out which best suits my needs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Django-survey fails with beta-1

2008-08-20 Thread rex
Running Debian Lenny, I uninstalled Django 0.96-2, installed Django beta 1, and downloaded Django-survey. The result of running it is below. Any help appreciated, thanks. -rex XXX:~/djcode/django-survey-read-only$ python examples/manage.py runserver Validating models... Unhandled exception in th

Re: [MOVED] Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Marty Alchin
On Wed, Aug 20, 2008 at 3:05 PM, Tom Tobin <[EMAIL PROTECTED]> wrote: > Renaming issues aside — am I the only one who is bothered by how many > messages-per-day -users gets vs. noticing "interesting" topics (where > "interesting" depends on the individual, of course)? django-users has > become su

Re: how to locate the OS currently logged in user??

2008-08-20 Thread James Matthews
I assume you are using linux. But in windows it's like this import os os.environ ['USERPROFILE'].split('\\')[-1] James On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote: > > > > On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > >

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread daonb
> Renaming issues aside — am I the only one who is bothered by how many > messages-per-day -users gets vs. noticing "interesting" topics (where > "interesting" depends on the individual, of course)?  django-users has > become such a catchall that I feel simply overwhelmed, and as I > stated, I ten

Re: Django-survey fails with beta-1

2008-08-20 Thread [EMAIL PROTECTED]
Just what it says... Core can't be on the ImageField is survey/ models.py anymore. Remove it, and you'll be fine. If you like, you can put it on another field in the model, just not an ImageField or FileField. --~--~-~--~~~---~--~~ You received this message because

DjangoCon Sao Paulo

2008-08-20 Thread Robert Lofthouse
Hi all, As this hasn't been widely advertised, I thought i'd mention it here. We will be providing a video conference service from Google Sao Paulo for anyone interested in going there to watch DjangoCon on both Saturday 6th September and Sunday 7th September. Everyone will meet at 11:00 local

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Malcolm Tredinnick
On Wed, 2008-08-20 at 12:55 -0700, daonb wrote: [...] > While a google group > is a good solution for the developers and evangelists it's not > targeted at providing help and support. Do you have any actual evidence to back that claim up? Because over the last three years, this group has done

Customizing newforms-admin -- collapsing apps?

2008-08-20 Thread [EMAIL PROTECTED]
Has anyone customized the admin (specifically with newforms-admin) to collapse/expand apps? I'd like to keep them out of the way as much as possible. I'm thinking some javascript that would expand/collapse them and store the preference in a cookie or the session. Is this a dumb idea? Has anyone do

Re: How to set queryset on the second step of a form wizard?

2008-08-20 Thread Rajesh Dhawan
On Aug 20, 12:57 pm, rr <[EMAIL PROTECTED]> wrote: > Thanks Rajesh > > But...it doesn't work > It complains about form0 doesn't have cleaned_data. I guess > > form0 = super(MyFormWizard, self).get_form(0, data=data) > > only gives you a form with no data?! Can you dpaste what you've so far? --

Re: Audit Trail

2008-08-20 Thread erikcw
Hi Sergio, I updated my code with your changes, and it still doesn't seem to be working. I don't have the history Manager in my model. Is it working for you? Are you using the latest trunk? Thanks! Erik On Aug 19, 12:15 pm, Sérgio Durand <[EMAIL PROTECTED]> wrote: > Hi people, > > Finally i'

Re: How to set queryset on the second step of a form wizard?

2008-08-20 Thread Rajesh Dhawan
On Aug 20, 12:57 pm, rr <[EMAIL PROTECTED]> wrote: > Thanks Rajesh > > But...it doesn't work > It complains about form0 doesn't have cleaned_data. I guess > > form0 = super(MyFormWizard, self).get_form(0, data=data) > > only gives you a form with no data?! I just dpasted something that will hel

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Norman Harman
Malcolm Tredinnick wrote: > Because over the last three years, this group has done an *excellent* > job at providing help and support. And, yes, I have the credibility to > make that claim: I have never posted a request for support on this list > and have posted the most number of mails to the lis

problems with request.user

2008-08-20 Thread Burr Settles
I recently came back to a project I put on hold for a couple weeks, and after updating the Django trunk, all my references to "request.user.id" are broken. Here is an example view for a rating widget: 1 @login_required 2 def rate(request, song_id): 3 song = get_object_or_404(Song, pk=song_id)

Re: OperationalError: (1054, "Unknown,column ' ...) for ForeignKey

2008-08-20 Thread Marc Vinyes
Thanks a lot for your help Malcom. Malcolm Tredinnick escribió, El 18/08/2008 0:03: > > On Sun, 2008-08-17 at 23:51 +0200, MarC wrote: >> Hi again, >> I'm still fighting against it and reading related posts in the mailing list >> archive with no >> success... Now I just found it won't work eit

Re: problem with code.djangoproject.com/wiki/CookBookNewformsAdminAndUser

2008-08-20 Thread brentp
On Aug 20, 10:27 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to save user info automatically via admin interface. I > found an example in code.djangoproject.com/wiki/ > CookBookNewformsAdminAndUser and tested it out. It doesn't work. I got > the following error: > >

  1   2   >