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
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
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
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
--~--~---
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
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_
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
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...
--~--~-
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
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
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
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
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?
--~--~-~--~~~---~--~~
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
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):
>
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
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
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
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.
--~--~-~--~~~---
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
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
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
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
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
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
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
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/
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
28 matches
Mail list logo