I'd like to ask for you guidance in the following matter in django:
I am using the following models:
class QItem(models.Model):
isWhat = models.CharField(max_length=100, blank=True,
choices=ISWHAT)
slug = models.SlugField(blank=True)
script = models.CharField(max_lengt
Sorry wrong list
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visi
Hello Bill,
thanks for your answer. However, I've never written a template filter
yet. Would you present the code of your checkboxiterator? Is there
sth. on djangosnippets?
Andreas
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
Dear Kenneth,
I belies in open sources 100%. Anything what I will write would be 100% open
source.
Riz
-Original Message-
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com]
On Behalf Of Kenneth Gonsalves
Sent: 14 August 2010 03:28
To: django-users@googlegroups.com
On Sat, 2010-08-14 at 12:28 +0100, Rizwan Mansuri wrote:
> I belies in open sources 100%. Anything what I will write would be
> 100% open
> source.
in which case - where is the code - I would like to join
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to t
On Fri, Aug 13, 2010 at 11:11 PM, Kevin wrote:
> I tried to build the Django docs and got an error.
>
> $ cd django/docs/
> $ make html
> sphinx-build -b djangohtml -d _build/doctrees . _build/html
> Running Sphinx v1.0.1
> loading pickled environment... not yet created
> building [djangohtml]:
On Sat, Aug 14, 2010 at 12:11 AM, Kevin wrote:
> I tried to build the Django docs and got an error.
>
> $ cd django/docs/
> $ make html
> sphinx-build -b djangohtml -d _build/doctrees . _build/html
> Running Sphinx v1.0.1
> [...]
> Exception occurred:
> File "/Users/src/django_docs/_ext/djangod
I have a field 'submission' which has a 'user' and a 'problem'.
How can i get a django queryset search result which will give a list
of only one result per user-problem pair.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote:
> I have a field 'submission' which has a 'user' and a 'problem'.
> How can i get a django queryset search result which will give a list
> of only one result per user-problem pair.
does your model not have a unique_together for user and problem
Actually there may be many submissions with a user-problem pair but i
want to list only the last one per user - problem pair.
Like:
let p1 be two problems , u1, u2 be two users and s1,s2 two submissions
by user u1 on problem and s3,s4 by u2.
so i want to get a queryset with only the last submissi
On Aug 14, 5:57 pm, Kenneth Gonsalves wrote:
> On Sat, 2010-08-14 at 05:45 -0700, Rohan Jain wrote:
> > I have a field 'submission' which has a 'user' and a 'problem'.
> > How can i get a django queryset search result which will give a list
> > of only one result per user-problem pair.
>
> does
Hi all,
I'm trying to make a basecamp(http://basecamphq.com/) like project
management site, for the simple reason that I want to have one by
myself and using it for a better project management in my company.
Based on the comparison within different python web framework, I think
django is the good
You should check out Basie:
http://basieproject.org/index.html
I haven't used basecamp so I don't know if they are comparable.
Hope this helps!
-- Casey
On 08/14/2010 09:20 AM, Micheal Kang wrote:
Hi all,
I'm trying to make a basecamp(http://basecamphq.com/) like project
management site, for
Hi all,
I recently migrated from Django 1.1.1 to 1.2.1. In 1.1.1 I had an
application which imports an external python script in which a
directory and some files are created. Since the migrate this doesn't
work anymore, I get a number of IOErrors because the files (and
directory) that should be cr
http://docs.djangoproject.com/en/dev/ref/models/querysets/#distinct
Distinct() may be what you're looking for to returns distinct values
for each problem.
Or, petter yet, you could use .latest()
So Submission.objects.all().latest('problem').distinct()
http://www.djangoproject.com/documentation/
I have recently had the same issue. The problem was a python sqlite3 library
missing, by the name "_sqlite3.so". If that is missing it wont work. It can
be found if present in the python directory, under the lib_dynload/
directory.
Like this for exemple: /usr/lib/python26/lib_dynload/_sqlite3.so
O
My models are defined like this:
class Problem(models.Model):
title = models.CharField('Title', max_length = 100)
question = models.TextField('Question')
class Submission(models.Model):
user = models.ForeignKey(User)
problem = models.ForeignKey(Problem)
solution = models.CharK
Dnia 14-08-2010 o 05:11:25 Kevin napisał(a):
I tried to build the Django docs and got an error.
$ cd django/docs/
$ make html
sphinx-build -b djangohtml -d _build/doctrees . _build/html
Running Sphinx v1.0.1
loading pickled environment... not yet created
building [djangohtml]: targets for 42
2010/8/13 Nick Serra
> Look into the clear() method on many to many relations.
> Calling .clear() before a delete will remove all relations between the
> models and allow you to delete the category only. You might be
> fighting the django admin on this though, so this would be best
> implemented
I make a project in php5, but now i want shift my project into Django.
I am able to shift my database into model.py file using this command
#django-admin.py inspectdb
and also complete the 4 Tutorial http://docs.djangoproject.com
but now want to my shift the other php5 work into django.
Is it po
On 08/14/2010 01:39 AM, John Yeukhon Wong wrote:
I do plan to deploy the project on a UNIX server in the future, and I
still do want to follow up with the previous discussion:
I sure hope that you're not going through all this just for development.
The Django dev server is quite sufficient for
On Sat, Aug 14, 2010 at 9:07 AM, DrBloodmoney wrote:
>
> The docs [0] mention an incompatibility with the currently released
> Sphinx. I can't build right now either, and I'm too lazy to install
> Sphinx from source.
>
> [0] http://docs.djangoproject.com/en/dev/intro/whatsnext/#as-html-locally
Th
I have a online user initiated synchronous process which runs anywhere
between 1-5 minutes and gives user status message at the end. It is a
very DB intensive process that reads and updates lots of mysql rows
and does many calculations. The process is run as part of a view
method.
It causes nginx
As you are using Multi Table Inheritance,
Django docs says you should give "related_name" attribute to all your sub
classes fields
where relation is tried to establish.
You can try changing ur Question Model to:
class Question(QItem):
answerObject = models.OneToOneField("AnswerObject",
On 15/08/2010 12:10am, Mark Mooij wrote:
Hi all,
I recently migrated from Django 1.1.1 to 1.2.1. In 1.1.1 I had an
application which imports an external python script in which a
directory and some files are created. Since the migrate this doesn't
work anymore, I get a number of IOErrors because
In our case, I've tracked the problem to the client library we are using,
ASIHTTPRequest. The library is occasionally sending an incorrect
Content-Length when configured to use persistent connections.
On Aug 10, 2010, at 8:47 AM, Roger wrote:
> I'm seeing the same symptoms. The rate is much
On Fri, Aug 13, 2010 at 04:40:06PM +0200, Thomas Guettler wrote:
>
> What kind of error do you get? Please post the traceback.
>
..E.FEEE.E...E..
==
ERROR: Does logging wo
Thanks to everyone who replied. I'll read up on virtualenv and pip.
Oivvio
--
http://pipedreams.polite.se/about/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscri
I have encountered the same problem; the reason is that every time
models.py is imported Django attempts to register the moderator
another time.
You can do as suggested here:
http://stackoverflow.com/questions/3277474/django-comment-moderation-error-alreadymoderated-at
but it looks as if _registry
On Aug 14, 3:39 pm, John Yeukhon Wong wrote:
> Hi, Graham
>
> I looked at the error log and I fully understood the problem.
>
> I spent an hour trying different ways to understand the whole thing.
> Here is the result.
>
> f:/public/testproject/apache/django.wsgi
>
> //code begins here
> import
Hi there !
Some weird problem happening with admin actions.
My admin action create threads which access a shared variable.
Those threads change the state of the variable for ex
check = False (a boolean)
One of the thread sets it to True
At this time I am done with that entire request.
Now if
Sorry one more thing
Sometimes it starts with
check = False
Its happening at random time.
--RJ
On Sat, Aug 14, 2010 at 7:36 PM, rahul jain wrote:
> Hi there !
>
> Some weird problem happening with admin actions.
>
> My admin action create threads which access a shared variable.
> Those threa
Does anyone have experience doing this and can share a link or a snippet.
I've got a multi page PDF with editable fields, but I want to fill the whole
thing in from my DB and then print it.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
33 matches
Mail list logo