using adobe forms (fdf) to create PDF

2010-08-14 Thread Sells, Fred
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"

Re: python threading admin actions weird problem

2010-08-14 Thread rahul jain
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

python threading admin actions weird problem

2010-08-14 Thread rahul jain
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

Re: mod_wsgi+Apache+Postregsql on Windows

2010-08-14 Thread Graham Dumpleton
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 > >

Re: Django comment moderation error: AlreadyModerated at /

2010-08-14 Thread Ludovico Fischer
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

Re: Best practice for maintaining the "Django stack"

2010-08-14 Thread Oivvio Polite
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

Re: Best practice for maintaining the "Django stack"

2010-08-14 Thread Oivvio Polite
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

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-14 Thread Eric Chamberlain
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

Re: Create files and directories from Django 1.2.1

2010-08-14 Thread Mike Dewhirst
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

Re: AttributeError for ModelForm

2010-08-14 Thread vikalp sahni
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",

Long running process and time outs?

2010-08-14 Thread ydjango
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

Re: Can't build Django documentation

2010-08-14 Thread Ramiro Morales
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]

Re: mod_wsgi+Apache+Postregsql on Windows

2010-08-14 Thread CLIFFORD ILKAY
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

Convert php project into django

2010-08-14 Thread Jagdeep Singh Malhi
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

Re: How to check for m2m orphans before deleting an object?

2010-08-14 Thread Alessandro Pasotti
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

Re: Can't build Django documentation

2010-08-14 Thread bagheera
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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 =

Re: new Django-Python can't get to sqlite

2010-08-14 Thread jose antunes
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Nick
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()

Create files and directories from Django 1.2.1

2010-08-14 Thread Mark Mooij
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

Re: [HELP] To make a basecamp like - project management site

2010-08-14 Thread Casey S. Greene
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

[HELP] To make a basecamp like - project management site

2010-08-14 Thread Micheal Kang
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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

Re: django queryset get only one result for one column pair

2010-08-14 Thread Kenneth Gonsalves
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

django queryset get only one result for one column pair

2010-08-14 Thread Rohan Jain
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

Re: Can't build Django documentation

2010-08-14 Thread Ramiro Morales
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

Re: Can't build Django documentation

2010-08-14 Thread DrBloodmoney
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 >

RE: Django Matrimonial Apps,

2010-08-14 Thread Kenneth Gonsalves
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

RE: Django Matrimonial Apps,

2010-08-14 Thread Rizwan Mansuri
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:

Re: Loop over a form's choices (radio button) and render it

2010-08-14 Thread Andreas Pfrengle
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

Re: dashboard question

2010-08-14 Thread ionut cristian cucu
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,

AttributeError for ModelForm

2010-08-14 Thread jcage
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 =

Re: mod_wsgi+Apache+Postregsql on Windows

2010-08-14 Thread Sam Lai
I haven't watched Graham's video, but here's what I typically do. On 14 August 2010 15:39, 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: > > So in general, > > 1.

Re: mod_wsgi+Apache+Postregsql on Windows

2010-08-14 Thread Sam Lai
On 14 August 2010 15:39, John Yeukhon Wong wrote: > I noticed that if I have two of them co-exist simultaneously > WSGIScriptAlias / "f:/public/testproject/apache/django.wsgi" > WSGIScriptAlias /testproject "f:/public/testproject/apache/hello.wsgi" > > I will get nothing