Re: Database design

2006-11-14 Thread Carl Holm
Another good read on the subject... Title: Database in Depth Subtitle: Relational Theory for Practitioners First Edition: May 2005 Series: Theory In Practice ISBN: 0-596-10012-4 Pages: 228 - available from O'reilly Eric Lake wrote: > I think that I am really starting to understand how django wo

Re: How about a real django installer?

2006-11-14 Thread Rob Hudson
James Bennett wrote: > Anybody with experience on these platforms want to step up and help > out with easier install processes? On Mac OS X I installed MacPorts (macports.org), then did a "port install py-django-devel" and it pulled down Python and Django for me. I had to also "port install py-sq

Re: almost got django app to work on apache 2.2 and mod_python

2006-11-14 Thread Benedict Verheyen
Benedict Verheyen schreef: I was able to remove the settings.py, manage.py and urls.py from the D:\sitesdjango\ directory by correctly using a .pth file in site-packages. The content of the gema.pth file is set to D:\sitesdjango\gema But then all the don't work and the layout is gone. Any more i

drilling down with generic views

2006-11-14 Thread [EMAIL PROTECTED]
Hi there, I'm wondering why the date-based generic views don't provide easy hooks to drill down to the week and date level. The "date_based.archive_index" view gives the template date_list, a list of all years for which there are objects in the database. The "date_based.archive_yea

Re: How about a real django installer?

2006-11-14 Thread Eugene Lazutkin
Lars Stavholm wrote: > > Can that installer it be downloaded from somewhere? > Are you by any chance using NSIS? I didn't use NSIS directly. I did use bdist win32, which uses it. Thanks, Eugene --~--~-~--~~~---~--~~ You received this message because you are s

How to find out the id of the last record in a table?

2006-11-14 Thread Pythoni
Is there a way how to find out the id of the last record in a table? I used get_count() but it doesn't work properly, if some records are deleted. Thank you for help. L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: newbie startup question about ImportError on Windows with Apache/mod_python

2006-11-14 Thread benstewart
Don- Thank you for at least responding. I had actually already read that thread (I actually read every thread that mentions "ImportError" before starting a new thread). I just didn't understand how I could get Django to display the welcome screen but not respond in the command line. I've tinkered

Re: error: default date submitted as integer?

2006-11-14 Thread Matthew Flanagan
On 15/11/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 2 date fields ("last_login","date_joined") are supposed to be added > > automatically. But on > > add such SQL error is being generated: > > The fields aren't "added automaticall

Re: Database design

2006-11-14 Thread David S.
Data Modeling Essentials by Graeme Simsion, Graham Witt http://preview.tinyurl.com/yy6vlc --~--~-~--~~~---~--~~ 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@goo

Re: Django lighttpd concepts question

2006-11-14 Thread Jannis Leidel
> This file is also used by init scripts that most unixes use to > start/stop/restart services. You can find my version of a "/etc/init.d/django"-script for starting, stopping and restarting the FastCGI process here: http://bash.pastebin.com/824695 I'm currently using this on a Debian production

Re: A Rails/Django Comparison

2006-11-14 Thread Bill de hOra
Alan Green wrote: > Greetings fellow Djangonauts, > > Later this year, at the Open Source Developer's Conference in > Melbourne, Australia, Ben Askins and I will be presenting a paper > comparing Rails and Django. > > The paper is currently available on Google docs: > http://docs.google.com/View

Re: One Django app, many sites?

2006-11-14 Thread simplesis
You know, I saw the whole "sites" deal earlier today, but read it to mean that the sites were sharing the same "content", not necessarily the same data structure. ... Though I guess if they have the same content, they have the same data structure, huh? :) Great, then! I'll look into that further

Re: How about a real django installer?

2006-11-14 Thread Jacques Naude
I must say, I'm no expert, and I didn't battle to install Django on my Windows machine at all - I just followed the tutorial and various instructions they provide. (I used TortoiseSVN to do the SVN thing, as they suggest.) The only thing I can't seem to get around is the fact that Django, or

Re: How about a real django installer?

2006-11-14 Thread Lars Stavholm
Eugene Lazutkin wrote: > James Bennett wrote: >>> * Windows is apparently a horror story. I don't personally have access >>> to a Windows box (everything I work with is OS X or a Debian-derived >>> Linux distribution), so I don't even know where to begin. >>> >>> Anybody with experience on these p

Re: How about a real django installer?

2006-11-14 Thread Eugene Lazutkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James Bennett wrote: > > * Windows is apparently a horror story. I don't personally have access > to a Windows box (everything I work with is OS X or a Debian-derived > Linux distribution), so I don't even know where to begin. > > Anybody with exper

Re: Field getting reset on update

2006-11-14 Thread Joseph Heck
I haven't tried to reproduce what you're seeing, but you might consider setting "editable=False" in the model to keep generic views (and the Admin page...) from touching that column of the table.It's a guess... I'm not super familiar with the generic view pieces. -joeOn 11/14/06, [EMAIL PROTECTED]

Re: Obsoleting by date

2006-11-14 Thread Jay Parlar
On 11/14/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: > > Hello, I have a model which is obsoleted after a certain date, so that > I can just retrieve the entries from database which are in the future, > and not those which have already passed. > > Since I can't get into the djangoproject datab

Re: Field getting reset on update

2006-11-14 Thread [EMAIL PROTECTED]
Anyone? I'm sure there's a simple answer, right? --~--~-~--~~~---~--~~ 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 gro

Re: Re: How about a real django installer?

2006-11-14 Thread Joseph Heck
I actually haven't found installation on Windows to be very problematic. The only issue I've had was in tracking down all the relevant pieces needed to install. It's not one-click, but it's pretty straightforward.I'll see if I can't gather up all the pieces, links, etc and write up a "getting runni

Re: Database design

2006-11-14 Thread James Bennett
On 11/14/06, Eric Lake <[EMAIL PROTECTED]> wrote: > I think that I am really starting to understand how django works. The area > that I am not very good at is designing the database model. Can you > recommend a good tutorial or book that gets into how create logical, > elegant, efficient databases

Re: Re: How about a real django installer?

2006-11-14 Thread James Bennett
On 11/14/06, mamcxyz <[EMAIL PROTECTED]> wrote: > Ok, maybe is not big interest on it, but despite my experiences a still > waste 1 week installing things and I'm stuck to centos 4 and can't do > anything for this. I think part of the problem is that there are literally thousands of different typ

Re: error: default date submitted as integer?

2006-11-14 Thread James Bennett
On 11/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 2 date fields ("last_login","date_joined") are supposed to be added > automatically. But on > add such SQL error is being generated: The fields aren't "added automatically" if you're doing it that way; there is a convenience method on th

Re: Database design

2006-11-14 Thread Baurzhan Ismagulov
Hello Eric, On Tue, Nov 14, 2006 at 11:37:47AM -0500, Eric Lake wrote: > I think that I am really starting to understand how django works. The area > that I am not very good at is designing the database model. Can you > recommend a good tutorial or book that gets into how create logical, > elegan

Re: How about a real django installer?

2006-11-14 Thread [EMAIL PROTECTED]
If you want a quick way to generate cross-distro packages, check out autopackage. --~--~-~--~~~---~--~~ 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

Obsoleting by date

2006-11-14 Thread Gabriel Puliatti
Hello, I have a model which is obsoleted after a certain date, so that I can just retrieve the entries from database which are in the future, and not those which have already passed. Since I can't get into the djangoproject database, I guess I should try here. Is there a way to .get() or .filter(

Re: How about a real django installer?

2006-11-14 Thread mamcxyz
Because 1 day waiting is 1 day with frustration ;) And because "now and then" look like every developer think the same that day can be 3 1/2 weeks (real time I spend configuring... errr... installing things). Like I say, I do before installers. The last one was for a ERP system... build the inst

error: default date submitted as integer?

2006-11-14 Thread [EMAIL PROTECTED]
Hi! I have such code which adds new user: from django.contrib.auth.models import User ... user = User(username=username, password=newpass, is_staff=False, is_active=True, is_superuser=False, email=new_data[

Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-14 Thread Andy
It's namely the second I'm worried about. I have an ordered list and I want the first entry to have a special style, something to the degree of "new content." I want to target the second one because I want it to start the "old content" section, with a different style, like a fade on top, or someth

Re: How about a real django installer?

2006-11-14 Thread Norjee
Every now and then the question for a really easy installer pops up again (not only related to Django), and every time i fail to see the importance. If you are using a framework the actual installation makes up an infinite small portion of the entire development process.. Who cares wheter you spe

Re: One Django app, many sites?

2006-11-14 Thread James Bennett
On 11/14/06, simplesis <[EMAIL PROTECTED]> wrote: > I expect the needs of those sites to be *mostly* the same > (about page, image gallery, product list, contact page, possibly a > blog, etc.), so is it a good idea, and is it possible, to host many > sites from one Django app/instance? Yup :) ht

Re: How about a real django installer?

2006-11-14 Thread igor Guerrero
Django is available in Debian GNU/Linux so with "apt get python-django" you got itOn 11/14/06, mamcxyz < [EMAIL PROTECTED]> wrote:After having troubles configuring a vps linux machine (and still triying with another) I wonder if exist a effort to build a properinstaller for django.When I say a inst

Translation hook not working for custom template tag

2006-11-14 Thread Dirk Eschler
Hello, the i18n docs say, params in template tags can be translated like this: {% some_special_tag _("Page not found") value|yesno:_("yes,no") %} This doesn't work for me. I have written a simple template tag that swaps filenames depending on the request language. It takes three parameters and

One Django app, many sites?

2006-11-14 Thread simplesis
Hi folks. So, I'm one of those people that fell into the hype of Rails and have spent the past couple months really digging into learning it. However a friend strongly suggested I check out Django, so I've spent the better part of the day going through tutorials. The differences in syntax betwe

Re: How does the forloop really work?

2006-11-14 Thread Ramdas S
Check the 4th chapter in Djangobook (beta) web site. This is the only documentation on the topic which I was ever able to find.RDOn 11/15/06, Julio Nobrega <[EMAIL PROTECTED]> wrote:Ugly, but I guess it works: {% for article in list %}  {% if forloop.first %}First  {% else %}{% ifequal for

Re: How does the forloop really work?

2006-11-14 Thread Julio Nobrega
Ugly, but I guess it works: {% for article in list %} {% if forloop.first %} First {% else %} {% ifequal forloop.counter 2 %} Second {% else %} {% ifequal forloop.counter 3 %} Third {% else %} Rest goes here {% endifequal %} {%

How does the forloop really work?

2006-11-14 Thread Keith Mallory
Hi,I am trying to get a list of articles displayed in different parts of a web page. The latest article in specific , the next 2 in another and rest of it somewhere down inside the same page. I am not able to figure out how? My guess is forloop, but how?ThanksKeith --~--~-~--~~---

Re: Django / Python and daylight saving time

2006-11-14 Thread SmileyChris
The problem is specifically with the development server. Add "import time" to django/conf/__init__.py and see if it fixes it for you. Please report if that solves your problem in the above mentioned ticket (http://code.djangoproject.com/ticket/2315) - if multiple people have tested and can confir

Re: Re: Django / Python and daylight saving time

2006-11-14 Thread Waylan Limberg
I believe #2315 is the ticket your looking for. It is windows specific. Be sure to read through the comments to the end. http://code.djangoproject.com/ticket/2315 On 11/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/14/06, mynameisgabe <[EMAIL PROTECTED]> wrote: > > My system clock cl

Re: Django / Python and daylight saving time

2006-11-14 Thread Jean-Luc
[EMAIL PROTECTED] a écrit : > I dont know why it would use anything other than the system time... Is > the timezone set correctly on your machine? time is a DOS command and it renders the good time, same time i can show under Windows but Django runserver renders summer time, or GMT ? Thanks a

Re: Re: Django / Python and daylight saving time

2006-11-14 Thread James Bennett
On 11/14/06, mynameisgabe <[EMAIL PROTECTED]> wrote: > My system clock claims it's on the right time. That's what I'm using > in the above example - 07:49:52 came from the clock in the windows task > bar. I remember a while back there was a spate of problems with correctly setting the time-zone

Re: newbie startup question about ImportError on Windows with Apache/mod_python

2006-11-14 Thread Don Arbow
On Nov 14, 2006, at 8:17 AM, benstewart wrote: > > I suppose nobody has the time to help... or maybe nobody has desire to > help. > > This is sad since I have already searched and tried everything that I > could find here, at the django project website, in the django book, > and > on the web. I

Re: newbie startup question about ImportError on Windows with Apache/mod_python

2006-11-14 Thread Waylan Limberg
On 11/10/06, benstewart <[EMAIL PROTECTED]> wrote: > > I'm on Windows XP, Python 2.4, Apache 2.0, Subversion, mod_python, > MySQL, PostgreSQL (just in case), etc... > > My project is named "mydjango" (instead of mysite in the tutorial). > > I can see the lovely Django welcome screen in my browser,

Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-14 Thread orestis
Well if you want to target every second, tenth etc. element you can use the cycle tag. If you want to highlight the tenth entry because it is special, you should define it as special in your view code. If you want to highlight arbitrary entries, well, then... I don't know. Why would you do that

Re: Django / Python and daylight saving time

2006-11-14 Thread mynameisgabe
On Nov 14, 9:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Your system clock is probably wrong also. Mine works fine. My system clock claims it's on the right time. That's what I'm using in the above example - 07:49:52 came from the clock in the windows task bar. However, Django alway

Re: runserver and static files

2006-11-14 Thread Nicolas Steinmetz
Jean-Luc a écrit : > I used media in place of site_media for directory name > It seems media shouldn't be used ? As media is set/defined for media admin in settings.py, I guess there is a conflict between the two values. With a different name (like site_media) it works. > Thanks Nicolas You'

Re: Django / Python and daylight saving time

2006-11-14 Thread [EMAIL PROTECTED]
Your system clock is probably wrong also. Mine works fine. --~--~-~--~~~---~--~~ 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 fr

How about a real django installer?

2006-11-14 Thread mamcxyz
After having troubles configuring a vps linux machine (and still triying with another) I wonder if exist a effort to build a proper installer for django. When I say a installer, I mean a real one. The kind of installer that know about dependencies and install it (if possible). For example: - D

Re: A Rails/Django Comparison

2006-11-14 Thread David Sissitka
Performance is definitely a factor, but do you think that it has a place in this article? There are so many ways to deploy a Rails application, which would you include? A book has been written on the subject, covering even half of them in little detail would easily double the article in size. :P If

Re: is this possible in django?

2006-11-14 Thread James Bennett
On 11/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am new to django and right now i trie to make a choice between ruby > on rails and django. with rails i found a sort of shortcomming (at > least for me it is) in the active record system. > It seems to me that there is no nice way of jo

Django / Python and daylight saving time

2006-11-14 Thread Jean-Luc
It seems Django don't know daylight saving time my settings.py : ... # Local time zone for this installation. All choices can be found here: # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE TIME_ZONE = 'Europe/Paris' ... E:\applis\budget>time L

is this possible in django?

2006-11-14 Thread [EMAIL PROTECTED]
Hello, I am new to django and right now i trie to make a choice between ruby on rails and django. with rails i found a sort of shortcomming (at least for me it is) in the active record system. It seems to me that there is no nice way of joing tables multiple levels deep. For a description of what

Re: My own auth backend

2006-11-14 Thread Ivan Sagalaev
Grigory Fateyev wrote: > If I undastand, your MIDDLEWARE code checks any permissions through any > view, right? You and Andrew use different approaches. Your backend is checking a password against a foreign database and then creates a new Django user corresponding to that account. You don't nee

Re: newbie startup question about ImportError on Windows with Apache/mod_python

2006-11-14 Thread benstewart
I suppose nobody has the time to help... or maybe nobody has desire to help. This is sad since I have already searched and tried everything that I could find here, at the django project website, in the django book, and on the web. I am sure this is a simple fix but it is a simple fix that I appar

Re: A Rails/Django Comparison

2006-11-14 Thread Oliver Lavery
FWIW, as someone who recently had to go through this evaluation process, yes perfromance does have a place. In fact addressing performance would make this article a lot more useful, I think.Comparisons of lines of code or development time are interesting, but they're not that empirical. Lines of co

Re: Django / Python and daylight saving time

2006-11-14 Thread [EMAIL PROTECTED]
I dont know why it would use anything other than the system time... Is the timezone set correctly on your machine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: A Rails/Django Comparison

2006-11-14 Thread Adrian Holovaty
On 11/14/06, Angel García Cuartero <[EMAIL PROTECTED]> wrote: > I found that most comparisons just don't talk about performance. It would be > great to check how both frameworks deal with complex projects, not just Tada > Lists... you know what I mean. :) Yes. Performance. This article deliberate

duplicate error messages above FileField in admin interface

2006-11-14 Thread Gary Wilson
I've got a FieldField using the RequiredIfOtherFieldNotGiven validator, and when I try to save the object without filling in the "other field," I get two duplicate error messages above the file upload box. I assume this has something to do with FileField really using two form field widgets, but i

almost got django app to work on apache 2.2 and mod_python

2006-11-14 Thread Benedict Verheyen
Hi, After developing my app, i want to serve it from apache. Apache & mod_python work but my app doesn't behave like it should. Probably a urls.py error? I searched the archive but haven't been able to solve it. It seems to find my settings (judging from the params displayed on the error page) b

Digg style news for celebs - A django site

2006-11-14 Thread krypton
Hi guys this site is pure django http://www.teenwag.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

Field getting reset on update

2006-11-14 Thread [EMAIL PROTECTED]
OK, my custom gpuser object (which extends User) keeps a post count in the model: post_count = models.IntegerField(blank=True) this is incremented when they make a board post: gp_user.post_count = gp_user.post_count +1 gp_user.save() So far so good. My problem is that whenever someone e

Re: Django / Python and daylight saving time

2006-11-14 Thread mynameisgabe
I've noticed it always prints out GMT time for me, no matter what the value I use for TIME_ZONE. For instance, it's set to the default 'America/Chicago' right now. I put this in my template: {% now "Y-m-d H:m:s" %} It returns: 2006-11-14 15:49:52 My time is actually 07:49:52 - it's 8 hours o

Re: My own auth backend

2006-11-14 Thread Andrew Degtiariov
Thanks, Andrew, for reply!But, can not figure out what backend do you use for authentication? Custom sql. It used also by RADIUS server (this is a reason for creating custom authentication backend instead of using one from Django)-- Andrew DegtiariovDA-RIPE --~--~-~--~~~---

Re: Update database field

2006-11-14 Thread [EMAIL PROTECTED]
Yea, that will work. Get the "thing" change the value store it. tinti wrote: > Got it: > > update = Queue.objects.get(message=message_id) > update.read = 1 > update.save() > > I thinks this is the correct way, if not somebody can advise me another > ;) > > On Nov 14, 11:37 am, "tint

Django Training

2006-11-14 Thread sago
I just wanted to announce the first open commercial Django Training program. As well as being a great program, I hope it will be another reinforcement in the message that Django is a deployable commercial system for corporate web application development. I hope that having a solid and skills-base

Re: A Rails/Django Comparison

2006-11-14 Thread Angel García Cuartero
Hi there!I found that most comparisons just don't talk about performance. It would be great to check how both frameworks deal with complex projects, not just Tada Lists... you know what I mean. :)- Mensaje original De: Alan Green <[EMAIL PROTECTED]>Para: django-users@googlegroups.comEnviado

Re: A Rails/Django Comparison

2006-11-14 Thread Alan Green
Hi David, Thanks for the feedback. On 11/14/06, David Sissitka <[EMAIL PROTECTED]> wrote: > Good read, nice to see that there isn't a clear bias. A few thoughts: > > 1) First glimpse in to the Rails code and I've found a breakpoint > (ReadersController.edit), that and the lack of image uploading

Re: My own auth backend

2006-11-14 Thread Grigory Fateyev
Hello Andrew Degtiariov! On Sun, 12 Nov 2006 19:29:55 +0200 you wrote: > > > Try to write my own backend authenticate function, but users from > > > anothe table can not login. What can it be? Any suggestions? > > > > I hope somebody use custom backend authentication? Please, do not > > ignore my

Re: Date based generic view

2006-11-14 Thread Jean-Luc
Jean-Luc a écrit : > Thank you for your help > > unfornunately no > date_releve is always latest than date_operation or none > > I don't understand what appends > > jlT Hi all I check the code in root/django/trunk/django/views/generic/date_based.py 124 # Calculate first and last day of

Re: My own auth backend

2006-11-14 Thread Grigory Fateyev
Hello Andrew Degtiariov! On Tue, 14 Nov 2006 14:13:15 +0200 you wrote: > > But, can not figure out what backend do you use for authentication? > > > > Custom sql. It used also by RADIUS server (this is a reason for > creating custom authentication backend instead of using one from > Django) If

Re: How to svn -co Django sources

2006-11-14 Thread Lars Stavholm
telenieko wrote: > Hi, > From: http://www.djangoproject.com/documentation/install/ > [Installing the > development version], > > svn co > http://code.djangoproject.com/svn/django/trunk/ django_src > ln -s `pwd`/django_src/django /usr/lib/pyth

Update database field

2006-11-14 Thread tinti
Hi all, I need some help updating a database field. Can someone post me an example on updating a database field using the views.py and a static value to update. For example each time an item is requested set the field read to 1. I have to build something similar. Thanks for any reply tinti --~

Re: runserver and static files

2006-11-14 Thread Jean-Luc
Nicolas Steinmetz a écrit : > Jean-Luc wrote: > > > igor Guerrero a écrit : > > > >> Django dont serve media files, that is the job of the production server > >> but if yo are using the development server: you can try this: > >> > >> http://www.djangoproject.com/documentation/static_files/ > > Ba

Re: Re: caching views with dynamic parameters

2006-11-14 Thread James Bennett
On 11/14/06, Christian Joergensen <[EMAIL PROTECTED]> wrote: > Reading Jeremy's discovery, this will not work. I naturally assumed the > cache generated the key from the arguments. You might try using the 'vary_on_headers' decorator; since you're switching based on the language being served, doin

Re: Update database field

2006-11-14 Thread tinti
Got it: update = Queue.objects.get(message=message_id) update.read = 1 update.save() I thinks this is the correct way, if not somebody can advise me another ;) On Nov 14, 11:37 am, "tinti" <[EMAIL PROTECTED]> wrote: > Hi all, > I need some help updating a database field. Can someone

Re: How to svn -co Django sources

2006-11-14 Thread telenieko
Hi,From: http://www.djangoproject.com/documentation/install/ [Installing the development version], svn co http://code.djangoproject.com/svn/django/trunk/ django_srcln -s `pwd`/django_src/django /usr/lib/python2.3/site-packages/djangoBetter do that in another fresh new folder.Cheers, Marc. On 11/1

Database design

2006-11-14 Thread Eric Lake
I think that I am really starting to understand how django works. The area that I am not very good at is designing the database model. Can you recommend a good tutorial or book that gets into how create logical, elegant, efficient databases. It doesn't have to be specific to one type (MySQL, Postgr

Django admin Main View methods

2006-11-14 Thread Picio
Hello, which method in the ChangeList class is responsible to retrieve all the change-add admin page rows? I mean the page where you see all the items related to a model, not the one you use to change or delete one item. Is It get_query_set()? Daniele --~--~-~--~~~-

Re: caching views with dynamic parameters

2006-11-14 Thread Christian Joergensen
Christian Joergensen wrote: > You could do a simple: > > def my_view(request): > return render_my_view(request, request.session.LANGUAGE_CODE) > > def render_my_view(request, language_code): > # do stuff > > render_my_view = cache_page(render_my_view, cache_time) Reading Jeremy's dis