Re: Printing out HTML that doesn't get converted to

2008-05-18 Thread James Bennett
On Mon, May 19, 2008 at 12:51 AM, Tomás Garzón Hervás <[EMAIL PROTECTED]> wrote: > I think, you use the {% autoescape off %} text to escape {% endautoescape %} > Search more information of autoescape en django documentation Turning autoescaping on and off for large sections of a template is a sor

**********************************************************

2008-05-18 Thread . .
Monica Bellucci [image: Click Here] *More Images*

Re: Django and Linux distros

2008-05-18 Thread Ramdas S
I have tried almost all popular linux distros and finally zeroed on Ubuntu. It might still have a few glitches, but by far is the best of the debian based distros, and when it comes to stability and ease of use Debian beats RedHat and its clones! You have Ubuntu, all you need to do is play aroun

[no subject]

2008-05-18 Thread . .
http://groups.google.com/group/goroh/subscribe http://groups.google.com/group/goroh/subscribe http://groups.google.com/group/goroh/subscribe http://groups.google.com/group/goroh/subscribe http://groups.google.com/group/goroh/subscribe http://groups.google.com/group/goroh/subscribe http://groups.goo

Re: Printing out HTML that doesn't get converted to

2008-05-18 Thread Tomás Garzón Hervás
I think, you use the {% autoescape off %} text to escape {% endautoescape %} Search more information of autoescape en django documentation Gabriel escribió: > Alex gmail.com> writes: > > >> I'm working on my first Django project and I can't seem to get >> information printed out as I would lik

Re: Django and Linux distros

2008-05-18 Thread Jeff Anderson
JonSidnell wrote: What works for you? I have quite the interesting setup... At work, we use Fedora. I often work on personal things at work when not on the clock. Not my first choice of linux distro, but it works just fine for doing my django stuff. At home, I use arch linux. It is for m

Re: FileField not working, however ImageField is.

2008-05-18 Thread Jeff Anderson
Rodrigo Culagovski wrote: I have a FileField in a model that's not working. When I try to upload a file via the admin site, nothing is uploaded and I get a validation error (as if I hadn't filled in the field). Have you tried uploading files with more than one browser? Is the html code in the fo

Re: How does one use model data in forms?

2008-05-18 Thread Jeff Anderson
Kenneth McDonald wrote: For example, I want foreign keys to show up as popup lists.Also, I'd like to get the date widget in a user form the same as it is in the Admin interface. These are broad questions, so I guess the real question is, "Where do I read how to do this". Haven't found it in

Adding database table to Selection Widget on newforms

2008-05-18 Thread Jorge Romo
Hello again guys! I'm using django-registration and i wanna use django-countries with it so i can ask my new user for its country. But i don't know how to call it... this is my django-registration country code: Country = forms.CharField(widget=forms.Select(attrs=attrs_dict, choices=()), labe

Re: TypeError: Cannot resolve keyword 'slug' into field

2008-05-18 Thread Brian
On May 18, 6:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Based on the choices the error message lists, it appears you have added code > that tries to access the slug field in an Mp3_Set model instance. However, > you have added the slug field to the other model, Mp3. > > Karen Where wou

Re: hasNoProfanities doesn't work

2008-05-18 Thread Dan Kelley
Thanks, Karen. You're right -- I was quite mixed up, with oldforms and newforms. (I am still learning django, which means that I'm balanced always between being perplexed and being simply delighted at the system.) I have my code working now, and I've pasted a snippet below, in case someone else

Re: Problem displaying value(s) from ManyToMany relationship

2008-05-18 Thread Brandon Taylor
Very odd. On a whim, I changed: {% for instructor in instructors %} {{ instructor.first_name }} #there is no value output here {% endif %} to {% for i in instructors %} {{ i.first_name }} #this works?! here {% endif %} Can anyone offer some reason why that would work? Just for my

Re: Trouble installing PIL

2008-05-18 Thread Brandon Taylor
Hi Austin, I followed this tutorial to install JPEG support into PIL: http://paul.annesley.cc/articles/2007/11/19/django-and-python-imaging-library-pil-on-leopard Hope this helps, Brandon On May 18, 6:22 pm, Austin Govella <[EMAIL PROTECTED]> wrote: > I used MacPorts to install jpeg (libjpeg),

Re: Problem displaying value(s) from ManyToMany relationship

2008-05-18 Thread Brandon Taylor
Here is my code: #in models.py class Instructor(models.Model): prefix = models.CharField(max_length=50, blank=True, null=True) first_name = models.CharField(max_length=50) middle_name = models.CharField(max_length=50, blank=True, null=True) last_name = models.CharField(max_length=

Trouble installing PIL

2008-05-18 Thread Austin Govella
I used MacPorts to install jpeg (libjpeg), freetype, zlib, and then Python Imaging Library. When I validate, I get the "no PIL" error. Error: One or more models did not validate: imagetest.filetest: "image": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www

Re: TypeError: Cannot resolve keyword 'slug' into field

2008-05-18 Thread Karen Tracey
On Sat, May 17, 2008 at 5:46 PM, Brian <[EMAIL PROTECTED]> wrote: > > I've searched for this, but people think it is either fixed or very > hard to reproduce. In my case it is 100% reproducible, and I wonder if > it is my own fault. > > I have a model for a mp3 set (a set of mp3s). Individual mp3'

Problem displaying value(s) from ManyToMany relationship

2008-05-18 Thread Brandon Taylor
Hi everyone, I have a ManyToMany field on a model, and when I want to get the related items and display them in a template in a for loop, the loop executes the correct number of times, but in my output blocks there are no values. If I print the object, I get an array of values, same as any other

Re: hasNoProfanities doesn't work

2008-05-18 Thread Karen Tracey
On Sat, May 17, 2008 at 9:52 AM, Dan Kelley <[EMAIL PROTECTED]> wrote: > Hi. I'm using the latest development version (svn'd today). I think I'm > missing something on hasNoProfanities. I have the following in my model: > > from django.core import validators > ... > content = models.TextFiel

Re: MySQL Boolean vs. PostgresQL Boolean

2008-05-18 Thread Karen Tracey
On Fri, May 16, 2008 at 1:57 PM, Szaijan <[EMAIL PROTECTED]> wrote: > > Thanks Karen. > > Actually, the behavior here is worst case, from my perspective, in > that Ture/False values will update an instance, but will not be saved > and no exception is thrown. When I try to update the model with a

Re: Legacy Databases - custom filter?

2008-05-18 Thread Dougal
Thank your very much, thats just what I've been looking for. :-) Dougal On May 18, 10:23 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sun, May 18, 2008 at 4:10 PM, Dougal <[EMAIL PROTECTED]> wrote: > > How would I then do this SQL manually? I know writing SQL is to be > > avoided but is

Re: Legacy Databases - custom filter?

2008-05-18 Thread James Bennett
On Sun, May 18, 2008 at 4:10 PM, Dougal <[EMAIL PROTECTED]> wrote: > How would I then do this SQL manually? I know writing SQL is to be > avoided but is there an easy way to execute SQL commands? Writing SQL is *not* to be avoided. Using an ORM is basically a trade-off, where some things are supp

Legacy Databases - custom filter?

2008-05-18 Thread Dougal
I've had a look at http://www.djangoproject.com/documentation/legacy_databases/ but it doesn't cover too much detail... I've got a mySQL 5 database with a number of tables. The data structure requires a few complex queries that I don't see how I can do through the models. How would I then do thi

Djanjo Guru Needed

2008-05-18 Thread nycwebproject
A new NYC based web 2.0 start up is seeking a Sr. Python developer with Django experience on a freelance basis to oversee the backend development of a life changing web application. This is a ground floor opportunity with tremendous growth potential. The right candidate will be able to put in at

回复: Re:wholesale cheap nike adidas puma bape shoes and clothes jeans nfl nhl nba mlb jersey

2008-05-18 Thread BBnike
www.bbnike.com ,We are a leading company that wholesales shoes :Nike,Jordan,dunk,shox,max,air force one,james,dunk.gucci,prada,Adidas,rift,Puma,Gucci,Prada,Timberland.Ice,D&G,Adio,Armani,DC,ES,Lacoste,4US,Converse,bape.chanel,hongan,tods,richmond,eneruie,dsquared,diesel.armant,dior,ice cream,ki

Re: Caching: Memcached vs locmem

2008-05-18 Thread Brian
On May 18, 12:55 pm, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Sat, May 17, 2008 at 8:12 PM, Brian <[EMAIL PROTECTED]> wrote: > > But if you aren't clustering, say you have only a single server, is > > there an advantage? > > Yes, locmem is memory local to a single Python process. If you're

Re: Caching: Memcached vs locmem

2008-05-18 Thread Brett Hoerner
On Sat, May 17, 2008 at 8:12 PM, Brian <[EMAIL PROTECTED]> wrote: > But if you aren't clustering, say you have only a single server, is > there an advantage? Yes, locmem is memory local to a single Python process. If you're running Django in some sort of multi-process server (as most people do)

Re: What is the best search product?

2008-05-18 Thread Brett Hoerner
On Sun, May 18, 2008 at 5:24 AM, Gene Campbell <[EMAIL PROTECTED]> wrote: > I am building a site that will require search. It will hold only > about 600,000 web pages, but it may get quite a few users. I am > looking at Solr and pylucene. > Can anyone offer up some experience with these products

One-to-One vs direct assignation

2008-05-18 Thread bcurtu
Hi, What's the difference between: class Other(models.Model): ins=Instrument() class Other2(models.Model): ins=models.OneToOneField(Instrument) How do I define Instrument in order the fist class to be valid? Cheers! --~--~-~--~~~---~--~~ You received th

Updated notmm docs now available

2008-05-18 Thread Etienne Robillard
Hi list, I've updated the documentation for the notmm project: http://gthc.org/projects/notmm/ Please note that this page doesn't require Flash nor Javascript to be viewed. :) Cheers, Etienne --~--~-~--~~~---~--~~ You received this message because you are subsc

wholesale cheap nike adidas puma bape shoes and clothes jeans,nfl nhl nba mlb jersey bags

2008-05-18 Thread BBNIKE
www.bbnike.com ,We are a leading company that wholesales shoes :Nike,Jordan,dunk,shox,max,air force one,james,dunk.gucci,prada,Adidas,rift,Puma,Gucci,Prada,Timberland.Ice,D&G,Adio,Armani,DC,ES,Lacoste, 4US,Converse,bape.chanel,hongan,tods,richmond,eneruie,dsquared,diesel.armant,dior,ice cream,kid

Articles For women only

2008-05-18 Thread Dilani Reddy
Click Here <%20http://tiponlyforwomen.blogspot.com/2008/05/laparoscopy-kinder-cut-2.html> -- Visit my site - Download Free Computer Books - An online Bookshelf http://bookstube.blogspot.com http://systemhelp4u.blogspot.com --~--~-~--~~~---~--~~ You received this m

latest Iuseful T Books For Studies

2008-05-18 Thread Dilani Reddy
- Building Scalable Web Sites - C In A Nutshell (2005) - C Primer Plus 5th Edition (2004)

Re: How best to place multiple orders from same screen?

2008-05-18 Thread bobhaugen
There's also http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ I used a combination of techniques from Malcolm and Collin (and from elsewhere). --~--~-~--~~~---~--~~ You received this message because you are subscribed to

What is the best search product?

2008-05-18 Thread Gene Campbell
Hi everyone, I am building a site that will require search. It will hold only about 600,000 web pages, but it may get quite a few users. I am looking at Solr and pylucene. Can anyone offer up some experience with these products? Are there any other ways to impl search like this with Python? -

Re: How to get the ForeignKey?

2008-05-18 Thread mwebs
I got the solution by myself. I just used pathon reflection: getattr(m, field.name) just returned the value of the field.name and field.name is the name of the ForeignKey. On 18 Mai, 11:31, mwebs <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following problem: > > code

How to get the ForeignKey?

2008-05-18 Thread mwebs
Hi, I have the following problem: code++ lookUpDict = {sequence:new_sequence, field.name : m.} ++ In this context +field+ is the ForeignKey-Field of a modelObject. With field.name I get the name of the FK-Field, e.g 'category'. Now I

OperationalError (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") Why

2008-05-18 Thread coco
Hi List, Django show this message to me: OperationalError at /champselysees/services/ (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") Request Method: GET Request URL: http://www.champselysees.org/champselysees/services/ Exception

Re: Django and Linux distros

2008-05-18 Thread Oscar Carlsson
I use OS X + (vim|mysql|svn) while developing and (FreeBSD|Gentoo) in production :) The only thing I'm missing is omnicompletion for django, haven't been able to figure out how to do it myself :( Oscar JonSidnell wrote: > Hi everyone > > I'm suddenly struck by the notion that I would like to