PIL failed in virtualenv?

2010-08-03 Thread kostia
Good day, I created via ssh my virtualenv ENV and installed over there Django, its modules like captcha, modeltranslation and thumbs. But I have a trouble with Imaging-1.1.7! See below. My Django project is called "projector". When running the server I do: (ENV)kos...@au-kbc:~/ENV/projector$ pyt

Re: Free Django Hosting

2010-08-03 Thread kostia
I'm looking for private person from some government institution/ university or with his own hosting server. The web site will be launched for a couple of months. Than I will find payed hosting provider and now I just want the site to be published. -- You received this message because you are subs

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-03 Thread hcarvalhoalves
Now that someone else mentioned, yes, I believe we have the same problem. I run Django thru FastCGI to a Cherokee Web Server, and occasionally, uploads fail to continue (the traceback shows that the code hanged at consuming the input stream, then the connection got reset by the client's browser, r

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I found the problem. The object_id needs to be a string! So the following works like a charm: from wolkdata.database.models import * from django.contrib import admin class SettingsAdmin(admin.ModelAdmin): def changelist_view(self, request, extra_context=None): object_id = str(Settin

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I can't believe I missed the "self" problem, but when I fixed that I still received another strange error: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwarg

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Eugene Wee
Hi, On Wed, Aug 4, 2010 at 3:21 AM, didier rano wrote: > But, not all good developers > are able to use efficiently dynamic languages. I suspect that there will always be a programming language for which there exists a good developer who is currently unable to use it efficiently. Programming lan

Re: Django IDE

2010-08-03 Thread Alexander Jeliuc
gvim, emacs, eclipse, eric On Wed, Aug 4, 2010 at 6:50 AM, Nick Arnett wrote: > > > On Sun, Jul 18, 2010 at 10:19 AM, Biju Varghese wrote: > >> Eclipse is the best IDE for python and django. >> >> > I don't know if it is actually the best, but I'm happy with it. > > Nick > > -- > You received t

Re: Django IDE

2010-08-03 Thread Nick Arnett
On Sun, Jul 18, 2010 at 10:19 AM, Biju Varghese wrote: > Eclipse is the best IDE for python and django. > > I don't know if it is actually the best, but I'm happy with it. Nick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Django IDE

2010-08-03 Thread carlos
I use Gedit, but when I get bored using the same vim cheer On Sun, Jul 18, 2010 at 5:39 PM, Fabian Ezequiel Gallina wrote: > 2010/7/18 Roald de Vries : > > > > Comparison of VIM and Emacs (what I've read): > > - Emacs is monolithic (does everything, for example includes shell), VIM > is > > uni

Re: Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread natebeacham
Try not passing "self" to your super call. That parameter should be handled internally. ie: return super(SettingsAdmin, self).change_view(request, object_id, extra_context=None) On Aug 3, 8:26 pm, Erisa wrote: > I have a Settings model that contains settings for my application. > > class Setting

Re: how to make readonly in change but editable in add?

2010-08-03 Thread shmengie
I cobbled these two classes together which work very nicely for me, wish they could make into django. Drop these two classes into a util.py and import them instead of Form or ModelForm. When you want your form readonly instantiate it with "form=MyForm(record, readonly=True)" class roForm(forms.Fo

Re: help

2010-08-03 Thread André A . Santos
thx On Tue, Aug 3, 2010 at 12:07 PM, Franklin Einspruch < franklin.einspr...@gmail.com> wrote: > Here's more detail: > > http://docs.python.org/release/2.5.2/tut/tut.html > > Enjoy! It's a great language. > > Franklin > > On Tue, Aug 3, 2010 at 11:03 AM, André A. Santos > wrote: > > and how's yo

Re: Free Django Hosting

2010-08-03 Thread lzzzing
Google App Engine. On Aug 4, 12:57 am, kostia wrote: > I'm looking for a free Django hosting. Please, write me, if you can > help. > > The web site will look like this onehttp://kostia.pythonic.nl -- You received this message because you are subscribed to the Google Groups "Django users" group

Strange error overriding changelist_view in ModelAdmin

2010-08-03 Thread Erisa
I have a Settings model that contains settings for my application. class Settings(models.Model): database_name = models.CharField(max_length=50) current_campaign = models.ForeignKey('Campaign') It only contains one object. I would like to be able to use the admin pages to edit it. Since

Re: Announces django-guardian: per object permissions for Django 1.2

2010-08-03 Thread Russell Keith-Magee
On Wed, Aug 4, 2010 at 7:20 AM, lukaszb wrote: > Hi all, > > I'd like to announce django-guardian - very basic yet usable per > object permissions > implementation for Django 1.2, using new authorization backend > facilities. > > It was created during 2 days sprint, code have been released and may

Announces django-guardian: per object permissions for Django 1.2

2010-08-03 Thread lukaszb
Hi all, I'd like to announce django-guardian - very basic yet usable per object permissions implementation for Django 1.2, using new authorization backend facilities. It was created during 2 days sprint, code have been released and may be found at http://github.com/lukaszb/django-guardian/. Docum

Re: Get request path without having a request object

2010-08-03 Thread cootetom
I have finished and made this app available via it's own web site. Take a look http://poedit.tomcoote.co.uk/ On Aug 1, 1:18 pm, cootetom wrote: > I have found some code that can get the request object. > > f = sys._getframe() > while f: >     request = f.f_locals.get('request') >     if isinst

Saving formsets with multiple databases

2010-08-03 Thread Melanie
I am developing a formset for an application which uses multiple databases. On load of the formset, I am able to utilize: model.objects.using(database).get(id) to get an instance of the object from the active database. However, when the formset is submitted, I generate a new formset from the da

Re: modify default admin action - delete_selected

2010-08-03 Thread Steve Holden
On 8/3/2010 5:06 PM, bagheera wrote: > > Lets say i have a Person model and a book model. Each Person can have > many books. Person model have PositiveIntegerField that stores, how many > books that person has. If new book is added, respective counter is > incremented, now i want to modify default

modify default admin action - delete_selected

2010-08-03 Thread bagheera
Lets say i have a Person model and a book model. Each Person can have many books. Person model have PositiveIntegerField that stores, how many books that person has. If new book is added, respective counter is incremented, now i want to modify default admin action - delete_selected, so it w

Re: uncomplete internationalization of 'auth' in admin panel

2010-08-03 Thread bagheera
Dnia 29-07-2010 o 23:17:13 Dennis Kaarsemaker napisał(a): On do, 2010-07-29 at 13:43 -0700, bagheera wrote: Internationalization of 'auth' app in django 1.2 isn't complete. In user edit form there are user permissions displayed in two windows, like "auth | permission | Can add permission", e

django sites framework

2010-08-03 Thread commonzenpython
hey guys, i have been reading about django sites, but i still dont understand how to implement it to manage multiple sites using the admin, i have two domains, ashtangayogavideo.com, and abilityexplosion.org, im using mod_wsgi in a django project inside ashtangayogavideo.com, how can i link a model

Re: TypeError: decoding Unicode is not supported

2010-08-03 Thread Alec Shaner
unicode gives me nightmares. Taking django out of the picture for a moment: >>> unicode('foo', 'utf-8') u'foo' >>> unicode(u'foo', 'utf-8') Traceback (most recent call last): File "", line 1, in TypeError: decoding Unicode is not supported So I would assume when you run it inside django you're

TypeError: decoding Unicode is not supported

2010-08-03 Thread sohesado
Hi I'm currently developing a django project and i've encountered a problem regarding Unicode string manipulation. There is a backend python module in my project that perform's mainly shutil (shell utilities) tasks. I get an TypeError: "decoding Unicode is not supported" exception while running

error 404

2010-08-03 Thread yalda.nasirian
hi i don't know why i cant see generic view , please help me . i have this error Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/ Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 1. ^polls/$ 2. ^polls/(?P\d+)/

Free Django Hosting

2010-08-03 Thread kostia
I'm looking for a free Django hosting. Please, write me, if you can help. The web site will look like this one http://kostia.pythonic.nl -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegro

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread didier rano
Thanks Alexandre :) I knew that my post could be attacked easily. It is just an opinion. I love python. I'd like to work only in python. But, not all good developers are able to use efficiently dynamic languages. And, sometimes, to choose an open source framework could be more problematic than pr

Re: Python question about subprocess.Popen() and stdout

2010-08-03 Thread Joshua Russo
On Mon, Aug 2, 2010 at 6:41 PM, Joshua Russo wrote: > I'm creating a wxPython application that the client can run to make > sure the installation stack is functioning properly. I want to include > the unit test processing in this application but I've run into some > difficulties. An additional wr

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread Alec Shaner
Based on what you described as your intent, have you looked at ModelChoiceField? You could create a new table, e.g. ProductOptions, that has a foreign key to your Product table. In your form class you can then pass a queryset into the ModelChoiceField that selects only the options for that product

how to make readonly in change but editable in add?

2010-08-03 Thread snipinben
I was wondering how to make a field readonly when you click on it or want to change the record. and i have done that with the readonly_feilds method. but that makes it to where you cant add information to that feild when you add a new record. is there something i can use where you are not able to

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Alexandre González
Excuse if my answer was hard. I didn't know that you were the author, but I think that compare the Open Source community with things as Apple consumers is a stupid point of view IMHO. Some of the points are correct, but not all, I agree with James Benett arguments. Your post is an opinion, and so

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread shofty
cheers for reading Steve. I've been through the documentation again and it definitely states that the widget wants an iterable. so i dont think im going to be able to do what i wanted to do, need another approach. Matt On 3 Aug, 16:15, Steve Holden wrote: > On 8/3/2010 11:12 AM, shofty wrote: >

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Ramdas S
On Tue, Aug 3, 2010 at 10:48 PM, James Bennett wrote: > On Tue, Aug 3, 2010 at 9:19 AM, didier rano wrote: > > What do you think about this post > > ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay > > I think... > > * A community, but it is not so easy to find developers compared to Java

Re: Need help setting up dynamic options for select (drop down) box of form.

2010-08-03 Thread Chris Seberino
On Aug 3, 3:29 am, Daniel Roseman wrote: > Anyway, I suspect the cause is setting the widget. I found my bug. To convert a textbox to a drop down box, it isn't enough to reset the widget and choices settings. It is also necessary of course to reset the field type from a CharField to a Choices

Re: renaming database constraint names

2010-08-03 Thread Ian
On Aug 2, 8:42 am, Shirley Cohen wrote: > Hi, > > I was wondering if anyone has ever tried to rename the database > constraint names that are created by Django? In particular, I'm > working with Oracle and would like to rename all the SYS_C* constraint > names in my Django schema to something more

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Masklinn
On 2010-08-03, at 19:18 , James Bennett wrote: > > * With dynamic languages, we cannot use powerful IDE as Visual Studio. > It is not a problem for me, but some developers like completion, > compilation… > > Eclipse/PyDev will do this. Komodo will do this. Aptana will do this. > Visual Studio wil

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread James Bennett
On Tue, Aug 3, 2010 at 9:19 AM, didier rano wrote: > What do you think about this post > ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay I think... * A community, but it is not so easy to find developers compared to Java or .NET True, but finding *good* developers in any language, which

Re: django.contrib.auth

2010-08-03 Thread Eric Chamberlain
On Aug 3, 2010, at 6:45 AM, Seaky wrote: > Hi, > > I want to modify type of hash by default in auth (sha1 -> md5) and > change name of the table/model. > It's possible ? > It's possible, but modifying django.contrib.auth can be a pain, other apps rely on it a lot. It sounds like what you rea

Re: root_path in admin sites is None

2010-08-03 Thread Filip Gruszczyński
I have set: admin.site.root = '' in settings.py and this helped. I can't right now check publishing server (I am sick at home), but I know, that we are using mod_wsgi and I am pretty sure, that we use Django 1.2 (at least I have username with a dot there, which wasn't possible earlier ;-)). Is t

Re: convert mysql database tables into classes of model.py file

2010-08-03 Thread Steve Holden
On 8/3/2010 12:53 PM, Jagdeep Singh Malhi wrote: > I have the backup of mysql database with tables and fields data. > I want to use these tables and fields to create the classes in > model.py file for django. > > Is it possible? > Is any tool and script for convert the database tables with fields

convert mysql database tables into classes of model.py file

2010-08-03 Thread Jagdeep Singh Malhi
I have the backup of mysql database with tables and fields data. I want to use these tables and fields to create the classes in model.py file for django. Is it possible? Is any tool and script for convert the database tables with fields into a modey.py to create class? Thanks -- You received t

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Masklinn
On 2010-08-03, at 18:31 , Joshua D. Drake wrote: > On Tue, 2010-08-03 at 10:28 -0400, Steve Holden wrote: >> On 8/3/2010 10:19 AM, didier rano wrote: >>> What do you think about this post >>> ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay >> >> I'd say the whole thing looks like flame bai

generic view error help

2010-08-03 Thread yalda.nasirian
hi every body i did all of steps of djangoproject.com but in last step when i want to see my generic view i have error this is my project link : http://www.4shared.com/file/fOrKUIyM/mysite.html please help me but don't forget to change template dir in your system . tanx -- You received this me

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Joshua D. Drake
On Tue, 2010-08-03 at 10:28 -0400, Steve Holden wrote: > On 8/3/2010 10:19 AM, didier rano wrote: > > What do you think about this post > > ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay > > I'd say the whole thing looks like flame bait. When it isn't wrong it's > obvious, and when it isn

Re: Django error can't adapt

2010-08-03 Thread Daniel França
anyone? 2010/8/1 Daniel França : > Hi, I'm not running on Apache, just trying to run in the django > standalone server > > On Sun, Aug 1, 2010 at 5:47 AM, Antoni Aloy wrote: >> 2010/8/1 Daniel França : >>> Hi, >>> I just migrated from Linux to Mac OS, and I'm getting an error message >>> when I t

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Masklinn
On 2010-08-03, at 17:37 , didier rano wrote: > I am very surprise about these aggressive answers. None of the answers are aggressive. You asked for opinions on the post you linked, they were provided and pretty dispassionate as far as I can tell. > I am a Python, Java, Ruby, .NET, C developer. Th

change SelectDateWidget() display format

2010-08-03 Thread pengbo xue
i use function SelectDateWidget() in form,it display date format on web page by moth-date-year,what can i do for it display date format by year-month-date? -- cowboy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread didier rano
I am very surprise about these aggressive answers. Ok, my english is very bad ! I know. I'd like to be better. But I'd like to share my opinion with Django community. I am a Python, Java, Ruby, .NET, C developer. There are some advantages to use each of them, but not only advantages with Python an

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread Steve Holden
On 8/3/2010 11:12 AM, shofty wrote: > Steve, > > the choices are different for each product in the shop. > some choices are clothing sizes, some physical sizes etc. > > So with that in mind i could go with a bunch of choices hooked up to a > choices field if i can tell the form which choice field

Re: help

2010-08-03 Thread Steve Holden
On 8/3/2010 11:03 AM, André A. Santos wrote: > and how's your point of you abuot my questions in more detail? > > On Tue, Aug 3, 2010 at 12:00 PM, Maksymus007 > wrote: > > 1 - no > 2 - no > 3 - no > > On Tue, Aug 3, 2010 at 4:57 PM, André Asantos >

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread shofty
Steve, the choices are different for each product in the shop. some choices are clothing sizes, some physical sizes etc. So with that in mind i could go with a bunch of choices hooked up to a choices field if i can tell the form which choice field to use based around the product attribute stored.

Re: New tutorial added to Django by Example

2010-08-03 Thread Rainy
On Aug 3, 2:25 am, Nikhil Somaru wrote: > How to set up a virtual python/django installation > There is already a tutorial for this here: http://codytaylor.org/2010/07/django-on-dreamhost-virtual-python-install.html -- You received this message because you are subscribed to the Google Groups

Re: Flexigrid

2010-08-03 Thread Gonzalo Delgado
El 02/08/10 12:45, Ramesh escribió: > It looks like you are just showing me how to search on google which I > already did but couldn't find the solution I was looking for. > > I am still looking forward for the help on flexigrid for my project. I > really appreciate your help. > The first resul

Re: help

2010-08-03 Thread Franklin Einspruch
Here's more detail: http://docs.python.org/release/2.5.2/tut/tut.html Enjoy! It's a great language. Franklin On Tue, Aug 3, 2010 at 11:03 AM, André A. Santos wrote: > and how's your point of you abuot my questions in more detail? > > On Tue, Aug 3, 2010 at 12:00 PM, Maksymus007 wrote: >> >> 1

Re: New tutorial added to Django by Example

2010-08-03 Thread Rainy
On Aug 3, 3:27 am, Mario wrote: > Thank you for sharing the application. I would like to make the start > day of the week Sunday instead of Monday. > > _Mario All you have to do use calendar module's method to set starting day of week: calendar.setfirstweekday(calendar.SUNDAY) (and update tem

Re: help

2010-08-03 Thread André A . Santos
and how's your point of you abuot my questions in more detail? On Tue, Aug 3, 2010 at 12:00 PM, Maksymus007 wrote: > 1 - no > 2 - no > 3 - no > > On Tue, Aug 3, 2010 at 4:57 PM, André Asantos > wrote: > > I am totaly new to Python world... > > > > I would like to konw: > > > > 1- py is Python c

Re: help

2010-08-03 Thread Maksymus007
1 - no 2 - no 3 - no On Tue, Aug 3, 2010 at 4:57 PM, André Asantos wrote: > I am totaly new to Python world... > > I would like to konw: > > 1- py is Python class extension? > 2-does django have any similar .jsp GUI? or is only use HTML for GUI? > 3-is netbeans IDE the best IDE? > > -- > You rece

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Alexandre González
I think that this argument is stupid: "Be part of a small and smart community. Finally, we think to be special ;) “Think different” then I have an iPhone, MacBook Air… " Ok, be part of a community is the best, but compare the FLOSS community with the "Think different"... On Tue, Aug 3, 2010 at 16

help

2010-08-03 Thread André Asantos
I am totaly new to Python world... I would like to konw: 1- py is Python class extension? 2-does django have any similar .jsp GUI? or is only use HTML for GUI? 3-is netbeans IDE the best IDE? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: django.contrib.auth

2010-08-03 Thread Seaky
Thanks, I know it but I would this it is possible to do it and how? je suis au courant mais je voudrais juste savoir si il est possible de le faire, si oui comment? On 3 août, 16:45, "euan.godd...@googlemail.com" wrote: > Why would you want to do such a thing? md5 is very week compared to > sha1

Re: django.contrib.auth

2010-08-03 Thread euan.godd...@googlemail.com
Why would you want to do such a thing? md5 is very week compared to sha1 and has known vulnerabilities, e.g. http://searchsecurity.techtarget.com/news/article/0,289142,sid14_gci1430587,00.html On Aug 3, 2:45 pm, Seaky wrote: > Hi, > > I want to modify type of hash by default in auth (sha1 -> md5)

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Steve Holden
On 8/3/2010 10:19 AM, didier rano wrote: > What do you think about this post > ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay I'd say the whole thing looks like flame bait. When it isn't wrong it's obvious, and when it isn't obvious it's wrong. regards Steve -- You received this messa

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Javier Guerra Giraldez
On Tue, Aug 3, 2010 at 9:23 AM, Masklinn wrote: > On 2010-08-03, at 16:19 , didier rano wrote: >> What do you think about this post ? >> http://blog.skeedy.com/django-rails-but-a-cost-to-pay > That it's empty and useless, and solely written for getting hits. add to that terrible grammar and disco

Good practices for storing "constant" values?

2010-08-03 Thread derek
I am currently using two files - constants.py and choices.py to store all the "fixed" (and also-to-be-translated) data that I use in my app. I am now wondering: (a) is this a good/worthwhile/common thing to do? (b) should I be doing the same for other fixed strings, even if they do not need to b

Re: is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread Steve Holden
On 8/3/2010 10:05 AM, shofty wrote: > consider the following code as part of an online shop (im sort of > working through jim mcgaws ecommerce book). > in the view > > if product.has_options: > form = ProductSizeOptionsAddToCartForm(request=request, > label_suffix=':') > else: > form = Pro

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Masklinn
On 2010-08-03, at 16:19 , didier rano wrote: > What do you think about this post ? > http://blog.skeedy.com/django-rails-but-a-cost-to-pay That it's empty and useless, and solely written for getting hits. -- You received this message because you are subscribed to the Google Groups "Django users"

Django, Rails but a cost to pay ?

2010-08-03 Thread didier rano
What do you think about this post ? http://blog.skeedy.com/django-rails-but-a-cost-to-pay -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

is it possible to pass a dynamic list of choices to a select widget?

2010-08-03 Thread shofty
consider the following code as part of an online shop (im sort of working through jim mcgaws ecommerce book). in the view if product.has_options: form = ProductSizeOptionsAddToCartForm(request=request, label_suffix=':') else: form = ProductAddToCartForm(request=request, label_suffix=':')

django.contrib.auth

2010-08-03 Thread Seaky
Hi, I want to modify type of hash by default in auth (sha1 -> md5) and change name of the table/model. It's possible ? Thanks. Seak -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Re: Large static files served through django come out ~1kb short

2010-08-03 Thread Tom
This was a problem with my antivirus! Turning it off fixed the problem. If anyone runs into this problem again the antivirus that caused it is ESET NOD32 4.0.474. Tom On Aug 2, 5:36 pm, ashwoods wrote: > try looking if there is something like that in the bugtracker, and if > not, you can help a

Re: passing a keyword argument from form to a field in that form

2010-08-03 Thread Jim
On Aug 3, 3:59 am, Daniel Roseman wrote: > This code looks absolutely right. Boy there's a phrase I don't hear often! > What do you mean by 'setting > self.fields didn't work'? How did it not work? What didn't happen that > you expected to happen? Did you get errors? If I put in a statement log

Re: Which program will run when we execute "djano-admin.py startproject mysite" command?

2010-08-03 Thread DZ
win7 can do 2010/8/3 Steve Holden > Balu: > > This is not a Windows 7-specific issue. There are obviously differences > between your Windows 7 and Windows XP environments that are cuasing you > to see this message. > > As has already been pointed out, you need to make sure that the > directory c

problem using mod_wsgi with djapian

2010-08-03 Thread watad
dear all i am using django with apache2 and mod_wsgi with djapian as my search engine i have noticed a major issue: when i use djapian im stuck in a deadlock when i call any Xapian method or function (this is explained in this ticket http://trac.xapian.org/ticket/185) i used the solution posted t

problem using mod_wsgi with djapian

2010-08-03 Thread watad
dear all i am using django with apache2 and mod_wsgi with djapian as my search engine i have noticed a major issue: when i use djapian im stuck in a deadlock when i call any Xapian method or function (this is explained in this ticket http://trac.xapian.org/ticket/185) i used the solution posted t

Re: Need help setting up dynamic options for select (drop down) box of form.

2010-08-03 Thread Daniel Roseman
On Aug 3, 5:04 am, Chris Seberino wrote: > I'm trying to make the options of a particular drop down box be > determined at runtime. > > I added a __init__ constructor to my django.forms.Form subclass as > follows... > >         def __init__(self, >                            data                =

Re: passing a keyword argument from form to a field in that form

2010-08-03 Thread Daniel Roseman
On Aug 2, 11:06 pm, Jim wrote: > Hello, > > I have a custom field whose behavior depends on a parameter show_all. > (It makes the field pull from the database for display only those > keywords where show=True.) > >     class KeywordsField(forms.ChoiceField): >         def __init__(self, choices=()

Re: New tutorial added to Django by Example

2010-08-03 Thread Mario
Thank you for sharing the application. I would like to make the start day of the week Sunday instead of Monday. _Mario On Aug 3, 12:14 am, Rainy wrote: > I've added a new tutorial: Calendar App to > my Django by Example site.  As always, feedback is appreciated. > > What would be a good tutorial