Re: Conditions in templates

2008-10-07 Thread hasan_aljudy
You can't really do it that easily with the default django template language, bu check out Jinnja2, http://jinja.pocoo.org/2/documentation/ it's an alternative template language/system that can be plugged into django. it offers what you need and more useful features that save you time and make yo

Re: A basic problem with templates (I think)

2006-12-28 Thread hasan_aljudy
Exactly like Vriens said, it's a problem of encoding. Your best bet is to use UTF-8 all across. Set your DB to use UTF-8, use a UTF-8 capable editor, add a meta tag to your html to indicate the UTF-8 encoding. etc. On Dec 28, 11:49 am, "Marijn P. Vriens" <[EMAIL PROTECTED]> wrote: On Thursday 2

Re: noob help, many to one, model

2006-12-28 Thread hasan_aljudy
On Dec 28, 11:48 am, David Zhou <[EMAIL PROTECTED]> wrote: On Dec 28, 2006, at 10:19 AM, Trey wrote: > class Post(models.Model): >postId = models.AutoField(primary_key = True) >userId = models.ForeignKey(User, db_column = 'userId') >title = models.CharField(maxlength = 100) > cla

Re: CSS Basics

2006-12-20 Thread hasan_aljudy
On Dec 20, 9:45 am, "cwurld" <[EMAIL PROTECTED]> wrote: Thanks for all your replies. I can get things working the way you recommend, but I am concerned with the way it forces me to separate parts of my apps and it seems to create unnecessary complexity. I think it is important to distinguish