On 4/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks in advance to anyone who replies to this.
>
> Individually these are simple, but the part I can't quite figure out
> is how to simply ensure via the admin interface that if I create a new
> tag for an entry that the tag also
On Mon, 2007-04-23 at 04:19 +, z0ltan wrote:
[...]
> and then navigate to the child directories from thence.
> Apparently it was using "/" as the root directory even though mine was
> a Windows box. So when I manually changed the root directory to "c:
> \", it worked fine. Am planning to
robin_percy,
Many thanks for pointing out the defect! It was just like you had
said, the example worked fine with Django 0.96! However, an
interesting fact I noticed was that
Django 0.96's installer wouldn't install on my Windows box. It was
throwing up and error "couldn't find directory
robin_percy,
Many thanks for pointing out the defect! It was just like you had
said, the example worked fine with Django 0.96! However, an
interesting fact I noticed was that
Django 0.96's installer wouldn't install on my Windows box. It was
throwing up and error "couldn't find directory
Bush Family Nazi Connections
http://video.google.com/videoplay?docid=3961840602642450187
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Click on
http://groups.google.com/group/django-users/web/bush-family-nazi-connections
- or copy & paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Great blog post.
Michael
On 4/20/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2007-04-20 at 22:26 +0100, Oliver Charles wrote:
> > Just write your own view that in turn calls a generic view? Create a new
> > view, with a similiar signiture, but change the object_id for team_id
Yes I do. I'm using the svn version.
On 4/21/07, Terji7 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm making my first 0.96 application, a Faroe Islands tax calculator
> (it's at gladsheinur.webfactional.com/skattur/, check it out, it's a
> work in progress).
>
> I'm trying to use a BooleanField,
I feel like maybe I've stretched the templating system to the breaking
point, but I'll ask anyways in case there's a solution.
I'm putting together templates for a calendar app, specifically one to
hold sports games/results. The first trick is I want to use the same
model for games already
Hi all, wondering if anyone has setup linked dropdowns using newforms?
Example. Country, state dropdowns. State has no options on initial
rendering. User first selects country. The state list is then
populated by an ajax / json type call. The user can then select a
state.
On Apr 21, 1:53 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> [snip]
> We haven't documentedreverse() anywhere, as far as I know. So worth
> filing a ticket.
>
I realize that urlresolvers.reverse() was not documented earlier, but
does the addition of named urls mean that the old behavior is
Hi. I installed Django on Python 2.5
and I receive following error on the built in server:
Exception Type: ImportError
Exception Value:No module named utils.text
Exception Location: /usr/lib/python2.5/site-packages/django/core/
urlresolvers.py in _get_urlconf_module, line 178
Thanks in advance to anyone who replies to this.
I just started using Django and I'm creating a sample blog application
in which within this application more than one blog is represented,
and each blog has a one-to-many relationship with tags, as well as a
one-to-many relationship with entries.
Try Entries.objects.order_by('a_field_that_you_want_to_order_by')[:5]
Entries.objects is a query set manager, not a query set, so you can't
slice that.
--
Ollie
> hm. I'm trying to do this in a context processor and its not working:
>
> def entry_latest(request):
> from app.entries.models
2007/4/22, Honza Král <[EMAIL PROTECTED]>:
> Hi,
> try http://www.djangosnippets.org/snippets/93/ with the standard debug
> context preprocessor shipped with django (see the snippet for how-to)
>
> it seems cleaner to add this to your base template than to hackishly
> replace the tag.
The use
On 4/22/07, drackett <[EMAIL PROTECTED]> wrote:
>
> hm. I'm trying to do this in a context processor and its not working:
>
> def entry_latest(request):
> from app.entries.models import Entries
> return {'entry_latest': Entries.objects[:5]}
yeah, you have to slice the queryset:
hm. I'm trying to do this in a context processor and its not working:
def entry_latest(request):
from app.entries.models import Entries
return {'entry_latest': Entries.objects[:5]}
On Apr 22, 2:35 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> just slice it:
> entry_list[:5]
>
> just
just slice it:
entry_list[:5]
just bear in mind that slicing will actually query the database, so
you need to do it when working with the data (e.g. not in urls.py when
providing parameters for generic views)
On 4/22/07, drackett <[EMAIL PROTECTED]> wrote:
>
> I love the ability to get the
I love the ability to get the latest object in a collection..
entry_list.latest()
and was curious if there is a way to get more than 1 object. For
example, if I want the last 5 entries of a blog, is there something
like
entry_list.latest(5)
I know that doesn't work, but is there an easy way
yep, thanks!
On Apr 22, 1:38 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 4/22/07, drackett <[EMAIL PROTECTED]> wrote:
>
>
>
> > I am trying to grab objects from a model only if they are not complete
> > using a context processor. This is the code I have right now, but it
> > doesn't work.
On 4/22/07, drackett <[EMAIL PROTECTED]> wrote:
>
> I am trying to grab objects from a model only if they are not complete
> using a context processor. This is the code I have right now, but it
> doesn't work. Is there an easy way to filter by if a date field is
> empty/null?
>
> def
الصداقه شي محب الى القلب فبها نتعلم الحياة ونمارسها بشكل صحيح كيف كل
انسان ليس معصوم من الاخطاء وراي واحد لايكفي لابدان يكون هناك اصدقاء
واخوه يعطونك ارأئهم وبالاخر يتفقون على رأي واحد وهو الصحيح لابدمن
هذاوامور كثيره تتعلق بي هكذا مواقف هل رأي صحيح الصديق الوفي يخاف على
صديقه مثل مايخاف على نفسه
greetings,
i have been experiencing the same problem. we have a login page, and
you can always log in from that page. in the header of each page, you
can log in as well, and that form, when submitted, throws the afore
mentioned "cookies" error. oddly enough, i cannot replicate this
problem in
On 4/20/07, Mike H <[EMAIL PROTECTED]> wrote:
> It seems to be working well for the developers here, so here's hoping
> it's useful for some other people too :)
This is interesting-- migrating django apps using django. Are there
cases where Django or the DB could become so broken that the
Hi Jeremy,
I see your point, and yes, migrations can be run out of sequence -
although in practice I've found that it is rarely an issue and if it is,
it can be resolved fairly simply. Let's take a couple of examples. I'm
not trying to be condescending, just thinking it through outloud ;)
1)
On Sun, Apr 22, 2007 at 04:43:27AM -0700, Joe wrote:
> It sounds like you shouldn't be using Django, honestly. You would be
> fighting against/hacking around most of the functionality of django
> because django is an MVC framework and you guys basically are trying
> to re-write the model
It sounds like you shouldn't be using Django, honestly. You would be
fighting against/hacking around most of the functionality of django
because django is an MVC framework and you guys basically are trying
to re-write the model architecture. If you really really really want
to use django, you
Damnit, that's what you get for trying to run several projects under one
vhost on apache! It's fixed now, sorry about that
http://acid2.user.openhosting.com/static/history-latest.zip
The history app itself is in a directory called history_contrib - that
zip files contains the whole example
28 matches
Mail list logo