Re: how to keep the FileField being unmodified ?

2009-11-07 Thread Bayuadji
Hi, The easy way is to check in backend, if the filefield empty, don't modified the value. -djibon- On Sat, Nov 7, 2009 at 9:54 PM, hao he wrote: > I display a ModelForm. > if user edit the field, ModelForm.save() will save the edited field,and the > non-edited field keep

Re: Display a view of a single record?

2009-11-07 Thread derek
I am not sure what you mean by "on change list"? The usual way that records get displayed is in a tabular list format. This is suitable when a record only has a few fields; some tables however have many fields in them and so would need to be displayed "in full" just by themselves. I am looking

Re: Cucumber for Python?

2009-11-07 Thread Ted Nyman
You might also want to take a look at pyccuracy, if you haven't already. It provides similar BDD-style tests, and resembles Cucumber in a number of ways. It's actually a Pythonic implementation of "Accuracy," which is designed for BDD-style testing in C#, but don't let that deter you :)

Cucumber for Python?

2009-11-07 Thread Phlip
django-users group: At my last gig I grooved on Cucumber to write customer tests, without all the hooey required in certain other systems. Here's a sample from their website: Feature: Search courses In order to ensure better utilization of courses Potential students should be able to

Re: language switching in admin

2009-11-07 Thread Kenneth Gonsalves
On Sunday 08 Nov 2009 9:47:53 am Kenneth Gonsalves wrote: > > And letting the users to change their language modifiying the main > > admin template and giving them a change language form? > > > > well I added the change language form to the main base.html form in admin > (by overriding it),

Re: language switching in admin

2009-11-07 Thread Kenneth Gonsalves
On Saturday 07 Nov 2009 3:19:54 pm Antoni Aloy wrote: > > hi, > > > > I have an app in two languages. Until now I was asking the users to > > change the language in their browser. I have now implemented setlang in > > the web interface, so that they can view in the language of their choice > > by

how to keep the FileField being unmodified ?

2009-11-07 Thread hao he
I display a ModelForm. if user edit the field, ModelForm.save() will save the edited field,and the non-edited field keep its origin value. but, FileField/ImageField do not act as that. if users have not modified the FieldField, it will be empty. how to implement that? thanks.

Re: Apache's 500 error overriding Django 500 view

2009-11-07 Thread Bayuadji
Hi, I've experienced when there's an error in our templatecontext processing, so instead our 500.html our application using apache 500.html perhaps you should check your log, to see there's an exception. -djibon- On Fri, Nov 6, 2009 at 4:05 PM, Maksymus007 wrote: > >

need foreign key help quick

2009-11-07 Thread Bobby Roberts
Hi. I have never used foreign keys I need to start and I need help. I'm running python2.5 and django1.1. I have an installation of Satchmo running fine; however, I need to modify the Product table. I need to tie fields from the Product module to fields in another module outside of

Re: No module named django

2009-11-07 Thread Zeynel
Great! Thank you very much. I downloaded django-1.1.1 again and untarred again. django directory is in C:\Django-1.1.1\Django-1.1.1\django I don't know why I got 2 Django-1.1.1 folders but installation worked this time. There are many __init.py__ files, they are in build directory. I did

Re: Helsinki area djangonauts: Let's meet up

2009-11-07 Thread Jukka Välimaa
Good to have people signing up. There'll also be some mates of mine who're coming, and likely there will be people who don't participate in this thread. We should have a decent number of people there. I don't know about the status of Django in Finnish startups. Maybe I'll know more after the

Re: No module named django

2009-11-07 Thread Karen Tracey
On Sat, Nov 7, 2009 at 4:15 PM, Zeynel wrote: > > Hello, > > I know this has been asked here a million times before, but I couldn't > find the right answer. It seems something to do with PYTHONPATH. Can > anyone help me figure this out. This is the error message on the >

No module named django

2009-11-07 Thread Zeynel
Hello, I know this has been asked here a million times before, but I couldn't find the right answer. It seems something to do with PYTHONPATH. Can anyone help me figure this out. This is the error message on the windows shell: C:\Django-1.1.1>setup.py install Traceback (most recent call last):

ANN: Django-RefDB -- reference manager

2009-11-07 Thread Torsten Bronger
Hallöchen! Django-RefDB is a references manager, i.e. it helps you organise your papers and books, including PDF upload/download/OCR. Technically, it is a Django frontend for a RefDB server. You can install it e.g. in your research institute so that anybody has access to all papers of everyone.

Re: A simple database project

2009-11-07 Thread Zeynel
Thanks. I started to study. On Nov 7, 12:23 pm, Tomasz Zieliński wrote: > On 7 Lis, 15:58, Zeynel wrote: > > > Hello, > > > I am planning to build a demo prototype for a who-knows-who database > > for the legal profession. Database will

Re: DRY: max length not taken from Model.field when using ModelForm

2009-11-07 Thread Tomasz Zieliński
On 7 Lis, 18:25, fest wrote: > From my experience, max_length is not taken into account when you > override model field in form field. This is (and was, when I first time faced it) quite obvious for me . If ModelForm was modifying overridden fields, the whole concept of

Re: token.split_contents() behavior

2009-11-07 Thread Tomasz Zieliński
On 7 Lis, 03:28, Tom von Schwerdtner wrote: > > Is that the intended behavior? It seems a bit wonky... > http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-the-compilation-function """ if not (format_string[0] == format_string[-1] and format_string[0]

Re: Feedback on Django1.1.1

2009-11-07 Thread Tomasz Zieliński
On 7 Lis, 09:03, Good Z wrote: > > Any feedback on 1.1 for production software is appreciated. > I recently migrated quite big live service from 1.0.2 to 1.1.1 and I didn't observe even single migration-related problem. It was probably the smoothest upgrade I had in a few

Re: DRY: max length not taken from Model.field when using ModelForm

2009-11-07 Thread fest
>From my experience, max_length is not taken into account when you override model field in form field. In this case I don't know of any trivial way to read other field properties from model description. Regards, Reinis On 20 okt., 17:54, Karen Tracey wrote: > On Thu, Oct

Re: A simple database project

2009-11-07 Thread Tomasz Zieliński
On 7 Lis, 15:58, Zeynel wrote: > Hello, > > I am planning to build a demo prototype for a who-knows-who database > for the legal profession. Database will consist of lawyer name, school > and year graduated. Searching by lawyer name will return other lawyers > graduated

A simple database project

2009-11-07 Thread Zeynel
Hello, I am planning to build a demo prototype for a who-knows-who database for the legal profession. Database will consist of lawyer name, school and year graduated. Searching by lawyer name will return other lawyers graduated from same law school the same year. Can I build this in Django? How

Re: Feedback on Django1.1.1

2009-11-07 Thread Justin Myers
1.1.1 remedies a security issue in 1.1 (http://www.djangoproject.com/ weblog/2009/oct/09/security/), so while technically the two versions are different, there's no reason to run any 1.1 release other than 1.1.1. As for whether 1.0 (which was patched at the same time to 1.0.4) or 1.1 is better,

Re: Login Session

2009-11-07 Thread Rama Vadakattu
You can simple use inbuilt user authentication provided by django. What problem are you facing with it? Any way if you are interested in building your own authentication engine you need to do the following: you can do this in several way one way is 1) Store cookie in user browser (you can store

Re: Helsinki area djangonauts: Let's meet up

2009-11-07 Thread Marek Pietrucha
Hey Friends! I would love to attend :) I just don't know if I can make it to Kaisla. I'm and exchange student in Turku University of Applied Sciences. Is the place of the meetup certain? Could you guys consider moving it to the oldest city of great Finland - Turku ? Best Regards! MP On Nov 6,

Re: Mod_wsgi from source + centos 4.8 compile issue

2009-11-07 Thread Graham Dumpleton
On Nov 6, 6:13 pm, Sam Walters wrote: > Hi > I am trying to get mod_wsgi installed on a production server. > Apache: 1.3.37 > Kernel: 2.6.17.13-vs2.0.2.1vs-1.00 > Os: CentOS 4.8 > > Following instructions > from:http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide

Re: language switching in admin

2009-11-07 Thread Frans
I use the breadcrumbs block in the admin interface to add a link to a view using : (in template) Fr| Nl| En| >日本語 (for each language, in every page, impractical if you have many, but you can replace that by a special page of links if that's the case (like google's language switch page) )

Re: Keeping state in the FormWizard: instance attributes considered harmful?

2009-11-07 Thread Mark L.
On Nov 6, 5:36 pm, txranger wrote: > yes this is very similiar to what I am working on right now. Being a > newbie it seems much harder than it should be. I ended up setting a > state variable within self.extra_context. It is set by overriding the > process_step function in

Re: language switching in admin

2009-11-07 Thread Antoni Aloy
2009/11/7 Kenneth Gonsalves : > > hi, > > I have an app in two languages. Until now I was asking the users to change the > language in their browser. I have now implemented setlang in the web > interface, so that they can view in the language of their choice by choosing > the

Feedback on Django1.1.1

2009-11-07 Thread Good Z
Dear All, We want upgrade our software from Django0.95 to Django1.1. The latest available release is Django 1.1.1. Have few queries: - What is difference between Django 1.1 and Django1.1.1 - I could not find link to download Django1.1 unless its same as that of Django1.1.1 - Which one is