Thanks Malcom for the explanation,
I can wait the refactoring that in fact is necessary. I'm sorry I cannot
help on this both for lack of time right now and becouse the matter is just
becoming a little more familiar only in these days...
sandro
*:-)
--~--~-~--~~~-
> Of course one should not assume that post pk's are monotonically
> increasing as the order the query set is sorted by can have no
> relation to the post pk's. This means we can not even do something
> simple as a binary search of slices of the query set.
If it were the case, it'd be farily easy
> Is there a way to force the db connection to stay open if you are
> excecuting raw sql that is creating a temp table? When the connection
> closes...the temp tables go away.
>
Temp tables are meant to be temporary. You can't guarantee, even with
persistent db-connection pooling that the same
Thanks xav, I thought that the answer might involve both caching and
Ajax but I wasn't sure how. I'm not familiar with either so I'll need
to go through the documentation. Do you know where I can find some
good examples of using these?
Tim
--~--~-~--~~~---~--~~
Y
> When I enable etags, django is sending back an etag on 404 pages.
> When a client does a subsequent request for the same nonexistent
> page, a 304 response is sent back, because the page has not changed
> (based on the etag).
>
> When I disable etags, multiple requests for a non existent page a
hi scanner,
i hope i understood correct...
i have an newsitem apps with comments, the comments are paginated by
50.
this is my get_absolute_url() for the comments:
def get_absolute_url(self):
comment_ids = [c.id for c in
self.newsitem.comment_set.iterator()]
comment_ids.rev
Hey Jay, yeah, I noticed somethign similar to that affect as well. It
seems like it does some sort of caching or something, and if it hasn't
cached in a while it takes a while to load. I'm running mod_python,
so I'm often reseting the server so that my code changes go through.
As for serving med
Tipan напиша:
> Thanks xav, I thought that the answer might involve both caching and
> Ajax but I wasn't sure how. I'm not familiar with either so I'll need
> to go through the documentation. Do you know where I can find some
> good examples of using these?
http://www.b-list.org/weblog/2006/08/0
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> Hey Jay, yeah, I noticed somethign similar to that affect as well. It
> seems like it does some sort of caching or something, and if it hasn't
> cached in a while it takes a while to load. I'm running mod_python,
> so I'm often reseting the serve
Thanks.
In reading through the custom code referenced in
the previous email, I saw how to add custom class
via the attributes. Agree, that's probably all I
need at this point.
--Ray
At 9:23 PM +0200 4/15/07, Honza Král wrote:
>creating a widget might be an overkill in this case
>
>adding a cus
I am not sure how to fix this. I reinstalled linux and now manage.py
has an import problem. Does this mean I have to add django to $PATH?
My ERROR:
[EMAIL PROTECTED] mysite]$ python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 2, in ?
from django.core.man
serving directly from apache.
On Apr 16, 8:25 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hey Jay, yeah, I noticed somethign similar to that affect as well. It
> > seems like it does some sort of caching or something, and if it hasn't
> >
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> serving directly from apache.
Well, I'm out of ideas then :) Probably, you should start putting up
some of your more relevant config information (Apache config files),
because you haven't given too much information to go on.
Jay P.
--~--~---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
johnny schrieb:
> I am not sure how to fix this. I reinstalled linux and now manage.py
> has an import problem. Does this mean I have to add django to $PATH?
>
> My ERROR:
>
> [EMAIL PROTECTED] mysite]$ python manage.py runserver
> Traceback (most
ahh =P I'll try. I'm running with Grokthis.net as server right now,
and I'm relatively new to understanding apache, I'll see what I can
do.
On Apr 16, 9:52 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
>
>
> > serving directly from apache.
>
> Well
http://www.freemp3sky.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 this group, send email to [EMAIL
hi folks,
I have a client wishing to go with Django as a content management
solution
(safe web hosting) and would like to implement the server with MySql.
I am new to Django, but am familiar with python. I am also familiar
with
joomla (formerly mambo), and I would like someon
Hi Harris,
Django is a framework where you can build a CMS, it doesn't come
with this behaviour after installed. You're going to have to make a
"Model" for "Article", code the functions to retrieve them, build each
display page (the html), etc...
The comparision can't really be made, since
I created a link in python/site-packages/django that actually points
to the /home/me/django_src/django. I copied my project from windows
into linux. I will delete *.pyc files and try it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Thanks for all the suggestions. I'm going to try to work on some of them
this evening and see where it gets me. I'll be sure to let the group know
if I have any "aha" moments that might help others.
-Chris
--~--~-~--~~~---~--~~
You received this message because
> I think the behaviour is correct though, why do you want to redefine it ?
If the behavior is indeed correct, then I don't think I need to
redefine it.
It just seemed odd to return a 'not-modified' response to a query for
a page that did not exist.
Apache, when configured with mod_expires, does
Ashampoo WinOptimizer is an easy-to-use suite of tools for maintaining and optimizing your Microsoft Windows® computer. It keeps your Windows® installation free of unnecessary garbage and running smoothly while other computers just get slower and slower.Download: Daha hızlı, akıllı ve kolay -
I fixed it. Symbolic link wasn't pointing to the right directory.
--~--~-~--~~~---~--~~
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 unsubscr
On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote:
> I am new to Django, but am familiar with python. I am also familiar
> with
> joomla (formerly mambo), and I would like someone to provide a comparison /
> contrast between Django and joomla please, no hype, just the facts. I am
> int
Is it possible to use the {% url %} tag with generic views? Generic
views get used more than once in an app presumably, so there would
have to be some way to narrow it down.
I'm guessing that there might not be a way to do it at this time,
which is a shame.
--~--~-~--~~
On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote:
>
> Is it possible to use the {% url %} tag with generic views? Generic
> views get used more than once in an app presumably, so there would
> have to be some way to narrow it down.
>
> I'm guessing that there might not be a way to do it at this tim
We are trying to use them to generate a report where a bunch of
calculations are being made... via a custom sql query... then hand all
of the results back to my django view to display.
After they are displayed...they can be nuked...but the guy working on
this piece told me he couldn't get the
Nice, thanks for the help!
On Apr 16, 2:09 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, ltbarcly <[EMAIL PROTECTED]> wrote:
>
>
>
> > Is it possible to use the {% url %} tag with generic views? Generic
> > views get used more than once in an app presumably, so there would
> > have t
I'm doing something pretty similar sounding with jQuery. I wanted to
check for form validation errors via Ajax and do a regular form
submission otherwise.
The JavaScript:
http://dpaste.com/hold/8571/
The Python:
http://dpaste.com/hold/8572/
The code might be a little weird looking. I'm relying
The _checklogin decorator in django/contrib/admin/views/decorators.py
is very helpful - if a user enters an email address as their username,
and authentication fails, it gives a message saying that email
addresses are not allowable as usernames.
In a particular app, I am using email addresses as
I am sure this question has been asked before but haven't been able to
find the answer.
I am using the django decorator for user authentication.
My views has the line
@login_required
And my urls.py has the line
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
It works fine in the dj
Am I the only one who has a hellish time trying to navigate Django's
online documentation? (here: http://www.djangoproject.com/documentation/)
There seems to be no good table of contents for what is in the
documentation, and no good way to navigate once you hit a specific
page.
For example, the
http://www.freemp3sky.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 this group, send email to [EMAIL
No python/django programmers here looking for work?
On Apr 13, 1:29 pm, "sime" <[EMAIL PROTECTED]> wrote:
> I'm looking for a talented local programmer to help with a growing
> workload, on a regular contract basis. All projects in django :-)
>
> Or if you have experience working remotely that c
Perfect analogy there James :-)
On Apr 17, 2:09 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 4/16/07, M Harris <[EMAIL PROTECTED]> wrote:
>
> > I am new to Django, but am familiar with python. I am also
> > familiar with
> > joomla (formerly mambo), and I would like someone to pr
Briefly, I have a system set up to manage football teams, with
fixtures, results, players etc.
How would I go about editing the admin permissions so that User X
could only edit the fixtures and results for Team X, and User Y could
only edit the fixtures for Team Y? I've looked at the admin secti
On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
> Briefly, I have a system set up to manage football teams, with
> fixtures, results, players etc.
>
> How would I go about editing the admin permissions so that User X
> could only edit the fixtures and results for Team X, and User Y could
> only e
Thanks for the quick and detailed reply Russ, I'll have a look at the
wiki now.
Regards,
Duncan
On Apr 17, 12:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 4/17/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
>
>
> > Briefly, I have a system set up to manage football teams, with
> > fixt
On 4/17/07, Nate Finch <[EMAIL PROTECTED]> wrote:
>
> No breadcrumbs so you can go up in the document heirarchy, just a link
> to the root documentation page
Breadcrumbs for the docs page are a reasonable request. Open a ticket
and request them.
> If you go to the root, you'll notice there's
I'm triying to build a custom admin site.
I'm using the newforms library in 0.97-pre.
DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too
utf-8 and the html templates are
.
All the other things work fine using old-forms, including the admin
site.
Also,I can load python manage
I have a model with two DateTimeFields, named start and end. As Python
datetime objects, I'd like to ensure that (start < end) for all valid
instances of this model. What's the right way to enforce this
invariant?
I tried making a custom Validator object and adding it to
start.validator_list, a
On Mon, 2007-04-16 at 19:45 -0700, mamcxyz wrote:
> I'm triying to build a custom admin site.
>
> I'm using the newforms library in 0.97-pre.
>
> DEFAULT_CHARSET='utf-8', the database is Mysql and the tables are too
> utf-8 and the html templates are
> .
>
> All the other things work fine using
Hi Michael,
On Mon, 2007-04-16 at 22:42 -0400, Michael F. Robbins wrote:
> I have a model with two DateTimeFields, named start and end. As Python
> datetime objects, I'd like to ensure that (start < end) for all valid
> instances of this model. What's the right way to enforce this
> invariant?
I'm writing some model code which needs to be reusable in several
different applications. I'm running into a lot of name clashing
issues, and need to use related_name to disambiguate relationships.
To accomplish this, I need some way in my model code to find out the
name of the application that i
http://www.teenwag.com/widget
--~--~-~--~~~---~--~~
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 group, send email to [E
I discovered a new web site called AGLOCO!
www.agloco.com/r/BBDF7566
I discovered a new web site that is about to publicly launch, and I
feel I need to tell everyone about it. AGLOCO promises to pay you to
do what you normally do - use your browser to surf the web. And, if
you tell your friends ab
46 matches
Mail list logo