Re: Troubles with exceptions having localized text in debug.technical_500_response exception

2008-01-09 Thread Peter Melvyn
On 1/10/08, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > It's a bug. Please open a ticket about it, so we don't forget. Thank you for your help. Done. http://code.djangoproject.com/ticket/6353 Peter --~--~-~--~~~---~--~~ You received this message because

Re: Basic MySQLdb Install

2008-01-09 Thread David Grant
On Jan 9, 2008 6:46 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > On Jan 9, 1:16 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > > Why are you compiling mysql and python and mysqldb from scratch? You are > > using SUSE are you not? Get the binary rpm packages. > > > > Dave > > Regardless of my last

advice on table joins

2008-01-09 Thread Ken
I need some advice. I'm struggling with a query that spans 4 tables. "Struggling" is a bad word; I'll explain later. Django uses a model- oriented query system together with a Foreign Key manager to get to the "next" joining table. A query that spans several tables results in a deeply nested

Re: Basic MySQLdb Install

2008-01-09 Thread rob_mazur
On Jan 9, 1:16 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > Why are you compiling mysql and python and mysqldb from scratch? You are > using SUSE are you not? Get the binary rpm packages. > > Dave Regardless of my last post, I followed your advice and installed python-mysql via SuSE's package

Re: Basic MySQLdb Install

2008-01-09 Thread rob_mazur
On Jan 9, 1:16 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > Why are you compiling mysql and python and mysqldb from scratch? You are > using SUSE are you not? Get the binary rpm packages. > > Dave > Thanks for the response, David. I need to keep 3 or 4 versions of MySQL handy for my regular

Re: read only in Admin interface

2008-01-09 Thread [EMAIL PROTECTED]
Hello, This past summer I did exactly this using newforms-admin. I can't remember off the top of my head how I did it, and I don't have access to my code, but I'd suggest looking there first. I remember that it wasn't too difficult, actually. Hope that helps! Thanks, Eric Florenzano On Jan

EXCELENTE OPORTUNIDAD PARA INVERTIR !! !!

2008-01-09 Thread Natalia
VENDO PROPIEDAD ubicada en Zona Residencial de la Ciudad de Tunuyán, Provincia de Mendoza, País Argentina. A 30 km de la Cordillera de Los Andes. Aire puro y agua de manantial. Clima agradable. Hermoso Paisaje. Terreno de 800 metros cuadrados, 160 cubiertos. 5 dormitorios, 1 baño, cocina,

Re: read only in Admin interface

2008-01-09 Thread Kenneth Gonsalves
On 09-Jan-08, at 12:14 AM, James Bennett wrote: >> Another dirty solution would be to simply create a user account, and >> give it permissions to only view things. I haven't played with >> permissions at all, but I imagine it would be possible. >> The correct way is still to write your own code

Re: An easier way to do this Pagination in a template?

2008-01-09 Thread Prof. William Battersea
Thank you both for reading a question that turned out to be much longer than I intended. I'll go read up on template tags and custom filters. On Jan 9, 2008 6:37 PM, Rock <[EMAIL PROTECTED]> wrote: > > I would move the logic into a custom filter. This keeps it out of the > view and radically

Re: An easier way to do this Pagination in a template?

2008-01-09 Thread Rock
I would move the logic into a custom filter. This keeps it out of the view and radically simplifies the template logic. It is easy to create a filter that takes an argument, so the fact that you have two inputs (page_number and current_page) is no problem. On Jan 9, 11:02 am, "Prof. William

Re: An easier way to do this Pagination in a template?

2008-01-09 Thread Malcolm Tredinnick
On Wed, 2008-01-09 at 12:02 -0500, Prof. William Battersea wrote: > Hello, > > On nearly every page of the website I'm creating, I have a list of > recent articles in the sidebar that works as a complete archive. You > can sort them by newest/oldest, and page through the entire archive. > The

Re: Troubles with exceptions having localized text in debug.technical_500_response exception

2008-01-09 Thread Malcolm Tredinnick
On Wed, 2008-01-09 at 15:12 +0100, Peter Melvyn wrote: > Hi all, > > I raise an exception with localized text, e.g. > > raise XXXInternalException, ugettext('_XXX_ERROR_...') % (...) > > If I catch such exception and handle it in my view, everything is OK. > > But if I do not catch such

Re: Basic MySQLdb Install

2008-01-09 Thread David Grant
Why are you compiling mysql and python and mysqldb from scratch? You are using SUSE are you not? Get the binary rpm packages. Dave On Jan 9, 2008 12:13 PM, rob_mazur <[EMAIL PROTECTED]> wrote: > > Python 2.5.1 > MySQL 5.0.51 > MySQL-python-1.2.2 > gcc version 4.0.2 20050901 (prerelease) (SUSE

Re: How is this page being loaded?

2008-01-09 Thread Darthmahon
Hi Fredrik, Thanks for the link - got it working now :) I've also stumbled upon templatetags which are pretty nice. Is there anywhere that mentioned when templatetags should be used against generic views? Or is it basically up to the developer? I like to try and keep to best practices so

Re: static file problems (newbie)

2008-01-09 Thread [EMAIL PROTECTED]
Thanks, indeed i made a mistake in that part, i changed it to screen and now it works. this is really something i should keep in mind while migrating applications. thanks again, Richard On Jan 9, 4:54 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Jan 9, 2008 10:28 AM, [EMAIL PROTECTED]

the must 30 songs inthe world..ever at

2008-01-09 Thread lnpworld
http://glycoblug.webs.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

the must 30 songs inthe world..ever at

2008-01-09 Thread lnpworld
http://glycoblug.webs.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Basic MySQLdb Install

2008-01-09 Thread rob_mazur
Python 2.5.1 MySQL 5.0.51 MySQL-python-1.2.2 gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) SUSE 10.0 (i586) --- I have been struggling with this for a full day. Bascially when I try: >>>import MySQLdb ... I get: >>> import

Re: How is this page being loaded?

2008-01-09 Thread Fredrik Lundh
Darthmahon wrote: > I've been looking through the source code for djangoproject.com which > is really useful and has helped me a lot, but I have a question > regarding the code. > > Does anyone know how the url www.djangoproject.com/community know > which template it needs to load? > > I've

How is this page being loaded?

2008-01-09 Thread Darthmahon
I've been looking through the source code for djangoproject.com which is really useful and has helped me a lot, but I have a question regarding the code. Does anyone know how the url www.djangoproject.com/community know which template it needs to load? I've been looking to see how they have

Re: how to create new variable in html file in template

2008-01-09 Thread Lic. José M. Rodriguez Bacallao
Peter is right, use the last snippet just if you feel the need. On Jan 9, 2008 11:07 AM, Peter Rowell <[EMAIL PROTECTED]> wrote: > > On Jan 9, 12:20 am, Gaojiawang <[EMAIL PROTECTED]> wrote: > > I want to use the local variable in template's html file. > > like 'count = 0' and how to use it > >

Simple Installation question

2008-01-09 Thread kbochert
I'm trying to install Django on a host. The host has Python 2.4, but some site-packages I need are missing. I FTP'd ez_setup.py to my public_ftp/incoming directory and ran it Using SSH I can see that /usr/lib/python2.4/site-packages now contains a directory setuptools-0.6c7-py2.4.egg which in

An easier way to do this Pagination in a template?

2008-01-09 Thread Prof. William Battersea
Hello, On nearly every page of the website I'm creating, I have a list of recent articles in the sidebar that works as a complete archive. You can sort them by newest/oldest, and page through the entire archive. The template code for the pagination looks like this {% for page_number in page_list

Re: how to create new variable in html file in template

2008-01-09 Thread Peter Rowell
On Jan 9, 12:20 am, Gaojiawang <[EMAIL PROTECTED]> wrote: > I want to use the local variable in template's html file. > like 'count = 0' and how to use it > How to do it? The snippet José links to uses the resolve function of Django's templating system, which is good because it stays within the

Re: static file problems (newbie)

2008-01-09 Thread Marty Alchin
On Jan 9, 2008 10:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I can access it, also all the images can be viewed by going to the > url. > It only won't appear in the actual html files. > > > the link that i put in my index file is the following > > > > > media="print" > I have one

Re: static file problems (newbie)

2008-01-09 Thread [EMAIL PROTECTED]
Hello, I can access it, also all the images can be viewed by going to the url. It only won't appear in the actual html files. Richard On Jan 9, 3:29 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > Can you accesshttp://127.0.0.1:8000/css/idap.css? > > Maybe you have a tag in you html?

الادارة

2008-01-09 Thread [EMAIL PROTECTED]
السلام عليكم . تعلن ادارة مجموعة ( المتحري ) عن فتح باب التسجيل للاعضاء الجدد وسيتم ذالك عن الطريقة الاتية : ارسل رسالة الى البريد الاتي ( [EMAIL PROTECTED] ) واكتب بها الاتي : 1_البريد الاكتروني الخاص بك 2_نص الرسالة التي ستطلب بها التسجيل

an academic question

2008-01-09 Thread Ramdas S
Hi, Is anyone at World Online or Django team tracking the number of SVN Downloads or the stable version downloads of Django. Some numbers are interesting? RS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: static file problems (newbie)

2008-01-09 Thread Thomas Guettler
Hi, Can you access http://127.0.0.1:8000/css/idap.css ? Maybe you have a tag in you html? Am Mittwoch, 9. Januar 2008 13:49 schrieb [EMAIL PROTECTED]: > Hello Django Users, > > I looked at the documentation about the static file serving but don't > seem to get it to work. > > the url pattern

Troubles with exceptions having localized text in debug.technical_500_response exception

2008-01-09 Thread Peter Melvyn
Hi all, I raise an exception with localized text, e.g. raise XXXInternalException, ugettext('_XXX_ERROR_...') % (...) If I catch such exception and handle it in my view, everything is OK. But if I do not catch such exception and it continues until caught in base.get_response() function,

Re: how to create new variable in html file in template

2008-01-09 Thread Lic. José M. Rodriguez Bacallao
I had just made a template tag to do exactly what you are looking for: "assign a variable or make a variable in a template", here is the link to see the code in djangosnippets: http://www.djangosnippets.org/snippets/539/ I hope this will help. On Jan 9, 2008 6:04 AM, [EMAIL PROTECTED] <[EMAIL

Re: Union query and/or query from multiple tables

2008-01-09 Thread Malcolm Tredinnick
On Wed, 2008-01-09 at 04:44 -0800, Mr T wrote: > I am a newbie at this Django development environment and my Python is > not as good as I would like it but I am still in the early stages of > learning, so any help is appreciated. > > I have stumbled over a block which I can't yet get over so if

static file problems (newbie)

2008-01-09 Thread [EMAIL PROTECTED]
Hello Django Users, I looked at the documentation about the static file serving but don't seem to get it to work. the url pattern i put down is the following (r'^css/(?P.*)$','django.views.static.serve',{'document_root':'/ Users/cyclops/Documents/crosslinks/idap/qualityControl/templates/

Union query and/or query from multiple tables

2008-01-09 Thread Mr T
I am a newbie at this Django development environment and my Python is not as good as I would like it but I am still in the early stages of learning, so any help is appreciated. I have stumbled over a block which I can't yet get over so if anyone can help I thank you in advance. I need to

Re: newforms filter with models help

2008-01-09 Thread Malcolm Tredinnick
On Wed, 2008-01-09 at 03:29 -0800, [EMAIL PROTECTED] wrote: > Hi can anyone help me Im trying to do a filter on my form to filter an > email my code is a s follows any help on why this is not working will > be greatly appreciated You didn't what the problem you are seeing is, but I think I can

newforms filter with models help

2008-01-09 Thread leahy_rich
Hi can anyone help me Im trying to do a filter on my form to filter an email my code is a s follows any help on why this is not working will be greatly appreciated class Details(models.Model): name = models.CharField(maxlength=80) surname = models.CharField(maxlength=80)

Re: how to create new variable in html file in template

2008-01-09 Thread [EMAIL PROTECTED]
Sorry, i'm in the habit of using tabs to indent code, so I pressed tab while editing that sinippet, then hit enter, which ended up sending the message. Anyways, you could som something like: {% for o in some_list %} {% cycle '/' '/' '/' '' %} {% endfor %} That should print a newline

Re: how to create new variable in html file in template

2008-01-09 Thread [EMAIL PROTECTED]
You could use the "cycle" template tag (Documentation). If your separator for a single row was a slash, you could do something like {% for o in some_list %} {% cycle '' 'row2' rowvar %} ... {% endfor %} --~--~-~--~~~---~--~~ You received this

Re: Middleware for checking client info and many other queries

2008-01-09 Thread Udi
Re: #2 I wouldn't worry about it. http://aspn.activestate.com/ASPN/Mail/Message/python-list/998253 Re: #4 http://www.djangosnippets.org/snippets/358/ http://code.djangoproject.com/wiki/PageStatsMiddleware On Jan 8, 12:35 am, "Ravi Kumar" <[EMAIL PROTECTED]> wrote: > Hi, > This is my First

Re: how to create new variable in html file in template

2008-01-09 Thread David Grant
I have no idea what you are doing exactly...maybe this helps: http://www.djangoproject.com/documentation/templates/#cycle Perhaps provide an example of your query set and what you want it the final output to look like. Dave On Jan 9, 2008 12:52 AM, Gaojiawang <[EMAIL PROTECTED]> wrote: > > Hi,

Re: how to create new variable in html file in template

2008-01-09 Thread Gaojiawang
Hi, Thanks your reply. I get an assemblly data and want to show in the template. How to show four result in one row? I have no idea about this. Thanks and regards. On Jan 9, 4:24 pm, "David Grant" <[EMAIL PROTECTED]> wrote: > I'm pretty sure you can't do that. > >

Re: how to create new variable in html file in template

2008-01-09 Thread David Grant
I'm pretty sure you can't do that. http://www.djangobook.com/en/1.0/chapter04/ (see "Philosophies and Limitations") also, http://www.djangoproject.com/documentation/ Dave On Jan 9, 2008 12:20 AM, Gaojiawang <[EMAIL PROTECTED]> wrote: > > Hi,all > I want to use the local variable in

how to create new variable in html file in template

2008-01-09 Thread Gaojiawang
Hi,all I want to use the local variable in template's html file. like 'count = 0' and how to use it {% ifequal count%4 0%} do something {% endifequal%} But Do not pass. How to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Middleware for checking client info and many other queries

2008-01-09 Thread Graham Dumpleton
On Jan 9, 6:04 pm, "Ravi Kumar" <[EMAIL PROTECTED]> wrote: > Yes, I am using older self compiled version. Hmm, > Well, lets look at what the new release has now. > Are you people sure when I setup Django on mod_python+Apache+Linux, there > won't be memory issues like what I read about the older