Actually, it seems like the search popup should focus on whatever
documentation you're looking at. So, instead of saying "Django 1.3" I would
argue that it should have said "Django Dev". That would mean that it was
defaulting to the use it would probably be put to, and simultaneously tell
the
Ah! Thanks everyone for the feedback.
The reason I was confused may be stupid, but FWIW here it is: Underneath the
Search input area, there's a popup menu that says "Django 1.3". My eye went
over there and registered the 1.3 without figuring out that it refers to
what is being searched in. I
I'm having a strange problem.
When I run
django-admin startproject mysite
I get a directory structure that is flat in the sense that there is no inner
mysite directory -- the manage.py and urls.py files are at the same level.
But Part 1 of the django tutorial
Hello,
Suppose I have a model my_model, with several fields, one of which is
x. Suppose it's based on an SQL table with the same name.
In SQL, I can:
select x, count(*)
from my_model
group by x
In order to get the number of rows with each value of x.
I'm not sure how to do that in django.
> This indicates that no matter what you may think, you have another
> version of the Django code installed somewhere on your computer and
> it's being picked up (or perhaps you have a corrupt or partial install
> -- e.g., you may have some files from one version of Django, and other
> files from
> Try doing ./manage.py shell
>
> >>> import django
> >>> django.version
>
> and see what it prints out.
(0, 96.094, None)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Following up on my previous message in this thread, after changing
maxlength to max_length,
python manage.py sql polls
works, but
python manage.py syncdb
results in
sqlite3.OperationalError: near ""choice"": syntax error.
This seems odd since the code for the choice class was pasted right
I'm doing the .96 tutorial because my company is using version 96.1
for now.
The tutorial has:
class Poll(models.Model):
question = models.CharField(maxlength=200)
pub_date = models.DateTimeField('date published')
class Choice(models.Model):
poll = models.ForeignKey(Poll)
odels/querysets/#iterator
>
> 2: What you're trying to do can be done much more efficiently the
> following way: sum(SomeModel.objects.all().values_list('value'))
>
> 3: django 1.1 will have aggregation support, meaning you won't even
> need to do #2
>
> On Dec 24, 5:42 pm, ga
Or, if the issue is at least partly due to buffering for efficiency in
communicating between django and the database engine, is there a way
to choose to have smaller buffers?
On Dec 24, 12:42 pm, garyrob <gary...@mac.com> wrote:
> I am getting the impression that when I do a django
I am getting the impression that when I do a django database query
that iterates through all the rows of the table, django stores every
model instance in memory.
For instance, just doing
sumValues = 0
for someModel in SomeModel.objects.all():
sumValues += someModel.value
print sumValues
On Apr 19, 3:20 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> However, the Apache process lives beyond the expiration of a
> connection which uses KeepAlive, if that's the question. Generally,
> an Apache process under prefork will server MaxRequestsPerChild
> requests before stopping.
>
Many
I posted a question here a few months ago about benefitting from
multiprocessing when using Django. I was concerned about the GIL
getting in the way. I received a response: "if you're running Django
in an approved deployment setup -- that is, under mod_python or FCGI
-- you'll be running a number
My company is buying a new machine to run a Django-based application.
Due to Python's global interpreter lock, I assume that Django can't
take advantage of multiple CPU's. Is that correct? But most high-end
machines these days come with multiple CPU's.
If so, is there any reason we can't
14 matches
Mail list logo