weird ifnotequal issue

2011-03-06 Thread Bobby Roberts
fieldname does in fact equal "-" so why is the TR still showing? {% ifnotequal mymodel.fieldname"-"%} Flagged Reason {{mymodel.fieldname}} {%endifnotequal%} -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Tracking Model's History

2011-03-06 Thread Venkatraman S
Hi, Similar to the way, the admin tracks the changes, i was looking for something which can be used in my app and stumbled on this . Q is : How efficient is this? I mean, do you see performance problems in your app

Re: Django view without app

2011-03-06 Thread Venkatraman S
On Mon, Mar 7, 2011 at 2:07 AM, Mike Ramirez wrote: > But it also > > > doesn't have it's own data, so an app for this view would be overkill. > How is it overkill? > > Please note that apps do not need to have forms, models, admin access or > even views, it can just be a

Re: Script to find all non-i18n parts of a django template

2011-03-06 Thread Venkatraman S
On Mon, Mar 7, 2011 at 3:30 AM, Rory McCann wrote: > Link to page: > http://www.technomancy.org/python/django-template-i18n-lint/ > Good stuff. I was planning to write one, but would rather use this ;) IF we make this stuff 'really' good (i mean, handling all false

rewrite rules

2011-03-06 Thread ronny
I have to make a blog application in multiple languages, to do this, I decided to use zinnia and create to separate urls blogfrench.com and blog.com (this is an example). I also used the multisite ability of django to have a single admin interface for both blogs. It works great, now I have a

Re: SQL generated for ManyToManyField is incorrect with Django 1.2.1

2011-03-06 Thread Ramiro Morales
On Sun, Mar 6, 2011 at 6:57 PM, Gergely wrote: > Hello, > I'm trying to find an answer to an old question that is why I'm > forwarding this old message. > I tried to find the documentation of this change but couldn't. > Could you please help me? > I would like to find out: >

Script to find all non-i18n parts of a django template

2011-03-06 Thread Rory McCann
Hi all, I'm in the middle of internationalizing an existing Django site. That basically means adding trans/blocktrans tags to all our templates. It's a bit of a pain! :P Also I'm likely to miss some string somewhere. So I wrote a python programme that'll search through a template and print out

Fwd: SQL generated for ManyToManyField is incorrect with Django 1.2.1

2011-03-06 Thread Gergely
Hello, I'm trying to find an answer to an old question that is why I'm forwarding this old message. I tried to find the documentation of this change but couldn't. Could you please help me? I would like to find out: - why is only one foreign key generated in the intermediary join table? - can I

Re: Django view without app

2011-03-06 Thread Mike Ramirez
On Sunday, March 06, 2011 10:07:07 am schwarzerrabe wrote: > Hi, > > I just recently started using Django to realize a small project, so > I'm really just a beginner. > > My question is: Where do I put a view that doesn't need an own app? > > My project is a library of DVDs, Books and other

Django view without app

2011-03-06 Thread schwarzerrabe
Hi, I just recently started using Django to realize a small project, so I'm really just a beginner. My question is: Where do I put a view that doesn't need an own app? My project is a library of DVDs, Books and other media types that is being used by multiple people at once. So I have created

Re: sites framework + gunicorn

2011-03-06 Thread ronny
what I mean is that each supervisor thread calls a separate gunicorn process. Sorry I'm getting the terms confused. Anyway, I tried it, but I'm still having trouble. Here is my supervisor.conf [program:gunicorn-blog-HE-development] directory=/var/www/blog.development/private/blog

Re: deprecation warning

2011-03-06 Thread Gabriel - Iulian Dumbrava
Thanks for your reference. I'm not using any custom fields defined by myself. Probably they are from one of the used apps. Thanks! Gabriel On 6 mar., 15:25, Łukasz Rekucki wrote: > On 6 March 2011 13:55, Gabriel - Iulian Dumbrava > > wrote: > >

Re: user profiles

2011-03-06 Thread Shawn Milochik
What have you read and what have you tried? When you tried those things, what errors or unexpected results did you get? Without that information nobody can help you. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

user profiles

2011-03-06 Thread Rich
hi i am trying to create user profiles with django , id like a user to be able to log in through the django admin site and add things to their profile, then view the profile on the profile page does anyone know of any tutorial created on how to set something like this up? ive been reading and

Re: deprecation warning

2011-03-06 Thread Łukasz Rekucki
On 6 March 2011 13:55, Gabriel - Iulian Dumbrava wrote: > I couldn't find any reference on what I have to change to get rid of > this deprecation warning. I'm using the trunk version: > > VERSION = (1, 3, 0, 'beta', 1) > > This is what I get: > > [Sun Mar 06 14:47:36

Re: change file upload filename, store the orignal, and postback on download the original filename

2011-03-06 Thread Gabriel - Iulian Dumbrava
For other to use, the final version for downloading the file is bellow. ReferenceFile is my model. import mimetypes from django.core.servers.basehttp import FileWrapper from django.http import HttpResponse def download(request, id): file_to_download = get_object_or_404(ReferenceFile,

deprecation warning

2011-03-06 Thread Gabriel - Iulian Dumbrava
I couldn't find any reference on what I have to change to get rid of this deprecation warning. I'm using the trunk version: VERSION = (1, 3, 0, 'beta', 1) This is what I get: [Sun Mar 06 14:47:36 2011] [error] /usr/local/lib/python2.6/dist- packages/django/db/models/fields/subclassing.py:80: