Re: Admin "Bulk Edit"?

2010-10-18 Thread Marc Aymerich
On Sun, Oct 17, 2010 at 9:54 PM, Ted wrote: > I was imagining more select a subset then have a bulk action like > delete. But, for this use case, list editable is sufficient. > You can create custom actions. http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/

Problems in install on windows

2010-10-18 Thread Yehuda Shiran
I followed the instructions and did "setup.py install" in the Django directory. I get the following error message: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\yshiran>cd Django The system cannot find the path specified. C:\Documents a

Re: how safe is the template engine

2010-10-18 Thread Jonathan S
Be careful, Don't forget that users will be able to execute random templatetags, which may be able to do read/write to the database as well. On 16 oct, 18:06, "Henrik Genssen" wrote: > Hi, > > can I safely use the template engine to produce user configured output? > If I use the template engine

Yet another solution to the auth.User extension using a "model-patcher"

2010-10-18 Thread Christophe Eymard
Hello list, I just wanted to share a little hacky solution I found for extending some django models without creating a new table while still maintaining readability (which is I reckon is *the* advantage Django offers us when it comes to database creation). It is all in a blog post here : http://w

Django and Flux

2010-10-18 Thread girish shabadimath
Hi Django folks, i am newbie to django and wanted to start with one django application. Is it possible to combine django and adobe flux builder? i thought of using flux as front-end and django as back-end. what are the pros and cons of this approach? -- Girish M S -- You received this messa

Re: Django and Flux

2010-10-18 Thread Venkatraman S
On Mon, Oct 18, 2010 at 5:37 PM, girish shabadimath < girishmss.1...@gmail.com> wrote: > > i am newbie to django and wanted to start with one django application. > > Is it possible to combine django and adobe flux builder? > > i thought of using flux as front-end and django as back-end. > > what a

Re: Django and Flux

2010-10-18 Thread Tim Sawyer
> You cant combine Django and Flex Builder - but you can write apps using > Django and Flex. With Flex 3 (and maybe 4, I don't know) you could install it as an Eclipse Plugin, instead of standalone. You could then install pydev into Eclipse as well, and edit both sides of the app in the same Ecli

Re: Django and Flux

2010-10-18 Thread Venkatraman S
On Mon, Oct 18, 2010 at 5:53 PM, Tim Sawyer wrote: > > You cant combine Django and Flex Builder - but you can write apps using > > Django and Flex. > > With Flex 3 (and maybe 4, I don't know) you could install it as an Eclipse > Plugin, instead of standalone. You could then install pydev into Ecl

Re: Django and Flux

2010-10-18 Thread girish shabadimath
Hi Venkatraman, *Thanks for the correction -- 'Flex' and by "combine" in mean using django and flex to create application.* i googled regarding this issue and found that pyAMF is used in this case, O n Mon, Oct 18, 2010 at 5:44 PM, Venkatraman S wrote: > > On Mon, Oct 18, 2010 at 5:37 PM, gi

Re: MaxValueValidator to validate a model

2010-10-18 Thread Steve Holden
On 10/15/2010 9:18 PM, refreegrata wrote: > Now works. > validators=[MaxValueValidator(Decimal('14.5')) > > But I must to do an explicit declaration Decimal('14.5'). > > Somebody knows why? Because only decimal numbers can give exact comparisons to arbitrary decimal values. You would not want yo

Re: Path issue on Linux

2010-10-18 Thread Sithembewena Lloyd Dube
Hi Ken, Just manage.py , instead of always having to specify the program to run the command with (python). On Mon, Oct 18, 2010 at 7:25 AM, Kenneth Gonsalves wrote: > On Sun, 2010-10-17 at 23:00 +0200, Sithembewena Lloyd Dube wrote: > > How would I set up my path so that I don't always have to

Re: Django and Flux

2010-10-18 Thread girish shabadimath
Thanks Tim, got some idea On Mon, Oct 18, 2010 at 6:01 PM, girish shabadimath < girishmss.1...@gmail.com> wrote: > Hi Venkatraman, > *Thanks for the correction -- 'Flex' and by "combine" in mean using django > and flex to create application.* > > i googled regarding this issue and found that pyAM

Re: Path issue on Linux

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 14:34 +0200, Sithembewena Lloyd Dube wrote: > Just manage.py , instead of always having to specify the > program to > run the command with (python). anyway you got the answer - chmod -- regards Kenneth Gonsalves -- You received this message because you are subscribed to t

Problem using Proxy DB

2010-10-18 Thread Ferran
Hello all; I'm just learning Django and i'm trying to get proxy db managers working, but i can't manage to get it working. I've read the docs and tried to search on google, but it seems unuseful. Can anybody help me? I'm attaching the error and my code. setting.py: DATABASES = { 'default':

XMPP based apps

2010-10-18 Thread Venkatraman S
Well, I havent Googled, but was wondering whether how one can integrated XMPP based communications(PUNJAB?) etc with Django? Has anyone tried this? Any good reads or pointers? -V- http://twitter.com/venkasub -- You received this message because you are subscribed to the Google Groups "Django us

About Thumbnails

2010-10-18 Thread Ekin Yalgın
Hello everyone. Firstly sorry for my English. I am newbie in django. I have learned some things with this group, i have some problems and i hope we will find some solutions together. The subject is about thumbnails. I have searched google and google users topic, i tried what they said, i used sorl

Re: About Thumbnails

2010-10-18 Thread Venkatraman S
Look into django-photologue. It has some thumbnail generation functions, i guess. -V- http://twitter.com/venkasub -- 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

Re: Problem using Proxy DB

2010-10-18 Thread Tom Evans
On Mon, Oct 18, 2010 at 1:08 PM, Ferran wrote: > Hello all; > > I'm just learning Django and i'm trying to get proxy db managers > working, but i can't manage to get it working. I've read the docs and > tried to search on google, but it seems unuseful. > > Can anybody help me? > Don't put your ro

Re: how safe is the template engine

2010-10-18 Thread ringemup
In addition to what Jonathan said, keep in mind that letting your users enter raw HTML opens your site up to XSS attacks, since userInput could contain javascript, and it won't be escaped if you just turn it directly into a template. You could render userInput into the template as a context variab

Re: Problem using Proxy DB

2010-10-18 Thread Ferran
On 18/10/10 15:56, Tom Evans wrote: Don't put your router code in with your models, and you will avoid this circular import issue. Create a new module with no other dependencies and put your router code in there. Thank you, Tom. I was turning crazy! ;) -- Abordemos el parlamento! -- http://pi

Re: mysql and Django

2010-10-18 Thread emma
Thanks a lot! I have installed the new mysql-python under my home directory and change PYTHONPATH. Now Django works well. Cheers. On Oct 16, 1:01 am, David wrote: > I think there is some confusion here. I'm guessing you are using mysql- > python v1.2.1 since a 1.x mysql version would probably d

Re: About Thumbnails

2010-10-18 Thread Ekin Yalgın
I'll have a look at it. But it is better to solve this within the models.py (ImageField)). then the application. So we can use this thumbnail function or file with every project easily. Thank you for your answer. Any other suggestions? On Mon, Oct 18, 2010 at 4:56 PM, Venkatraman S wrote: > Look

Re: how safe is the template engine

2010-10-18 Thread Brendan Smith
i have done similar to allow my users the ability to use template tags in publications we put out. I thought long and hard about the repercussions of this and what I decided on in the end is that all of my users are (should be at least) considered trusted (we all work in the same office) and the o

Replacing Text in Textarea

2010-10-18 Thread Ekin Yalgın
Hello. With TinyMce or in a textarea; when we write [vimeo ], how does it replace with below code? http://player.vimeo.com/video/"; width="400" height="225" frameborder="0"> This can be improve with youtube or etc... Thank you for your interests. -- You received this message be

Efficient updates on ManyToMany Relations

2010-10-18 Thread brix
Hello. Assume I have publications and authors. Like here: http://www.djangoproject.com/documentation/models/many_to_many/ Now I want to add authors to more than just one publication. Lets say 1000 or more publications. Is there a more efficient way of adding the authors once for each publication

Can't Write Python Eggs Directory

2010-10-18 Thread octopusgrabbus
Periodically, I keep getting bitten by this error: The Python egg cache directory is currently set to: /home/amr/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to a

Re: Can't Write Python Eggs Directory

2010-10-18 Thread octopusgrabbus
I've seen this link http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-the-admin-files "Using "eggs" with mod_python¶ If you installed Django from a Python egg or are using eggs in your Django project, some extra configuration is required. Create an extra file in your proj

Re: About Thumbnails

2010-10-18 Thread creecode
Hello Ekin, On Oct 18, 7:37 am, Ekin Yalgın wrote: > But it is better to solve this within the > models.py (ImageField)). then the application. So we can use this > thumbnail function or file with every project easily. > > Thank you for your answer. Any other suggestions? In this case then you

Job Opportunities- Django / Python - Can work from any liocation in US!

2010-10-18 Thread jmosteel
Hi everyone, I am actively recruiting for a Django / Python Web position. The position can be based anywhere in the US, for a company with offices in the NYC and Washington DC areas. This is a permanent job opportunity. Please contact me if you are interested. Jason Olsavsky Senior Technical Re

Re: Can't Write Python Eggs Directory

2010-10-18 Thread octopusgrabbus
Problem fixed by following instructions http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#serving-the-admin-files labeled Using "eggs" with mod_python On Oct 18, 1:25 pm, octopusgrabbus wrote: > Periodically, I keep getting bitten by this error: > > The Python egg cache directory

Re: per thread variables

2010-10-18 Thread tinku99
>anything you can do in Python you can do in Django Thanks. Found it: http://stackoverflow.com/questions/104983/what-is-thread-local-storage-in-python-and-why-do-i-need-it threadlocal = threading.local() -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Efficient updates on ManyToMany Relations

2010-10-18 Thread Marc Aymerich
On Mon, Oct 18, 2010 at 6:31 PM, brix wrote: > Hello. > > Assume I have publications and authors. Like here: > http://www.djangoproject.com/documentation/models/many_to_many/ > > Now I want to add authors to more than just one publication. Lets say > 1000 or more publications. > > Is there a more

Re: Efficient updates on ManyToMany Relations

2010-10-18 Thread Marc Aymerich
On Mon, Oct 18, 2010 at 8:49 PM, Marc Aymerich wrote: > > > On Mon, Oct 18, 2010 at 6:31 PM, brix wrote: > >> Hello. >> >> Assume I have publications and authors. Like here: >> http://www.djangoproject.com/documentation/models/many_to_many/ >> >> Now I want to add authors to more than just one p

Re: Hosting many small Django websites

2010-10-18 Thread Diederik van der Boor
Thanks for your suggestion about Opus, will look into that. The security concerns are a good argument for running separate wsgi processes afterall. Diederik Op Friday 15 October 2010 00:34 schreef Brian Bouterse: > We host many of our django sites using a django deployer we wrote called > Opus <

Re: Efficient updates on ManyToMany Relations

2010-10-18 Thread brix
With update I also meant adding a new author to the publications in the queryset. This (http://docs.djangoproject.com/en/dev/topics/db/ queries/#updating-multiple-objects-at-once) shows only how to update usual fields, but no m2m Relations as I understand it. I want to add objects. For publications

formfield_for_manytomany not registering change?

2010-10-18 Thread tm
Hello, I am trying to save a many to many relation that has custom information passed to it before the form loads in the admin. The first part of this works great where the form only loads the data I want it to show, however when I try to click the little plus sign to add a new entry from the adm

"No module named copycompat" error

2010-10-18 Thread mathphreak
I just upgraded my computer to Ubuntu 10.10, and now running "python manage.py runserver" gives me "Error: No module named copycompat". I've probably also upgraded Django from 1.1.x to 1.2.x, which might be the problem too. Which upgrade broke manage.py, and how can I fix this? -- You received t

Re: XMPP based apps

2010-10-18 Thread Eric Chamberlain
We've done django based xmpp services and created middleware to enable django to manage and authenticate ejabberd users. On Oct 18, 2010, at 6:10 AM, Venkatraman S wrote: > Well, I havent Googled, but was wondering whether how one can integrated XMPP > based communications(PUNJAB?) etc with Dja

Re: About Thumbnails

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 19:26 +0530, Venkatraman S wrote: > Look into django-photologue. It has some thumbnail generation > functions, i > guess. this is the best: http://github.com/SmileyChris/easy-thumbnails -- regards Kenneth Gonsalves -- You received this message because you are subscribed