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

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

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=()),

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

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

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 =

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

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

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

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 =

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

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

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

回复: 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,Adio,Armani,DC,ES,Lacoste,4US,Converse,bape.chanel,hongan,tods,richmond,eneruie,dsquared,diesel.armant,dior,ice

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

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

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

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

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,Adio,Armani,DC,ES,Lacoste, 4US,Converse,bape.chanel,hongan,tods,richmond,eneruie,dsquared,diesel.armant,dior,ice cream,kids

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

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

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

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: > >

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

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/

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