Re: Syndication and authentication question

2006-07-22 Thread Ian Holsman
I did it like this on economy-chat.comfirst.. every link to the feed itself is unique, based on User-ID or session key.i have the following in my urls.py  (r'^feed/atom/(?P\d+)/(?P\d+)/(?P.+)/$', 'atomfeed'),  (r'^feed/atom/(?P\w+)/$', 'atomfeed'),  and the atomfeed view itself isdef atomfeed(reque

Re: (Re)ordering stuff

2006-07-22 Thread Baczek
Martin Robinsson napisal(a): > "reorder stuff" is quite vague... [...] > If you want to control the order in which table records appear you can > look at the ´´ordering´´ Admin parameter instead. That and all > other Admin options are documented here: > http://www.djangoproject.com/documentation/

__isnull on backwards relationships not working 100%

2006-07-22 Thread Matthew Flanagan
Hi, I have the following simplified models. Then I create a number of IP addresses and interfaces, with not all IP addresses being related to an interface. class IPAddress(models.Model): address = models.CharField(maxlength=15) class Admin: pass class Interface(models.Model): name

Re: __isnull on backwards relationships not working 100%

2006-07-22 Thread Malcolm Tredinnick
On Sat, 2006-07-22 at 19:43 +1000, Matthew Flanagan wrote: > Hi, > > I have the following simplified models. Then I create a number of IP > addresses and interfaces, with not all IP addresses being related to > an interface. > > class IPAddress(models.Model): > address = models.CharField(max

django now in tamil

2006-07-22 Thread Kenneth Gonsalves
hi, just to let you all know that django is now available in Tamil - the second Indian language after Bengali - 2 down 20 to go. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message becaus

Re: Re: __isnull on backwards relationships not working 100%

2006-07-22 Thread Matthew Flanagan
Thanks Malcolm. I couldn't find a ticket for this particular enhancement so I created http://code.djangoproject.com/ticket/2400. On 7/22/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sat, 2006-07-22 at 19:43 +1000, Matthew Flanagan wrote: > > Hi, > > > > I have the following simplified

How to find currently active sessions?

2006-07-22 Thread [EMAIL PROTECTED]
Hi. Is there a way to find currently active sessions, out of all sessions stored in the database? Say I want to put a "users currently active" box on my page (*), how would I do that. I've had a look at the session model but didn't find anything that looked as if it would help. I'm using persiste

Re: Duct tape

2006-07-22 Thread Kevin Menard
On 7/21/06, Waylan Limberg <[EMAIL PROTECTED]> wrote: > Which just so happens to be a separate application that is not in any > way required to use django. Of course, if you elect to take that > route, you'll have to build your own 'less magical' backend. But if > that makes you feel more comfort

Re: Django on win xp

2006-07-22 Thread Kevin Menard
On 7/22/06, Tyson Tate <[EMAIL PROTECTED]> wrote: > > Wait, Linux or XP? > > Regardless, you might want to read the documentation first: > > http://www.djangoproject.com/documentation/install/ Be sure to read the comments, too. There is some useful info in there on how to set up the symlinks in

Best idea?

2006-07-22 Thread PythonistL
I am creating an application in Django where users can insert photos and I would like each owner of the photo(s) to be able to grant/revoke access to this photo(s) to other visitors. What could be the best idea how to do that? Thank you for replies L. --~--~-~--~~~---

Re: Best idea?

2006-07-22 Thread Julio Nobrega
Depends on who are the "other visitors" :) And there's more than one way to do it. If you mean something like: it is either public or private, a BooleanField() on class Photo should do it. If you mean something like: The owner chooses the users that will have access to the photo, you can d

Re: django now in tamil

2006-07-22 Thread Adrian Holovaty
On 7/22/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > just to let you all know that django is now available in Tamil - the > second Indian language after Bengali - 2 down 20 to go. Django: We've got Tamil. Thanks for the announcement, Kenneth! Adrian -- Adrian Holovaty holovaty.com | dja

Re: CSS and JavaScript manager

2006-07-22 Thread Kevin Hamm
You'll have to excuse me, I'm still relatively new to the whole development side of web work, but I know I've had the same thoughts, or at least part of them. After separating my structure from my color scheme, it's very easy to see the real fun of creating a new css scheme using math to choose the

Re: sort custom list display column

2006-07-22 Thread Waylan Limberg
On 7/21/06, Vixiom <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a 'Product' model that has the following list_display > > list_display = ('title','category','price_adjusted', 'on_sale', > 'featured', 'visible') > > 'price_adjusted' is the following method > > def price_adjusted(self): >

Tagging app, revisited

2006-07-22 Thread Shev
Back in May there was a thread by Luke Plant on releasing a contrib.tagging app, http://groups.google.com/group/django-users/browse_thread/thread/a7cbd4fd843583be ...and I was wondering if there's been further news/decisions of such an app? Luke, thanks for sharing your code - I'm in the midst

How customizable is admin?

2006-07-22 Thread Seth Buntin
I was wondering how customizable the admin module is (without changing admin for other applications). I want to have an AJAX'ed drill-down for some drop-down boxes. Has anyone done this and is it easily done without have to "repeat" myself? --~--~-~--~~~---~--~~

Filter, ForeignKey and edit_inline

2006-07-22 Thread Fabien Schwob
Hello, I'm currently developing a Django application and I've a problem in how to use the filter() function. I've two models that can me resumed as : Class Event: location = models.ForeignKey(Place) name = models.CharField(maxlength=200) public_price = models.FloatField(max_digits=10

Re: Tag Definition

2006-07-22 Thread James Bennett
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > The recommended way to do this is to create an application that only > holds your custom tags. Applications don't have to have models or views > or anything like that. That also makes it easy to reuse your tags in > other projects: you ju

Re: (Re)ordering stuff

2006-07-22 Thread Waylan Limberg
On 7/22/06, Baczek <[EMAIL PROTECTED]> wrote: > > > Martin Robinsson napisal(a): > > "reorder stuff" is quite vague... > [...] > > If you want to control the order in which table records appear you can > > look at the ´´ordering´´ Admin parameter instead. That and all > > other Admin options are d

Re: How customizable is admin?

2006-07-22 Thread Waylan Limberg
On 7/22/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > I was wondering how customizable the admin module is (without changing > admin for other applications). I want to have an AJAX'ed drill-down > for some drop-down boxes. Has anyone done this and is it easily done > without have to "repeat" my

Re: Model -- best way to do this:

2006-07-22 Thread webd0012
Thanks for your reply. The single quotes worked. I can't seem to get it to do what I want though. I want to be able to first define what city sections belong to what city. Then add "places" that are attached to a specific city/city_section. I'll keep experimenting with it... --~--~-

Re: Filter, ForeignKey and edit_inline

2006-07-22 Thread benj
Fabien, If ev is an event object, you can find a queryset of it's related objects with ev.eventdate_set. For more info about accessing objects from python, see the tutorial [http://www.djangoproject.com/documentation/tutorial1/] and the api documentation [http://www.djangoproject.com/documentatio

Re: FileBrowser Test Version

2006-07-22 Thread benj
Patrick, Thanks for this great extension! One snag I hit is that your code assumes we serve our admin media from /media/, which I happen not to. I just ran ''' sed -i -e "s:/media/:/admin-media/:g" *html ''' in the templates dir, but this setting is already available in django.conf.settings.ADMIN_

Re: Filter, ForeignKey and edit_inline

2006-07-22 Thread benj
Rereading your post, I realized my was incomplete. Sorry. To do the filter you want, you can use the 'range' field lookup: import datetime start_date = datetime.date.today() end_date = some_other_date events = Event.objects.filter(eventdate__beginning_date__range=(start_date, end_date)) If you'v

Any good Python book recommendations?

2006-07-22 Thread Sean Schertell
Hi guys, I've downloaded Dive into Python and it looks good. But I need something I can read on the subway or in the bathtub. Something I can dog-ear and highlight -- a real book! Any recommendations? I'm brand new to Python and want to learn for use with Django. Thanks! Sean --~--~---

Re: Any good Python book recommendations?

2006-07-22 Thread Simon Willison
On 23 Jul 2006, at 06:03, Sean Schertell wrote: > I've downloaded Dive into Python and it looks good. But I need > something I can read on the subway or in the bathtub. Something I can > dog-ear and highlight -- a real book! > > Any recommendations? I'm brand new to Python and want to learn for

Re: Any good Python book recommendations?

2006-07-22 Thread Jeremy Dunck
On 7/23/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I've downloaded Dive into Python and it looks good. But I need > something I can read on the subway or in the bathtub. Something I can > dog-ear and highlight -- a real book! Also, DiP -is- a real book: http://www.amazon.com/g

Re: Any good Python book recommendations?

2006-07-22 Thread Alessandro Bottoni
Sean Schertell ha scritto: > Any recommendations? I'm brand new to Python and want to learn for > use with Django. The two books I found most useful were: Learning Python Mark Lutz & David Ascher O'Reilly Python Cookbook Alex Martelli & David Ascher O'Reilly HTH Ales