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 app
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 sh
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 architect
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 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 migrato
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
الصداقه شي محب الى القلب فبها نتعلم الحياة ونمارسها بشكل صحيح كيف كل
انسان ليس معصوم من الاخطاء وراي واحد لايكفي لابدان يكون هناك اصدقاء
واخوه يعطونك ارأئهم وبالاخر يتفقون على رأي واحد وهو الصحيح لابدمن
هذاوامور كثيره تتعلق بي هكذا مواقف هل رأي صحيح الصديق الوفي يخاف على
صديقه مثل مايخاف على نفسه ف
2007/4/21, Jesse Lovelace <[EMAIL PROTECTED]>:
>
> Hey all,
>
> I made this the other day to help me track all the sql statements my
> pages were doing. I wanted something unobtrusive (i.e. middleware)
> and simple. Hope you like:
>
Hi!
Thanks you for sharing it with us.
I have addapted the midd
Can you post the exact code throwing the error, and copy paste your
exact model code related to the error?
It sounds like you have something like the following:
.filter(book=
where it should be something like
.filter(someobject__book
But it's hard to tell w/out seeing the code.
On Apr 22,
I just noticed that the SelectDateWidget in newforms.extras does not
generate an ID for the select elements. I'm using that widget as a
model for my own, where I need IDs to be set. Although I can hard-code
IDs for now, is there a way to make these composite widgets obey the
form-related ID sett
Hi folks,
I have been bitten by the Python bug and have decided to jump
into web development using Python and what can I say, I found Django's
charms too hard to resist! But there seems to be some trouble in
paradise ... lemme explain in brief -
I setup up Django 0.95 on my system alongwith
This is most likely because you're using 0.95 instead of 0.96. The
error is documented here:
http://code.djangoproject.com/wiki/IrcFAQ#WeirdError1
On Apr 22, 10:25 am, z0ltan <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I have been bitten by the Python bug and have decided to jump
> into web de
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 event_open(request):
from app.events.models import Event
return {'
On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote:
>
> 2007/4/22, Honza Kr�l <[EMAIL PROTECTED]>:
> > On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello All!
> > Hello,
> >
> > >
> > > I have a view like
> > >
> > > def record(request, id, type):
> > > # some database code here
> > > # some
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.
If you, however, don't use django templates, you might want to use
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 event_open(req
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. Is
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 to
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 latest
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 bea
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:
Entries.obje
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 the
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 i
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.
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
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 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.
--~--~-~--~---
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 played
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, but
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
>
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
"Dj
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 django-users@googl
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 /djang
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 \djang
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 raise
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 becom
36 matches
Mail list logo