Re: media

2007-09-20 Thread AniNair
Thank you. It's working now... --~--~-~--~~~---~--~~ 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

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
I agree by the way, MEDIA_URL should always have a trailing slash. Does anyone know why the documentation says not to include a trailing slash on a domain? Why not have "http://media.example.com/;? On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > On Sep 20, 5:53 pm, Dave Lowe <[EMAIL

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Ben Ford
It would be a good time wouldn't it?! ;-) Sorry I didn't add my 2c worth yesterday, I was extremely busy and will remain so for the next week or 2. I've sent a message to the list regarding the latest patch to the branch and also updated ticket 4747with

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
On 21-Sep-07, at 7:55 AM, Kenneth Gonsalves wrote: >> which has problems with the special characters? > > all reports use the same font. And all the other reports display that > particular problem character ok. And, just noticed that the same > problem character that refuses Good uses appears

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
On 20-Sep-07, at 7:09 PM, Nis Jørgensen wrote: >> it does - but so do other words that are getting translated >> successfully, and 'Good' itself is getting rendered properly in other >> parts of the site and in other reports >> > Still, those other parts/reports may be doing something slightly

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Russell Keith-Magee
On 9/21/07, Carlos Hanson <[EMAIL PROTECTED]> wrote: > > > On Sep 19, 5:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > Thank you. Yes, I have done that and understand it is a standalone > check out. My wording was imprecise. It should have been something > like the following: > >

Re: Creating a Form with some uneditable fields

2007-09-20 Thread Richard Dahl
Off the top of my head, not necessarily the cleanest way of doing this but it should work. Pass the request.user as user if this is the user that the form is for: i.e. return (render_to_response('form_template', {'user': request.user, 'form': form}) the template could then look something

Re: Having Django iterate through JSON possible?

2007-09-20 Thread Russell Keith-Magee
On 9/21/07, robo <[EMAIL PROTECTED]> wrote: > > To Russel: you said that this decimal serialization issue was fixed a > long time ago. How so? s/Russel/Russell/ :-) I'm not entirely sure what 'this decimal serialization issue' actually is - this thread hasn't produced a clear test case that

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
And then it breaks on my production server. The slash has to be there in the template. On Sep 20, 4:53 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > > > I have the feeling I'm missing something. What does everyone else do > > to get

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread SmileyChris
On Sep 20, 5:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I have the feeling I'm missing something. What does everyone else do > to get around this? Uh, so remove the slash in your template. href="{{ MEDIA_URL }}css/master.css" Side note - IMO, MEDIA_URL should *always* have a trailing slash.

Re: General site organization

2007-09-20 Thread jake elliott
hi florian - Florian Lindner wrote: > I have the site xgm.de with a blog, an abbreviation database and some static > pages. > How would a organize such a site with Django? > Create an app for the blog, an app for the DB and the static pages as > templates of the project? you really have a lot

Re: error: psycopg requires a datetime module

2007-09-20 Thread [EMAIL PROTECTED]
I've got MacPorts installed, but when I try to run port install py-psycopg2 I get this: Error: Unable to execute port: ln: /opt/local/var/macports/sources/ rsync.macports.org/release/ports/python/py-psycopg2/work: Permission denied I'm the only admin/user on this machine so why are permissions

Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]
ok, resovled, daniel is right, thanks! On Sep 20, 11:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i used {{ rate_list.1.rate }} in template, there is no error and no > result. > i used {{ rate_list.[1].rate }} then the error is :Could not parse the > remainder: '[1].rate' from

General site organization

2007-09-20 Thread Florian Lindner
Hello, I have the site xgm.de with a blog, an abbreviation database and some static pages. How would a organize such a site with Django? Create an app for the blog, an app for the DB and an app for the rest of the site or Create an app for the blog, an app for the DB and the static pages as

Re: Django application using ORM only

2007-09-20 Thread James Bennett
On 9/20/07, Martin Taylor <[EMAIL PROTECTED]> wrote: > Any assistance with either of these items, including pointers to > examples and documentation, would be greatly appreciated. http://groups.google.com/group/django-users/search?group=django-users=standalone+orm_g=Search+this+group (the

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Dave Lowe
I'm using the Django built-in server for dev. On Sep 20, 3:15 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > > > > > I'm running into issues with theMEDIA_URLand that cursed trailing > > slash. Here's what the documentation says

Re: Trying to install trunk version - svn error

2007-09-20 Thread [EMAIL PROTECTED]
REPORT and a number of other less than popular http verbs that subversion uses are not enabled by default on many proxies such as Squid. See if you can get it to work with some other repositories like the google ones. If you are using squid it's easy enough to search for the proper config

Django application using ORM only

2007-09-20 Thread Martin Taylor
Although Django's web side is nice, and I like the "free" Admin interface, what I really want to use Django for is its data model ORM and resulting "free" API. I want to use this to build a stand-alone Python application, using wxWidget for more sophisticated UI than I can get on a web page.

Re: merging multiple-db-support branch with svn trunk checkout

2007-09-20 Thread Carlos Hanson
On Sep 19, 5:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/20/07, Carlos Hanson <[EMAIL PROTECTED]> wrote: > > > > > Greetings, > > > I am using the current svn checkout of the trunk and would like to > > include the multiple-db-support branch. What is the best way to do > >

Re: Fixtures for built-in Django model

2007-09-20 Thread mdorn
Confirming that this worked--thanks Richard. On Sep 20, 12:56 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > Try > "auth.user" as the model > -richard > > On 9/20/07, mdorn <[EMAIL PROTECTED]> wrote: > > > > > I'd like to include a couple of example users in initial_data fixtures > > as part of

Re: def __str__(self,):

2007-09-20 Thread James Bennett
On 9/20/07, Greg <[EMAIL PROTECTED]> wrote: > However, when I view this is the admin I get the following error: > '__str__ returned non-string (type float)'. Is there anyway to solve > this problem? Do I have to return a string? Yes. You *must* return a string, because the entire point of

Re: def __str__(self,):

2007-09-20 Thread mika
You could try return str(self.name) or return '%i' % self.name On 9/20/07, Greg <[EMAIL PROTECTED]> wrote: > > Do this method have to return a string? I have the following model: > > class Price(models.Model): > name = models.DecimalField(max_digits=6, decimal_places=2) > price_cat =

def __str__(self,):

2007-09-20 Thread Greg
Do this method have to return a string? I have the following model: class Price(models.Model): name = models.DecimalField(max_digits=6, decimal_places=2) price_cat = models.ForeignKey(PriceCategory) def __str__(self,): return self.name class Admin: pass

Re: django, flup, and googlebot

2007-09-20 Thread Darrin Thompson
On 9/20/07, John Melesky <[EMAIL PROTECTED]> wrote: > I don't have this problem (assuming your problem is that no HTML is > served to the curl request). What is your config? > Just to be clear, the bot came and made a HEAD request to a number of pages. A HEAD request isn't supposed to serve

Re: Fixtures for built-in Django model

2007-09-20 Thread Richard Dahl
Try "auth.user" as the model -richard On 9/20/07, mdorn <[EMAIL PROTECTED]> wrote: > > > I'd like to include a couple of example users in initial_data fixtures > as part of my application. I thought that maybe something like this > would work in my JSON fixture file: > > [ > { >

Reinstalling Windows without any data loss.

2007-09-20 Thread aemxtjob
Reinstalling Windows without any data loss. That's a well-known fact: the Windows operating system becomes unstable with time. It regularly freezes, acquires a lot of useless functions and trash in the registry. Specialists recommend reinstalling Windows from scratch not less than once a

Fixtures for built-in Django model

2007-09-20 Thread mdorn
I'd like to include a couple of example users in initial_data fixtures as part of my application. I thought that maybe something like this would work in my JSON fixture file: [ { "pk": "1", "model": "django.contrib.auth.models.user", "fields": {

Re: Trying to install trunk version - svn error

2007-09-20 Thread Ian
On Sep 19, 6:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm using django 0.96 / python 2.5.1 / ubuntu 7.04 but I got the 00903 > Oracle error and I'm trying to use the trunk version. > > I follow the instruction onhttp://www.djangoproject.com/documentation/install/ > But I got: > >

Re: Poll: is anyone still using the old ordering syntax?

2007-09-20 Thread Jeremy Dunck
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Howdy folks -- > > Quick question: is anyone still actually using the old ordering syntax > in order_by? Thanks, you made me go clean out some dead code. ;-) No for us. --~--~-~--~~~---~--~~ You

Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread Forest Bond
Hi, On Thu, Sep 20, 2007 at 09:39:05AM -0700, shabda wrote: > Would writing a middleware for this be a good idea? Then if we get the > DNE, we just return 404 from process_exception. And during development > we can just keep our middleware out, so that no real bugs beome 404. > When we deploy, we

Re: django, flup, and googlebot

2007-09-20 Thread John Melesky
On Sep 20, 2007, at 10:50 AM, Darrin Thompson wrote: > I'm running lighttpd, flup, and django 0.96. I'm running similar, but django trunk. > So I tried to be the bot and looked at what it would have seen: > > $ curl -s -I http://.com/HTTP/1.1 200 OK > Vary: Cookie > Content-Type: text/html;

Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread shabda
Would writing a middleware for this be a good idea? Then if we get the DNE, we just return 404 from process_exception. And during development we can just keep our middleware out, so that no real bugs beome 404. When we deploy, we can just switch this middleware on. On Sep 20, 9:12 pm, Forest

Creating a Form with some uneditable fields

2007-09-20 Thread Simone Cittadini
I have some models like : class UserOfSomeStuff(models.Model): [...] class AvailableStuffToUse(models.Model): [...] class CurrentlyUsedStuff(models.Model): user = models.ForeignKey(UserOfSomeStuff) used_stuff = models.ForeignKey(AvailableStuffToUse) In my application I don't

Poll: is anyone still using the old ordering syntax?

2007-09-20 Thread Jacob Kaplan-Moss
Howdy folks -- Quick question: is anyone still actually using the old ordering syntax in order_by? If you don't know what I'm talking about, by the way, then the answer is "no": Django used to have a verbose, tuple-based ordering syntax before we switched to the simple string-based version. We

Re: How can we map a specific HTTP error to a python exception?

2007-09-20 Thread Forest Bond
Hi, On Thu, Sep 20, 2007 at 08:47:57AM -0700, shabda wrote: > I have a number of pages which can potentially raise the > self.model.DoesNotExist exception. Whenever this exception is raised, > it maps to a HTTP 404 for me. (That object does not exist in the > database, so I cant show this, so I

Re: Having Django iterate through JSON possible?

2007-09-20 Thread robo
I've found this piece of code from Wolfram Kriesing: http://dpaste.com/hold/4601/ He hacked it so that any decimal field is returned as a string. All you have to do to use this is paste the code into a file, such as json.py, and import the json_encode function from that file where you want to

Re: django, flup, and googlebot

2007-09-20 Thread James Bennett
On 9/20/07, Darrin Thompson <[EMAIL PROTECTED]> wrote: > So I tried to be the bot and looked at what it would have seen: > > $ curl -s -I http://.com/HTTP/1.1 200 OK > Vary: Cookie > Content-Type: text/html; charset=utf-8 > Date: Thu, 20 Sep 2007 15:44:33 GMT > Server: lighttpd/1.4.13 > > I

Re: How's the water in the svn pool?

2007-09-20 Thread Pigletto
> I've been thinking about updating my 0.96 apps to the latest svn to > get at some of the new features. I decided to put it off until after > the sprint since I figured a lot would happen. So did the sprint > introduce as many bugs as it closed out? Is current svn stable enough > to try out

django, flup, and googlebot

2007-09-20 Thread Darrin Thompson
I'm running lighttpd, flup, and django 0.96. I recently switched to django for my web site. When I first did this, the search bots came and indexed it dutifully. I recently wrote a bunch of copy for my site, and waited, pathetically tailing my access logs, watching for the next crawl. When

How can we map a specific HTTP error to a python exception?

2007-09-20 Thread shabda
I have a number of pages which can potentially raise the self.model.DoesNotExist exception. Whenever this exception is raised, it maps to a HTTP 404 for me. (That object does not exist in the database, so I cant show this, so I want to return a 404 exception). So apart from manually adding

Re: How to clean the cache completely?

2007-09-20 Thread Jens Diemer
Deryck Hodge schrieb: > On 9/20/07, Jens Diemer <[EMAIL PROTECTED]> wrote: >> I can delete one entry in the cache. But how can i clean the cache >> completely? > Assuming your cache backend is memcached: > > from django.core.cache import cache > cache._cache.flush_all() > > I don't use the

How's the water in the svn pool?

2007-09-20 Thread [EMAIL PROTECTED]
I've been thinking about updating my 0.96 apps to the latest svn to get at some of the new features. I decided to put it off until after the sprint since I figured a lot would happen. So did the sprint introduce as many bugs as it closed out? Is current svn stable enough to try out or should I

Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]
i used {{ rate_list.1.rate }} in template, there is no error and no result. i used {{ rate_list.[1].rate }} then the error is :Could not parse the remainder: '[1].rate' from 'rate_list.[1].rate' i used {{ rate_list[1].rate }} then the error is :Could not parse the remainder: '[1].rate' from

Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]
sorry, it is not work. to simplify my question is how to show a list in template file as list[1].name as it does in shell mode etc. thanks! On Sep 20, 5:33 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > i have

Cashcrate: A Good Paid Online Surveys

2007-09-20 Thread harry
To make money online survey taking, I have found that Cashcrate has been the best use of my time and efforts. Not only are the surveys frequent and ongoing, and you don't have to earn much to get your first bank deposit/check, but their referral program is great. You can find out more by clicking

Re: Model field as a password definition

2007-09-20 Thread Richard Dahl
Nader, Within your model use the field type that corresponds to the data that you are going to store in it. There is no 'password' data-type that I know of, nor is there a database column type of 'password', in most RDBMS's. You need to store characters in the database for the password, however

Re: media

2007-09-20 Thread Alaa Salman
Hi, Yes serving static files is for this use. Any kind of asset for your application that is not dynamic in nature would ofcourse be static(so images, css, javascript and so on). And so, follow the directions in that help file and it will solve your problem. Moreover, when something doesn't work

JOIN THE HOTTEST GROUP ON THE NET !!!! OVER 10,000 JOIN WEEKLY FREE SIGN UP!

2007-09-20 Thread dating the right mate
JOIN THE HOTTEST GROUP ON THE NET OVER 10,000 JOIN WEEKLY FREE SIGN UP! http://www.blpurl.com/al42 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Model field as a password definition

2007-09-20 Thread Nader
Hello, I use Django 0.96 and in one of model field I have to define a password entry: class MyModel(...): password = modles.PasswordField() I can't do it because we don't have any "Password" attribute. I have been looking for this problem, but it has been not solved. The last alternative

Re: Having Django iterate through JSON possible?

2007-09-20 Thread Richard Dahl
My bad it is not a bug in Django, I was it was on this list a while ago, a quick search provided this: " here's no bug here. Firstly, it's a "problem" with simplejson, not with Django. It would be bad policy for us to make any changes to simplejson. We just include a copy of the upstream

Re: How to clean the cache completely?

2007-09-20 Thread Deryck Hodge
On 9/20/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > > I can delete one entry in the cache. But how can i clean the cache completely? > Hi, Jens. Assuming your cache backend is memcached: from django.core.cache import cache cache._cache.flush_all() I don't use the other cache backends

Re: baffling i18n problem after unicode update

2007-09-20 Thread Nis Jørgensen
Kenneth Gonsalves skrev: > On 20-Sep-07, at 4:42 PM, Werner F. Bruhin wrote: > > >>> other pdf reports. Not this particular one. I *know* there has to be >>> some very simple explanation for this - but cant for the life of me >>> find what it is. >>> >>> >> Does "Good" in Finish use

Re: TemplateSyntaxError after svn-updating

2007-09-20 Thread Filipe Correia
Just sorted it out. I've added the template's root dir to TEMPLATE_DIRS and started simply using: {% extends "common/searchForm.html" %} cheers, Filipe On Sep 19, 5:31 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hello, > > I've svn updated my working copy of django and started getting the >

Re: media

2007-09-20 Thread AniNair
I tried that.. It's just for serving static files. I don't know why but i believed that it should've displayed the html page correctly at the first time itself. Where am I wrong? Plz help --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: sessions and cookies problems

2007-09-20 Thread beck917
There is the same problem with me for many days~~ "Username: Your Web browser doesn't appear to have cookies enabled. Cookies are required for logging in. " Help~~thx may be clear the session table will solve the problem~~ 2007/9/20, Ana <[EMAIL PROTECTED]>: > > > Hi, > I have problem with

i18n/setlang no longer support GET

2007-09-20 Thread Arnold Chen
I used to use /i18n/setlang?language=zh-cn approach to change language. However i found that the latest (as of this writing 20th Sept, 2007) svn version django do not support calling the url using GET, and there is a sentence in the function set_language in the i18n.py file "Since this view

Re: media

2007-09-20 Thread AniNair
thanks alot... I wanted to serve an html page which has an image. For eg: there is a welcome page which asks the user to log in. It shows an image (a company logo)on top along with the form. This image will appear on top of all the pages. Is serving static files the solution? Just wanted to make

Re: media

2007-09-20 Thread Samuel Adam
http://www.djangoproject.com/documentation/static_files/ --~--~-~--~~~---~--~~ 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

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
On 20-Sep-07, at 4:42 PM, Werner F. Bruhin wrote: >> other pdf reports. Not this particular one. I *know* there has to be >> some very simple explanation for this - but cant for the life of me >> find what it is. >> > Does "Good" in Finish use some special characters? it does - but so do other

Re: media

2007-09-20 Thread AniNair
I am a beginner... needs help ... trying to do this like In my view i just return render_to_response('welcome.html',) And in the html page, I have an image This works fine and the image is displayed when I try to open it with explorer or any other browser but when I try to run localhost:8000,

Re: baffling i18n problem after unicode update

2007-09-20 Thread Werner F. Bruhin
Kenneth Gonsalves wrote: > there is only one .po file - Good, Poor and Average are all there. > Further, all three were working for the past year, only on update to > the unicode branch that this happened. I thought maybe Good was > marked as Fuzzy, but it is not - and anyway it translates

Re: apache authorization with django

2007-09-20 Thread Robin Becker
Graham Dumpleton wrote: .. >> >> I for one am not sure; are we saying that even if I'm using flup / fastcgi as >> the transport I'm not able to use that for authorization? > > That depends on whether flup supports the backend side of the FASTCGI > specifications

Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-20 Thread Landlord Bulfleet
Thanks :) Looks like this is the solution to our problem. We haven't tested it yet but will try soon. Thanks again On 9/20/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 9/19/07, Landlord Bulfleet <[EMAIL PROTECTED]> wrote: > ... > > > > sum is property of a model object in our database > >

sessions and cookies problems

2007-09-20 Thread Ana
Hi, I have problem with sessions and loggin function in my application. When user wants to login but enter wrong username or password and click "ok" the wrong password error occurs and that's correct. But when the user wants to correct a mistake and click "ok" en error: "Error: no_cookies =

Re: baffling i18n problem after unicode update

2007-09-20 Thread Kenneth Gonsalves
there is only one .po file - Good, Poor and Average are all there. Further, all three were working for the past year, only on update to the unicode branch that this happened. I thought maybe Good was marked as Fuzzy, but it is not - and anyway it translates fine in other pdf reports. Not

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Graham Dumpleton
On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I'm running into issues with the MEDIA_URL and that cursed trailing > slash. Here's what the documentation says about MEDIA_URL: > > "Note that this should have a trailing slash if it has a path > component." Good examples given >

Re: apache authorization with django

2007-09-20 Thread Graham Dumpleton
On Sep 20, 7:13 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> > > wrote: > >> On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > >>> Not properly though. > >> Indeed -- the auth handler has always

Re: Today's newform-admin branch, svn version 6364

2007-09-20 Thread Pigletto
> >> Looking at the initial_data.json file I think it complains about > >> timestamps such as '2007-09-16 12:34:51.765432'. Removing the sub- > >> second parts fixes it, it accepts a :SS component. This happen in > >> user and some other fixture json records (e.g. log_entries). This problem is

Re: how to list a array's element?

2007-09-20 Thread Daniel Roseman
On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i have a templatetags as following: > > {% load bookmarks.templatetags.commrate %} > {% rate_for_object suburb as rate_list %} > {% for rate in rate_list %} > rate: {{ rate.rate }} >{% endfor

Re: baffling i18n problem after unicode update

2007-09-20 Thread Bert Heymans
Kenneth You most probably checked this but in the spirit of Ockham's Razor ... maybe you just don't have the translation for 'Good' filled in in the Finnish po file for that .py file but do have it translated for another context? That could explain why it shows up in some other places but not in

Re: how to list a array's element?

2007-09-20 Thread Bert Heymans
You'll have to give some more information and put some more effort in describing you problem for people to help you out Kevin. Cheers, Bert On Sep 20, 8:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > this is question of how list one element of a queryset in template. > > can somebody

How to clean the cache completely?

2007-09-20 Thread Jens Diemer
I can delete one entry in the cache. But how can i clean the cache completely? -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]
this is question of how list one element of a queryset in template. can somebody help me, thanks! On 9月20日, 下午2时04分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i have a templatetags as following: > > {% load bookmarks.templatetags.commrate %} > {% rate_for_object suburb as

Re: Using unitest or doc test with complex output

2007-09-20 Thread Russell Keith-Magee
On 9/20/07, cesco <[EMAIL PROTECTED]> wrote: > > Thanks for the clarification. > > Basically the view I was trying to test returns a list of list of > querysets and, for some combination of parameters, the queryset is > empty, that is, it returns a list containing an empty list. Shouldn't > the

Re: Using unitest or doc test with complex output

2007-09-20 Thread cesco
Thanks for the clarification. I understand now the problem regarding doctests and the comparison of the same objects. The thing I'm still missing is how can the test fail when I'm comparing a list containing an empty list with a list containing an empty list as well. No model object is involved

how to list a array's element?

2007-09-20 Thread [EMAIL PROTECTED]
i have a templatetags as following: {% load bookmarks.templatetags.commrate %} {% rate_for_object suburb as rate_list %} {% for rate in rate_list %} rate: {{ rate.rate }} {% endfor %} it works well for me, but i want to list the element as {{ rate_list[1].rate