bug in rendering non ascii characters in admin changelist

2007-10-06 Thread Kenneth Gonsalves
Hi, after upgrading to the unicode branch - I am using svn trunk, I find that in the changelist, when I want to change an entry where there are non-ascii characters in the name, I am getting an ascii cant decode the non-ascii characters. This is appearing in line 15 of change_form.html, i

making a site in 1 lanaguage but not in english?

2007-10-06 Thread lgr888999
Hi! I've been working with django now for a while and its come to the time to make a site in Swedish. How am I best of? Make the site in English and use djangos i18n support to translate everything to swedish and use a snippet like http://www.djangosnippets.org/snippets/218/ to prevent people

Re: ImportError: No module named django.core.handlers.modpython

2007-10-06 Thread Graham Dumpleton
On Oct 7, 2:41 pm, Aaron <[EMAIL PROTECTED]> wrote: > I am using Django version 0.97 (latest development version), Python > 2.5, Apache 2.0.61 and mod_python 3.3.1. > > I am getting the following mod_python error: > --- > Traceback (mos

ImportError: No module named django.core.handlers.modpython

2007-10-06 Thread Aaron
I am using Django version 0.97 (latest development version), Python 2.5, Apache 2.0.61 and mod_python 3.3.1. I am getting the following mod_python error: --- Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/mo

Django Browser Games?

2007-10-06 Thread [EMAIL PROTECTED]
Greetings, I was curious to hear if there are any Django-based browser games in production or in progress. I'm particularly interested in anything being openly developed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

most cheapest!!!most best!!!(www.alibabaunion.com)wholesale nike chanel gucci

2007-10-06 Thread gucci handbags
Hello Alibabaunion Co.,LTD greets and desires of success and wishes you happy times. This is professional export company from china who carry PAYPAL payment and DROPSHIP . We greated in 2003 year ,and now we become the one of best supplier here because of we keep our credit standing . Pls

Re: static images with built-in django server

2007-10-06 Thread staff-gmail
Tim Chase wrote: >> Thanks. Yes, using relative paths is the right idea - it's a shame that >> the base url's have to be hard coded in the templates. I understand >> from a web efficiency standpoint of Django not handling static content >> but from an application development standpoint this i

Re: Problem with nesh.thumbnail

2007-10-06 Thread Kenneth Gonsalves
On 04-Oct-07, at 2:54 PM, Divan Roulant wrote: > Is someone aware of a recent change in Django that would have modified > the use of the nesh package? there was something that broke - I remember facing the same problem, but I dont remember what I did - yes, somewhere in there there is 'str (

Re: trying to make Django work with fastcgi

2007-10-06 Thread [EMAIL PROTECTED]
On Oct 3, 9:01 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I actually got fed up, and nearly resolved to switch either > frameworks(pylons, turbogears) or webhosts(webfaction, dreamhost). [... big cut...] Hi all, i'm hosted at ASmallOrange and can't find a way to make feedjack[1] work o

Re: Apache2/mod_python can't import project settings

2007-10-06 Thread ViX
Suppose ur project is project1, under /var/www/projects/, eg. /var/www/projects/project1 /var/www/projects/project1/settings.py The setting should be: PythonPath "['/var/www/projects'] + sys.path" So that the following works. import project1.settings Best, V On Oct 4, 12:34 pm, juampa

Re: static images with built-in django server

2007-10-06 Thread Tim Chase
> Thanks. Yes, using relative paths is the right idea - it's a shame that > the base url's have to be hard coded in the templates. I understand > from a web efficiency standpoint of Django not handling static content > but from an application development standpoint this is a real complexity

Re: Validation of dynamically generated forms

2007-10-06 Thread FrankW
In your example, self.fields[str(key)]=forms.CharField(initial=c[key]) isn't doing what you expect. You are setting the initial attribute of a field, not creating a BoundField. See django/newforms/forms.py, and look at the comments for BaseForm and Form and the code for BoundField. On Oct 6,

Re: static images with built-in django server

2007-10-06 Thread staff-gmail
cjl wrote: > John: > > I've added a section at the end of the first chapter of my tutorial > that describes how to serve static content with the Django development > server, which seems to be a frequently asked question. See: > > http://www.instantdjango.com/chapter1.html > > Check it out, and le

Re: IOError: Client read error (Timeout?)

2007-10-06 Thread Graham Dumpleton
The way mod_python reads request content is a bit broken and can screw up in various ways, albeit rarely. This may be another example to add to the existing ones. The other known examples are: http://issues.apache.org/jira/browse/MODPYTHON-212 http://issues.apache.org/jira/browse/MODPYTHON-23

Re: static images with built-in django server

2007-10-06 Thread cjl
John: I've added a section at the end of the first chapter of my tutorial that describes how to serve static content with the Django development server, which seems to be a frequently asked question. See: http://www.instantdjango.com/chapter1.html Check it out, and let me know if you have any

Re: Method calls in templates

2007-10-06 Thread Andreas Ahlenstorf
Am 06.10.2007 um 19:49 schrieb James Bennett: > Personally, I wouldn't ever open up the template language to arbitrary > users. It's asking for trouble. I have some doubts too, altough there are not so many alternatives. The other template engines for python I've seen support more dangerous

Re: Method calls in templates

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 11:24 +0200, Andreas Ahlenstorf wrote: > > Am 06.10.2007 um 00:24 schrieb Malcolm Tredinnick: > > > (or wrap it in a class that provides only an > > iterator over the queryset's iterator and no access to the wrapped > > object). > > Could you share a small code sample on

Re: i18n: newform validation errors: some translate, some not

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 03:23 -0700, Andreas Pfrengle wrote: > Hello Djangonauts, > > I was making a form for a german language site, so any errors that are > thrown during the validation of a newform *should* be translated into > german. the request.LANGUAGE_CODE is 'de', and it's also working for

Re: Method calls in templates

2007-10-06 Thread Marty Alchin
On 10/6/07, James Bennett <[EMAIL PROTECTED]> wrote: > > By the way, it would be nice to have a small (sub)chapter in the docs > > that mentions all the things someone has to care of when exposing the > > Django templates to arbitrary users. > > Personally, I wouldn't ever open up the template lan

Re: Changing site theme based on request object

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 19:08 +, tim_perrett wrote: > Thanks for the speedy reply Malcom... > > Ive taken a look at loaders.py in the latest trunk... I see what you > mean; pretty interesting. I could just write my own loader, import any > classes I needed to use (like the django.http.HttpReque

full featured web conference software, 10 cents/day

2007-10-06 Thread [EMAIL PROTECTED]
screen shots here: http://www.nc99.com/home/screen.shtml features: http://www.nc99.com/home/features.shtml home page: http://www.nc9.com incredable price for such full featured products. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Admin Media on a VServer

2007-10-06 Thread Chris Hoeppner
What's a VServer? Are you speaking about virtualization? In that case, it doesn't make a difference. As for it working on windows and macos, and not on linux, you might want to give us a few more details about the setup. El s�b, 06-10-2007 a las 10:13 -0700, niklas.voss escribi�: > I have a VServ

Re: Changing site theme based on request object

2007-10-06 Thread tim_perrett
Thanks for the speedy reply Malcom... Ive taken a look at loaders.py in the latest trunk... I see what you mean; pretty interesting. I could just write my own loader, import any classes I needed to use (like the django.http.HttpRequest so I can use get_host()) and even use the ORM in the framewor

Re: default = current user

2007-10-06 Thread James Bennett
On 10/6/07, Alessandro Ronchi <[EMAIL PROTECTED]> wrote: > Is it possible to set a field value as the current user in the admin panel? No. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this m

Re: Changing site theme based on request object

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 09:21 -0700, tim_perrett wrote: > Hey everyone > > Im looking into changing the theme of the site based on the request > that the project recivies: > > I dont want to do this with CSS and stylesheets before anyone suggests > that :) - Ive been looking into adding a bit of m

Re: Method calls in templates

2007-10-06 Thread James Bennett
On 10/6/07, Andreas Ahlenstorf <[EMAIL PROTECTED]> wrote: > Do you think about specific context processors or tags provided by > default with Django? Built-in tags I'm not so worried about, though there are some dangerous context processors (the 'request' and 'debug' processors, for example). But

Admin Media on a VServer

2007-10-06 Thread niklas.voss
I have a VServer with Django installed and it works very well, on my home Server on MacOS and Windows the Admin Panel worked very well, too, with some fixes, but on the Debian VServer with Apache2, it don't works anymore. Is there a way to fix this? Or can i just copy the Admin Media from / root/

Changing site theme based on request object

2007-10-06 Thread tim_perrett
Hey everyone Im looking into changing the theme of the site based on the request that the project recivies: I dont want to do this with CSS and stylesheets before anyone suggests that :) - Ive been looking into adding a bit of middleware to do this, and based on what i see in the locale setting

Re: IOError: Client read error (Timeout?)

2007-10-06 Thread Malcolm Tredinnick
On Sat, 2007-10-06 at 15:20 +, Trey wrote: > There are other people that have brought this up a little bit some > time ago. I run a small to medium sized web application that takes > profile pictures. By far my largest customer service issue is people > not being able to upload their photos. >

IOError: Client read error (Timeout?)

2007-10-06 Thread Trey
There are other people that have brought this up a little bit some time ago. I run a small to medium sized web application that takes profile pictures. By far my largest customer service issue is people not being able to upload their photos. For the most part I have played it down as their connec

Re: Django template language

2007-10-06 Thread Chris Hoeppner
Since the formatting is quite standard (eg: you'll be using img tags for images and object tags for pdf's, etc...) you could assign it to a var in the view. This might be a violation of the MVC pattern, but it's not much worse than using the same template instead of separate ones, extending a comm

Validation of dynamically generated forms

2007-10-06 Thread pinco
Hi, I'm trying to figure out how to build a form to display x fields, where x is determined at runtime (e.g. a form to update the quantities of all the items in a shopping cart). My model is: class CartForm(forms.Form): def __init__(self, c, *args, **kwargs): super(Cart

default = current user

2007-10-06 Thread Alessandro Ronchi
Is it possible to set a field value as the current user in the admin panel? -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net - Il mio sito personale http://www.soasi.com - Sviluppo Software e Sistemi Open Source --~--~-~--~~~---~--~~ You receive

i18n: newform validation errors: some translate, some not

2007-10-06 Thread Andreas Pfrengle
Hello Djangonauts, I was making a form for a german language site, so any errors that are thrown during the validation of a newform *should* be translated into german. the request.LANGUAGE_CODE is 'de', and it's also working for *some* of the errors, but not for all. To test this, I've put up a T

Re: nesh thumbnails error after moving to unicode

2007-10-06 Thread Divan Roulant
Thank you Chris, for the record, Satchmo changed kw = kw.lower() into kw = kw.lower().encode('ascii') in thumbnail.py. That was causing me trouble. Thanks again! Divan On Oct 5, 12:40 pm, "Chris Moffitt" <[EMAIL PROTECTED]> wrote: > We've made mods to the thumbnail c

Django template language

2007-10-06 Thread Bernd
Hello, I'm new to web development and Python. I helped a friend with his website, which is written in PHP. But the source code is so bad, that I decided to rewrite the hole page. So I found the djange webframework.I like it and try to rewrite the page with it. Now I have a litte question. I try t

Re: Method calls in templates

2007-10-06 Thread Andreas Ahlenstorf
Am 06.10.2007 um 02:06 schrieb James Bennett: > Although the problem of opening up the Django template language to > arbitrary users runs much deeper; a site administrator needs to be > *very* careful not only about what's passed in the context, but also > about context processors and available

Re: Method calls in templates

2007-10-06 Thread Andreas Ahlenstorf
Am 06.10.2007 um 00:17 schrieb Jonathan Buchanan: > http://www.djangoproject.com/documentation/templates_python/ > #rendering-a-context My question is about built-ins, not about custom methods in the models. Regards, A. --~--~-~--~~~---~--~~ You received this

Re: Method calls in templates

2007-10-06 Thread Andreas Ahlenstorf
Am 06.10.2007 um 00:24 schrieb Malcolm Tredinnick: > (or wrap it in a class that provides only an > iterator over the queryset's iterator and no access to the wrapped > object). Could you share a small code sample on how to do this efficiently? Regards, A. --~--~-~--~~---

Participation in Project

2007-10-06 Thread mfoch01
Who would be interested in participating in a django-python-project? If such a person or smaller company is close to Zurich or situated in the Ukraine that would be fine. Please feel free to contact me. Markus --~--~-~--~~~---~--~~ You received this message becaus

Re: installation necessary?

2007-10-06 Thread Chris Hoeppner
It doesn't really matter where it is, as long as it's on the pythonpath (eg. "import django" works). Putting it in site-packages is just a bit cleaner, as that is a standard place for common-use python packages. You still need to be able to set the pythonpath for your execution environment, thoug

installation necessary?

2007-10-06 Thread horace
hello, wouldn't it simply be possible to put all the py files of django into a directory and use "import" in your project instead of installing anything? django looks really nice but most webhosters don't allow to install it. :) --~--~-~--~~~---~--~~ You received t

Re: static images with built-in django server

2007-10-06 Thread AndrewK
http://www.djangoproject.com/documentation/static_files/ You need to add information about your media directory to the url.py On Oct 5, 5:59 pm, staff-gmail <[EMAIL PROTECTED]> wrote: > I have read the docs on static files but cannot figure out how to > specify an image when using the built-in we