Hi,
There is two common problems that may occur:
1) You don't have read and write permissions for directory where
database file resides.
2) You haven't incorrect or missing path for database file. Even Sqlite
can create database ile itself it can't create path(s) needed.
On Sun, 2011-05-15 at
Hi, after using aggregation
>
> x=self.results.filter(timeEnd__isnull=False).values('idTest').annotate(Max('timeEnd'))
>
> I want to filter x using .filter() over columns that are not aggregated
('result')
but instead of making it a 'having' clause
it goes into 'where'
and resulting not in
On Mon, May 16, 2011 at 10:21 PM, Michal Petrucha wrote:
> On Mon, May 16, 2011 at 09:58:40PM +0200, Marc Aymerich wrote:
> > Hi Swawm.
> > Thanks for your answer.
> >
> > when I call Model.objects.active_during(Q(Q(ini=some_date, end=some_date)
> |
> > Q(ini=other_date,
> > I'd think you'll find it's significantly more than a factor of 2. For bulk
> > inserts, raw SQL is often several orders of magnitude faster.
>
> You might want to check outhttp://pypi.python.org/pypi/dse/. My tests
> using postgres showed a 3Xperformancegain on inserts compared to
> using the
Sorry, I should have clarified. I have been logging. I've logged
pretty much every variable in every method. It's all there and
properly set until it has to be retrieved from the next form in the
wizard; and if there's an error in an unrelated field, the values do
not show as selected in the
On Mon, May 16, 2011 at 09:58:40PM +0200, Marc Aymerich wrote:
> Hi Swawm.
> Thanks for your answer.
>
> when I call Model.objects.active_during(Q(Q(ini=some_date, end=some_date) |
> Q(ini=other_date, fin=other_date))) I get This error:
>
>
> active_during() takes exactly 3 arguments (2 given)
On Mon, May 16, 2011 at 08:48:45PM +0200, Marc Aymerich wrote:
> Hi,
> my question is, How can I define a custom manager that can handle Q
> objects?
The important thing to realize here is that the default managers proxy
all get, filter and other QuerySet calls to a QuerySet that they
store,
On Mon, May 16, 2011 at 8:53 PM, Shawn Milochik wrote:
> On 05/16/2011 02:48 PM, Marc Aymerich wrote:
>
>> Hi,
>> my question is, How can I define a custom manager that can handle Q
>> objects?
>>
>> Thanks!
>>
> A custom manager, being a subclass of models.Manager, can
I figured it out - feel kind of silly
Had to run setup.py in Django directory under Google App Engine
install.
On May 16, 2:05 pm, Afshin Moshrefi wrote:
> I updated PATH and PYTHONPATH as environmnet variable on windows and
> also by going to python and using append
>
Hi everybody!
I have two classes in models.py:
class ModelOne(models.Model):
field_one = models.CharField(max_length=100)
field_two = models.CharField(max_length=200)
field_three = models.CharField(max_length=300)
[...] #other fields
def __unicode__(self):
return
Try putting logging statements at strategic points and see when your
expectations aren't met.
--
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,
For a formwizard, I'm trying to set the values of a
ModelMultipleChoiceField in the form's clean() method, based on the
cleaned_data from another field, and it's not working.
Here's roughly what I'm trying to do:
# forms.py
from django import forms
from myapp.models import MyModel
class
On 05/16/2011 02:48 PM, Marc Aymerich wrote:
Hi,
my question is, How can I define a custom manager that can handle Q
objects?
Thanks!
A custom manager, being a subclass of models.Manager, can already handle
Q objects in the built-in methods, such as filter and get.
What error are you
Hi,
my question is, How can I define a custom manager that can handle Q
objects?
Thanks!
--
Marc
--
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
I updated PATH and PYTHONPATH as environmnet variable on windows and
also by going to python and using append
import sys
sys.path.append("C:\Program Files\Google\google_appengine\lib
\django_1_2")
when trying to make a new django project I still get the same error
no module named django.core
I can't say for sure that it does, I didn't need such a feature but I
think it can be customized to support that.
On Mon, May 16, 2011 at 7:40 PM, br wrote:
> Cool. I'll have to look at that. Does this support nonlinear form
> flows (i.e., you go from Form1 to Form2 back to
Cool. I'll have to look at that. Does this support nonlinear form
flows (i.e., you go from Form1 to Form2 back to Form1 and then hit
submit) or is there another app for that?
On May 16, 7:50 am, Lucian Nicolescu wrote:
> Did you check out the form wizard that Django comes
Sorry about that. It is indeed not right. I will take care of this from next
time onwards.
On Mon, May 16, 2011 at 11:45 AM, Fabian Ezequiel Gallina <
galli...@gmail.com> wrote:
> 2011/5/16 AJ :
> > I think you are getting the poll object back. You need to specify the
>
On Mon, May 16, 2011 at 08:14:09AM -0700, Afshin Moshrefi wrote:
> failed again because django.core import management
> ImportError: No module named django.core
It's #3 in
http://docs.djangoproject.com/en/dev/topics/install/#installing-the-development-version
I.e., if you unpacked it e.g. under
2011/5/16 AJ :
> I think you are getting the poll object back. You need to specify the method
> for your model class(es)
>
> def __unicode__(self):
>
> return "%s %s %s" % (self.poll_name)
>
>
That is wrong, you have a placeholder for three args and just pass one
to
I really must be missing something obvious. I've installed app
engine on windows xp. All seems to work until I tried a Django
example!
I first tried to make a django project:
django-admin.py startproject testapp
failed because i think django-admin.py was not not on the path.
I updated
Can it be necessary to recreate a model?
On 16 Maj, 16:32, momo2k wrote:
> Did you restart the interpreter after adding the code?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi Everyone,
I've been searching again and again but I can't figure out how to
display the list of all users in a group admin page. I'd like to
select members of a group directly from this group admin page.
Does anyone knows if it's possible?
Thank you for your help.
Regards,
Gontran
--
You
Did you restart the interpreter after adding the code?
--
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
I think you are getting the poll object back. You need to specify the method
for your model class(es)
def __unicode__(self):
return "%s %s %s" % (self.poll_name)
On Mon, May 16, 2011 at 8:32 AM, maaz muqri wrote:
> Hi,
>
>
I just installed RabbitMQ in my local machine (ubuntu 10.10, postgres
8.4.8 and rabbitmq 1.8.0, other stuff is the same version) and
everything worked fine (great!).
So I tried to do the same with the dev environment (centos 5.0 final,
rabbitmq 1.7.2 from epel repo). We have 6 machines: 2 cds
Did you check out the form wizard that Django comes with?
http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/
Sounds like this is what you are looking for ... multipage forms.
Lucian
On Mon, May 16, 2011 at 4:46 PM, br wrote:
> I have not written this
I have not written this yet, so am not posting code (yet). Also, I am
implementing a client facing interface (not using django admin for
this part).
I am sure this is common thing to do, in fact, I beleive it is done in
django admin, but I am somewhat confused as to the best or standard
way to
Hi,
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
# ...
def __unicode__(self):
return self.choice
after adding the above code also
Do you log django's stdout/stderr. You could do that with --outlog and
--outerr options of runfcgi command
On 16 май, 17:06, Vincent den Boer wrote:
> Hi,
>
> I'm using Django 1.3 with Lighttpd 1.4.28 via FCGI. It works fine, but the
> Django
> process tends to die
Ok. We will carry on monitoring it. Thank you very much again.
2011/5/16 Kenneth Gonsalves
> On Mon, 2011-05-16 at 13:59 +0300, Burcu Hamamcıoğlu wrote:
> > Thank you very much Kenneth. I think this is a one-off error for now.
> > If I
> > face to this problem again
On Mon, 2011-05-16 at 13:59 +0300, Burcu Hamamcıoğlu wrote:
> Thank you very much Kenneth. I think this is a one-off error for now.
> If I
> face to this problem again I'll use default=datetime.now. But I
> couldn't
> understand why this happens? Who causes this problem django middleware
> or
>
Thank you very much Kenneth. I think this is a one-off error for now. If I
face to this problem again I'll use default=datetime.now. But I couldn't
understand why this happens? Who causes this problem django middleware or
oracle db? Which one supposed to achieve this auto add action?
2011/5/16
On Mon, 2011-05-16 at 13:43 +0300, Burcu Hamamcıoğlu wrote:
> ORACLE.
long ago I used to have a lot of errors where there was an auto_now_add
field along with an image/file field in the same model. At one time
auto_now_add was deprecated and we were advised to use
default=datetime.now. If this is
ORACLE.
2011/5/16 Kenneth Gonsalves
> On Mon, 2011-05-16 at 11:31 +0300, Burcu Hamamcıoğlu wrote:
> > I have a project in prodution and a met a strange error last few days.
> > create date of my record's field is
> > "models.DateTimeField(auto_now_add =
> > True)" . At
On Mon, 2011-05-16 at 11:31 +0300, Burcu Hamamcıoğlu wrote:
> I have a project in prodution and a met a strange error last few days.
> create date of my record's field is
> "models.DateTimeField(auto_now_add =
> True)" . At 15th May a record has been saved to my db and create date
> of
> this
Hi,
I'm using Django 1.3 with Lighttpd 1.4.28 via FCGI. It works fine, but the
Django
process tends to die randomly. After it dies I have to manually restart it.
Does
anyone have an idea what could cause this?
Kind regards,
Vincent den Boer
--
You received this message because you are
On Fri, May 13, 2011 at 1:44 AM, pankaj sharma
wrote:
> Hello friends,.
> i want to upload some files to my database and show it to user ..
> how to add an filefield option to models.py and how to show them in
> admin.py.
> and how to let the users download the
Hi everybody,
I have a project in prodution and a met a strange error last few days.
create date of my record's field is "models.DateTimeField(auto_now_add =
True)" . At 15th May a record has been saved to my db and create date of
this record has been set to "15.06.6014". I couldn't believe my
On May 13, 1:44 am, pankaj sharma wrote:
> Hello friends,.
> i want to upload some files to my database and show it to user ..
> how to add an filefield option to models.py and how to show them in
> admin.py.
> and how to let the users download the files...
Suggest you
Eiji,
The documentation for MEDIA_URL and STATIC_URL is correct and quite
clear - once you understand what it is telling you. I also had suffered
the same confusion when I stated using Django and English is my first
language.
In general the Django documentation is comprehensive but concise.
41 matches
Mail list logo