I see a lot of thumbnails on the page (looks like a terrific place
too!), click on one of them and get a full sized image.
I'm using Safari 2.0.3 - ok (also works in Shiira 1.2.1)
however
Firefox 1.5.0.1 and Camino 1.0 - behaviour you describe
Hmm, could be a browser problem?
hth
Cheers,
Tone
Hi,
I think both are a form of 'optimistic locking' but I do think that
adding a version-column should give better performance, because the
WHERE-clause is simplified a lot, not having a potentially large number
of expensive string-comparisons (and the data-caching form might give
problems with C
BrandonC wrote:
> (r'^media/(?P.*)$', 'django.views.static.serve',
> {'document_root': 'path/to/document/root/media', 'show_indexes':
> True}),
>
> As a temporary measure you can add a line like this to your urls.py in
> order to serve media when developing, replacing the path line with an
> absol
I am trying to solve the same problem
I have read another comment on the main django page, about
{{% extends "BaseOrAnotherTemplate"%}}
and I get the message:
cannot be extended because BaseOrAnotherTemplate" does not exist!
please help!
--~--~-~--~~~---~--~~
You might be able to fix that by using myapp/BaseOrAnotherTemplate. I
managed to get that part working! Also, if you have a setup like
/templates/myapp/ this is why it maybe can't find the file.
My urls.py file is:
from django.conf.urls.defaults import *
urlpatterns = patterns('ourproject.leagu
Yes, true, its a matter of trade offs. With a verison you add
irrelavant data to your table schema. But potentially gain some
performance. I tend to like my tables clean and relevant. Just a
personal preference.
Plus it means the locking can work regardless of the table schema.
Once you have to
thebubblejungle wrote:
> You might be able to fix that by using myapp/BaseOrAnotherTemplate. I
> managed to get that part working! Also, if you have a setup like
> /templates/myapp/ this is why it maybe can't find the file.
my directory structure is exactly that way. But it still doesnt accept
i
Have you followed the Django tutorial? Up to page 2? I suggest you do
that and see if that helps. I imagine you've just got an incorrect
pointer to a directory. That's quite scary that you're at Leeds too!
I'm still getting a 404 error now when trying to locate my CSS file = (
this has taken me at
Is it bad form to put a database object in a session variable? It
really just feels wrong, but it works. Typically, I would just put the
object's ID in a session variable and retrieve the object when I next
needed it, but I accidentally forgot to do
``request.session["this_thing"] = obj.id`` and
Yes! I've done it = ) I added a STATIC_PATH variable to my settings.py
which pointed to /static/leaguemanager so that in my templates I can
use static/css/style.css to reference a stylesheet. I added this to my
urls.py in my leaguemanager directory:
from django.conf.settings import STATIC_PATH
fr
Hi all,
This is very strange. I am getting an " ArrributeError no attribute
named get_list" in the browser, but when I import the model in the
shell, get_list works fine.
I wonder how I can solve this. The rest of my site and models work
fine.
Grateful for any assistance. I kind of need to g
Hi,
On the following model:
class Object(meta.Model):
created = meta.DateTimeField(auto_now_add=True)
account = meta.ForeignKey(Account)
title = meta.CharField(maxlength=200)
...
When I do:
new_object = account_obj.add_object(title='foo')
My new_object.title=='foo' is True, but
Just incase I wasn't clear, in case I don't refresh the object the
error indicates that it can't save the object with 'None' for its
created date field. That is, when the object was added, its created
date field was not populated.
Sia
--~--~-~--~~~---~--~~
You r
Hello,
I've run into problems with ordering lists. My models are:
class Artist(meta.Model):
name = meta.CharField(maxlength=255)
class META:
ordering = ('name',)
admin = meta.Admin()
class Record(meta.Model):
artist = meta.ForeignKey(Arti
wizeman a écrit :
> Hi. I'm just starting to use Django and I'm loving it.
>
> Don't you think it would be great if Django was ported to Boo (
> http://boo.codehaus.org/ ) ?
No.
> If you don't know Boo, here are some of the main features:
(snip)
> - It's compiled, so type mismatches are caught
Kenneth Gonsalves wrote:
> hi,
> i have a site:
> http://ootygolfclub.org/web/galls/2/
> this is built using nesh's thumbnails app. On clicking a photo, you
> should see full size - but you get a thumbnail. After going back
> and forth several times, you do get the full size image. What
> gives
On 3/5/06, Jeremy Jones <[EMAIL PROTECTED]> wrote:
>
> Is it bad form to put a database object in a session variable? It
> really just feels wrong, but it works. Typically, I would just put the
> object's ID in a session variable and retrieve the object when I next
> needed it, but I accidentall
Why don't you post some code? Nothing is obvious from what you've said
-rob
--~--~-~--~~~---~--~~
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
Are there any hooks that I don't know about where I could kick off a
scheduler when my project is initialized by Django? I saw a response to
another post mentioning to use a system scheduler (cron, etc.). I
*could* do this, but would rather use the sched lib. Any ideas?
Thanks in advance,
Tom
-
I forgot to add that I might resort to calling the scheduler inside
settings.py, since I know for sure that file will get evaluated...
Any reason why I shouldn't do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
wizeman wrote:
> Jeremy Dunck wrote:
>> IronPython -is- Python, runs on .Net, and is coming along nicely.
>
> Yes, IronPython is also cool. You know when you look at something and
> you say - wow, this is a great idea and it would be great if everyone
> realizes that? I had that feeling with Pyth
On 3/5/06, gabor <[EMAIL PROTECTED]> wrote:
>
> >>> def f(y):
> ... x = y * 3
> ... return x + y
> ...
> >>> f(5)
> 20
> >>> f('_django_')
> '_django__django__django__django_'
> >>>
>
> you know...this whole 'static typing' thing is a little a double-edged
> sword, isn't it? :))
You k
Hello,
I'm building a search engine to find artists in my database. Naturally,
I would like the results to be distinct without the artist names
repeated.
Here my code:
search_results =
catalogs.get_values(artist__icontains=form["searchquery"],
distinct=True)
I read the DB docs but I'm still st
nevermind, I figured it out.
Django needs better documentation :)
--~--~-~--~~~---~--~~
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 unsubsc
On Mon, 2006-03-06 at 01:23 +, tgone wrote:
> nevermind, I figured it out.
>
> Django needs better documentation :)
So can you post whatever you figure out to this thread as well.
Otherwise people are just going to find your original email via a Google
search without seeing the answer. If y
With all due respect, this doesn't attend to my question.
Why can I use MySQLdb from python to run a date_add query, but not run
the same query from Django?
I don't see the point in using a workaround for a query that I should
be able to call through MySQL
--~--~-~--~~---
Hi, Max
Many thanks for the reply. I noticed the auto_grow property and has
used it. I will try request.user.username and staff_member_required.
Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
Malcolm,
You make a good point. here is the working code:
search_results = catalogs.get_values(fields=['artist'],
order_by=['artist'], artist__icontains=form["searchquery"],
distinct=True)
I forgot to specify the distinct field that I wanted to return
(fields=['artist']). Simple mistake.
Howev
I'm working on adding "user ratings" to my first Django web app.
I'm having trouble getting the admin interface to work with
subclasses.
When I try the following it seems to work... up to a point. In a sh
script I create the db and populate with a couple of "places". Then, in
admin, when I clic
On Mon, 2006-03-06 at 01:46 +, tgone wrote:
> Malcolm,
>
> You make a good point. here is the working code:
>
> search_results = catalogs.get_values(fields=['artist'],
> order_by=['artist'], artist__icontains=form["searchquery"],
> distinct=True)
>
> I forgot to specify the distinct field t
Malcolm Tredinnick wrote:
> The 'fields' keyword argument is specific to get_values() because it
> specifies the fields you want returned. The get_count() method returns
> an integer -- you don't get a choice there -- so there is no 'fields'
> argument required or permitted, only lookup constraint
there is no 'functionality' inside of django which does scheduling
automatically, or helps you with scheduling.
what people are doing is just writing python scripts and then
scheduling them via cron.
you could possibly also use the event scheduler in mysql 5.1 as well
if you like.
regards
Ian
On Sun, 2006-03-05 at 18:06 -0800, tgone wrote:
> Malcolm Tredinnick wrote:
> > The 'fields' keyword argument is specific to get_values() because it
> > specifies the fields you want returned. The get_count() method returns
> > an integer -- you don't get a choice there -- so there is no 'fields'
Talking to myself, here; always a bad sign...
On Mon, 2006-03-06 at 14:19 +1100, Malcolm Tredinnick wrote:
> On Sun, 2006-03-05 at 18:06 -0800, tgone wrote:
> > Malcolm Tredinnick wrote:
> > > The 'fields' keyword argument is specific to get_values() because it
> > > specifies the fields you want
On 3/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Yeah... it looks like count(distinct(*)) queries are not being
> constructed. I just tested the equivalent case in the magic-removal
> branch and it's doing the wrong thing there.
>
> Can you file a ticket about this, please? Then we won'
I found some interesting ideas in this article. And also an
interesting screencast in the blog.
http://oodt.jpl.nasa.gov/better-web-app.mov
Which compared J2EE, Rails, Zope, TurboGears and Django for both hello
world and a time tracker.
--
I like python!
My Blog: http://www.donews.net/limodou
N
Using trunk, I have a model that has a number of fields which are
CharFields, that I would like to be optional but if they are filled
out, unique.
I express this with:
tab = meta.CharField(maxlength=15, unique=True, blank=True)
Creating the first object in admin with a blank tab field works jus
Hello,
I tried to implement basic free comments into my web apps using the
following links :
http://www.rossp.org/blog/2006/feb/17/building-blog-django-3/
http://www.dobbes.com/blog/2005/jul/23/django_comments/
I got the "comments post comments" displaying well
(check http://ozserver.no-i
On 3/5/06, limodou <[EMAIL PROTECTED]> wrote:
> http://oodt.jpl.nasa.gov/better-web-app.mov
>
> Which compared J2EE, Rails, Zope, TurboGears and Django for both hello
> world and a time tracker.
If that's the one I saw a little while ago, it's got some serious
factual problems -- for example, he
On 3/6/06, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 3/5/06, limodou <[EMAIL PROTECTED]> wrote:
> > http://oodt.jpl.nasa.gov/better-web-app.mov
> >
> > Which compared J2EE, Rails, Zope, TurboGears and Django for both hello
> > world and a time tracker.
>
> If that's the one I saw a little wh
It seems to work only with the built in server from manage.py.
Something wrong with my apache config ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djang
I am trying to run django from svn under Mac OS X 10.4.5 using packages
provided by Fink's unstable branch, namely python24, mysql and
mysql-client 5.0.16-1, and mysql-python-py24 1.0.1-2. I have followed
directions found at http://cavedoni.com/2005/django-osx and am
currently attempting the exam
current solution :
ln -s ~/Projects/cefinban/templates/comments
/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/contrib/admin/templates/comments
Any better fix .. ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
43 matches
Mail list logo