Re: Solution for use Django with Ejabberd ?

2008-12-04 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-12-04, o godz. 01:03, przez E: > I want to use my django website with chat system ( ejabberd ). > I don't know how to Not specific to ejabberd (or XMPP at all), but shows how to do basic chat using Django and orbited: http://www.rkblog.rk.edu.pl/w/p/django-and-

Re: open source project management app that uses django?

2008-12-04 Thread Margie
Thanks - yes, that is pretty much the approach I am planning to take, but I just figured I'd see if there was anything interesting out there that would give me a spiffy look and feel for the reporting pages. One thing that I find confusing is how to come up with a color scheme. I know that seems

Add fields to another app model

2008-12-04 Thread Bojan Mihelac
Hi all! I am looking for right way to add fields to model that is in another app. At first I created mysite application and in models.py put from satchmo.contact.models import Contact Contact.add_to_class("company_name", models.CharField(max_length = 200)) that raises exception ProgrammingError

cursors and raw sql

2008-12-04 Thread bcurtu
Hi, i need to perform some Raw SQL queries in my django app. I read in the doc (http://docs.djangoproject.com/en/dev/topics/db/sql/) I can do sth like: def my_custom_sql(self): from django.db import connection cursor = connection.cursor() cursor.execute("SELECT foo FROM bar WHERE baz

Re: No module named urls

2008-12-04 Thread Rob Hudson
On Dec 3, 11:01 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This is an area where Django has poor error handling and we're slowly > cutting them down. So you have to do a bit of commenting out and > experimenting on the command line (just try a simple reverse() call each > time to trigger

Re: cursors and raw sql

2008-12-04 Thread David Zhou
On Thu, Dec 4, 2008 at 3:56 AM, bcurtu <[EMAIL PROTECTED]> wrote: > i need to perform some Raw SQL queries in my django app. I read in the > doc (http://docs.djangoproject.com/en/dev/topics/db/sql/) I can do sth > like: ... > The question is... Do I have to close the cursor? Assuming it's foll

Re: No module named urls

2008-12-04 Thread Rob Hudson
On Dec 4, 12:59 am, Rob Hudson <[EMAIL PROTECTED]> wrote: > I'll keep poking around a bit and see if I can dig up anything > further. I think I tracked it down... Looking at the tracebacks above, you can see the first time through, it winds up on line 198 which tries to import the urls.py file.

unable to open database file

2008-12-04 Thread gaz
Hi I am trying to run Django Questionaire (http://djangoquest.aperte- it.com/) on Apache with mod_python using SQlite on Windows 2003. When I try to log in I get the unable to open database file error. I saw a number of posts mention that the parent directory should be writable and it is. Here i

RE: open source project management app that uses django?

2008-12-04 Thread Hanny Wibisono
http://www.jutdahelpdesk.com/ -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Margie Hi everyone, I would like to create a django project managment web app to be used internally in my company. I am a software developer, but have little exp

Re: open source project management app that uses django?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 12:57:14 pm Hanny Wibisono wrote: > http://www.jutdahelpdesk.com/ I get this error: [EMAIL PROTECTED] ~]$ svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/jutda-helpdesk-read-only jutda svn: URL 'http://jutda-helpdesk.googlecode.com/svn/trunk/jutda-helpdesk-re

Re: open source project management app that uses django?

2008-12-04 Thread Horst Gutmann
Looks like you got hit by some evil linebreaks :-) svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/ jutda-helpdesk-read-only On Thu, Dec 4, 2008 at 11:40 AM, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On Thursday 04 Dec 2008 12:57:14 pm Hanny Wibisono wrote: >> http://www.jutdahe

Re: open source project management app that uses django?

2008-12-04 Thread Horst Gutmann
Grrr again linebreaks On Thu, Dec 4, 2008 at 11:51 AM, Horst Gutmann <[EMAIL PROTECTED]> wrote: > Looks like you got hit by some evil linebreaks :-) > > svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/ > jutda-helpdesk-read

Re: Question about i18n

2008-12-04 Thread Elvis Stansvik
2008/12/4 Malcolm Tredinnick <[EMAIL PROTECTED]>: > > > On Wed, 2008-12-03 at 12:51 +0100, Elvis Stansvik wrote: >> Hello django-users, first post to this list :) >> >> I often use the i18n support of Django in my projects, and I have a >> small annoyance/problem that maybe someone can help me wit

thread by latest post

2008-12-04 Thread Wim Feijen
Hello, While writing a forum app, I ran into a problem: I am unable to sort a list of threads by date of their latest post. My models look like: class Thread(models.Model): club = models.ForeignKey(Club) name= models.CharField(_('Thread'), max_length=100) date = models.DateTimeField

exclude() method bug

2008-12-04 Thread Karantir
Hi, I've just found strange django behaviour and want to understand is it a bug or an inconvenient feature. I have two models -- Place and Item bound through the intermediate table ItemPlace (that stores additional field -- quantity). Physically it describes some quantity of items lying on the so

Re: django-tagging encoding errors

2008-12-04 Thread Alex Jonsson
Basically, we use a VPS that runs CentOS 4.7, in which Python 2.3 came preinstalled. We've been on a tight schedule and therefore haven't updated Python yet. I probably would've been better off upgrading Python though than working with this bug ... We're switching hosts within the next weeks as w

Re: open source project management app that uses django?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 4:22:15 pm Horst Gutmann wrote: > Grrr again linebreaks > this worked: svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/ jutda -- regards KG http://lawgon.livejournal.com --~--~-~--~~-

Cookie domain

2008-12-04 Thread globophobe
Since upgrading to django 1.0 I've noticed some strange behavior with cookies. 1) Basically, if I do not set SESSION_COOKIE_DOMAIN to a value then my site is not accessible by either Mac Safari or Mac/PC IE. 2) If I set a value of ".domain.com" then my site is accessible by all Mac web browsers,

Re: unable to open database file

2008-12-04 Thread bruno desthuilliers
On 4 déc, 09:49, gaz <[EMAIL PROTECTED]> wrote: > Hi I am trying to run Django Questionaire (http://djangoquest.aperte- > it.com/) on Apache with mod_python using SQlite on Windows 2003. > > When I try to log in I get the unable to open database file error. I > saw a number of posts mention that t

Re: Authentication session timeout

2008-12-04 Thread mdp
> > What did you set SESSION_COOKIE_AGE to?  It rather sounds like you set it to > a string value when a numeric is expected. > > Karen Doh!! You're right, I'd set: SESSION_COOKIE_AGE = '600' Thanks Mike --~--~-~--~~~---~--~~ You received this message because y

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

DateTimeField and input_formats

2008-12-04 Thread ReneMarxis
Hi i have some basic question on datetime formating. I have one form and view as defined under http://dpaste.com/96096/ Just to get it right: shouldn't the form format the dates while rendering automaticly and show them formated according to the input_formats? The form does not for me. Also the

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
Thanks for your help Brian, Im still quite confused. I think what Im really not sure about is how to set the foreignkey manually as it doesnt really talk about that in the documentation. Here is what I have now, if extraformedit.user is a foreignkey, how do i connect it to the form I just saved?-

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
I dont know why the margins are squashing everything, ill try and post my code again this time without the comments if request.method == 'POST': form = UserCreationForm(request.POST) extraform = CustomProfileForm(request.POST) if form.is_valid(): userformI

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
I apologise for spamming everyone, here i stuck it up at dpaste with the comments which makes it a bit clearer- http://dpaste.com/96128/ On 4 Dec, 17:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I dont know why the margins are squashing everything, ill try and post > my code again this ti

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

Re: Why run two web-servers on the same host?

2008-12-04 Thread walterbyrd
On Dec 2, 10:25 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > Because django runs as a long-running process, and does not rebuild > the whole world on each and any request (which is what PHP do). Seems to me that would make Python run faster. I suppose that must take more system resourc

Custom MultipleChoiceField for ManyToManyField

2008-12-04 Thread coderb
Hi All, I have a detail entry linked to a category table with a manytomany relationship category model fields are (id, name, parent_id), and I've built the category hierarchy. The detail entry should only be linked to a lowest level category. So when it comes to adding / editing the detail ent

Re: More User/Profile troubles

2008-12-04 Thread Brian Neal
On Dec 4, 11:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I apologise for spamming everyone, here i stuck it up at dpaste with > the comments which makes it a bit clearer-http://dpaste.com/96128/ > You are almost there. You are assigning a form instance to your custom profile's user for

Re: exclude() method bug

2008-12-04 Thread maeck
If quantity is an integer field, should you not use the exclude as: Place.objects.exclude(itemplace__quantity = 0) If this is not it, please show us the models. Maeck On Dec 4, 4:58 am, Karantir <[EMAIL PROTECTED]> wrote: > Hi, > > I've just found strange django behaviour and want to understan

Re: Can javascript call a python script?

2008-12-04 Thread Django Newbie
With AJAX you can. Javascript is interpreted by the browser, and you want to call a serverside script. Or you could do it as a form submission, but I assume you want it to happen without refreshing the page, so AJAX is how you would do that. Eric wrote: > Hello, this might be a silly questio

Re: open source project management app that uses django?

2008-12-04 Thread maeck
You can use the standard css from the admin for your both the admin pages as the custom reports. Just load the admin css and follow the same html. Works for me. Maeck On Dec 4, 12:04 am, Margie <[EMAIL PROTECTED]> wrote: > Thanks - yes, that is pretty much the approach I am planning to take, >

VPS Hosting - Webkeepers

2008-12-04 Thread John M
Anyone tried this for django? http://www.webkeepers.com/index.html entry level is 6.95/mo, great for QA site I would think. Just curious Thanks John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Invalid block tag: render_comment_form (repost)

2008-12-04 Thread Florian Lindner
Hello, since noone replied and I still found no answer I dare to repost. I use the comments framework from the newest Django SVN checkout. I have in my template: {% load comments % } [...] {% render_comment_form for object %} resulting in a Invalid block tag: 'render_comment_form' I have fou

Python 3.0 released - what's the status of Django vs. 3.0?

2008-12-04 Thread ohmi
As the subject says - will Django compile and run on Python 3.0? --~--~-~--~~~---~--~~ 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

Re: Python 3.0 released - what's the status of Django vs. 3.0?

2008-12-04 Thread James Bennett
On Thu, Dec 4, 2008 at 1:37 PM, ohmi <[EMAIL PROTECTED]> wrote: > As the subject says - will Django compile and run on Python 3.0? No, nor is it expected to for at least a year or two, something entirely consistent with the general plan for pretty much all Python software to migrate. If you're g

Using managers for related object access

2008-12-04 Thread Luke Graybill
I am attempting to use a custom manager for related object access, as documented here, but it does not appear to be working properly. Upon accessing the reverse relationship, I am getting an unfilter

Re: VPS Hosting - Webkeepers

2008-12-04 Thread James Matthews
I haven't heard anything and I think you should try posting this on webhosting forums asking them. On Thu, Dec 4, 2008 at 8:52 PM, John M <[EMAIL PROTECTED]> wrote: > > Anyone tried this for django? http://www.webkeepers.com/index.html > > entry level is 6.95/mo, great for QA site I would think.

Re: open source project management app that uses django?

2008-12-04 Thread Margie
Ok - this is very useful! It is just great to see a "real" app that does something similar to what I want. The code looks very nice and seems simple to understand. I have downloaded it and integrated into my little play django application, but I have one problem. In the README it says: 6. In

Re: Invalid block tag: render_comment_form (repost)

2008-12-04 Thread tofergus
On 04.12-20:22, Florian Lindner wrote: [ ... ] > I use the comments framework from the newest Django SVN checkout. sorry to not be of more help (i've never used the comments framework) but i can only suggest that you select a release version and not the 'newest' (i'm assuming that means trunk).

Re: Using managers for related object access

2008-12-04 Thread bruno desthuilliers
On 4 déc, 21:39, "Luke Graybill" <[EMAIL PROTECTED]> wrote: > I am attempting to use a custom manager for related object access, as > documented > here, > but it does not appear to be working properly. Upon accessing the

Re: Python 3.0 released - what's the status of Django vs. 3.0?

2008-12-04 Thread ohmi
Of course - sorry - I tried to look at the tickets and saw nothing. On Dec 4, 1:14 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Thu, Dec 4, 2008 at 1:37 PM, ohmi <[EMAIL PROTECTED]> wrote: > > As the subject says - will Django compile and run on Python 3.0? > > No, nor is it expected to fo

best practices for SOAP client in Django

2008-12-04 Thread wynfred
Hi, all. I am new to Django/Python. For one project, I need to be posting data to a .NET SOAP web service. I've read about the various Python SOAP libraries, mainly SOAPpy (http://diveintopython.org/ soap_web_services/). What is not clear yet is how best to use a tool like SOAPpy within the Django

help with file uploads

2008-12-04 Thread Alan
Hi there! Although I have some experience in Python and Plone and have done Django tutorial, I am still not getting how to do a simple task I proposed myself: build a submitting page for a zip file. So I am looking at http://docs.djangoproject.com/en/dev/topics/http/file-uploads/ It seems to have

Re: More User/Profile troubles

2008-12-04 Thread [EMAIL PROTECTED]
Ah that did it. The other thing I was doing wrong, the reason all the different things i was trying didnt get me anywhere- I hadnt run syncdb when I should of. That stupid mistake wasted a lot of time.. Its taken a while but it appears to be working perfectly now! Thanks for your help. Phil On 4

Re: open source project management app that uses django?

2008-12-04 Thread Margie
Ok - forget it - I figured it out! I found the django pages on how to serve static files and that showed me what I need to know and it looks great now. On Dec 4, 12:54 pm, Margie <[EMAIL PROTECTED]> wrote: > Ok - this is very useful!  It is just great to see a "real" app that > does something sim

Re: DateTimeField and input_formats

2008-12-04 Thread ReneMarxis
fixed ... i had to pass in a tupel ... not a string. and as far as i saw the field does not format the data automaticly. you have to pass it in as a formated string. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: modelformset_factory error: (Hidden field id) with this None already exists.

2008-12-04 Thread Karen Tracey
On Thu, Dec 4, 2008 at 2:12 AM, cyberjack <[EMAIL PROTECTED]> wrote: > > Hi, > > I haven't been able to solve this problem, but have made some > progress: > > It's definitely *not* bug 9039. I've download the tests from that > ticket and confirmed the fix was included in 1.0.2 final. > > The prob

Character encoding... latin1 to utf8?

2008-12-04 Thread Rob Hudson
I'm migrating a site to Django. The old site was PHP/MySQL with MySQL having a default encoding of latin1. It seems like there are also Windows 1252 encodings but I'm not sure. I have the old database and the new Django UTF8 one side by side and have a migration script that uses raw MySQLdb to

Strange timeout issue

2008-12-04 Thread Julien Phalip
Hi, I have a pretty big database of organisations, countries and news entries. It all works fine except when I edit one of the organisations in the admin. The edit page loads fine, but when I click 'Save' it takes for ever before eventually timing out. The error my clients get on their system (IE

Re: Character encoding... latin1 to utf8?

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 16:34 -0800, Rob Hudson wrote: > I'm migrating a site to Django. The old site was PHP/MySQL with MySQL > having a default encoding of latin1. It seems like there are also > Windows 1252 encodings but I'm not sure. > > I have the old database and the new Django UTF8 one si

Re: exclude() method bug

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 04:58 -0800, Karantir wrote: > Hi, > > I've just found strange django behaviour and want to understand is it > a bug or an inconvenient feature. I have two models -- Place and Item > bound through the intermediate table ItemPlace (that stores additional > field -- quantity)

Re: Strange timeout issue

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 17:30 -0800, Julien Phalip wrote: > Hi, > > I have a pretty big database of organisations, countries and news > entries. It all works fine except when I edit one of the organisations > in the admin. The edit page loads fine, but when I click 'Save' it > takes for ever befor

Django is changing my html!

2008-12-04 Thread DragonSlayre
Hi, for some reason my hyperlink is not coming out as I expect it to. Here is my code in my template: {% for category in categories %} {{ category.name }} {% endfor %} The outcome is the following html code: Books I've checked and I only have one 'little'

Re: Django is changing my html!

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 18:49 -0800, DragonSlayre wrote: > Hi, > > for some reason my hyperlink is not coming out as I expect it to. > Here is my code in my template: > > > {% for category in categories %} > >{{ category.name }} > > {% endfor %} > > > The outcome is the follo

Re: Django is changing my html!

2008-12-04 Thread Dj Gilcrease
Actually it looks like he is just getting extra links, which seems to remind me of a Safari issue and the Doc type that is set. If I remember correctly I ran into an issue similar to this where Safari was attempting to fix my HTML to fit my specified Doc-Type. So if I had to guess I would say that

distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread ryan
For instance, I have two objects: 1) Blog 2) Entry with a ForeignKey to Blog, and a Date field titled DateAdded Now, I want to list all my blogs, ordering by the most recent added entry. I tried: blog.objects.all().sort_by('entry__dateAdded').distinct() But the result was that is a given blog h

Re: Django is changing my html!

2008-12-04 Thread DragonSlayre
If the problem is inside my view, shouldn't the output generated look more like this though: Books What i don't understand, is how 1) ' ' is showing up, and 2) why it doesn't have the tags inside. For 1, I can understand how the problem might be in my view, but

Re: Django is changing my html!

2008-12-04 Thread DragonSlayre
yes, this fixed the problem. I should change my original title to "Firefox is changing my html!" Thanks for the speedy responses... I was trying to do things *right* using xhtml standards, but I guess that it's more trouble than it's worth. On Dec 5, 4:10 pm, "Dj Gilcrease" <[EMAIL PROTECTED

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 19:09 -0800, ryan wrote: > For instance, I have two objects: > 1) Blog > 2) Entry with a ForeignKey to Blog, and a Date field titled DateAdded > > Now, I want to list all my blogs, ordering by the most recent added > entry. > > I tried: > blog.objects.all().sort_by('entry_

Re: Why run two web-servers on the same host?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 11:27:34 pm walterbyrd wrote: > > Because django runs as a long-running process, and does not rebuild > > the whole world on each and any request (which is what PHP do). > > Seems to me that would make Python run faster. I suppose that must > take more system resources. Whi

Forms not working on Opera if form data is bigger than certain size

2008-12-04 Thread Evren Esat Ozkan
Hi, When I'm using Opera, if any form field's content is bigger than certain size (~20kb), all post data gone missing on serverside. I'm faced with this problem when trying to upload images but same problem raising if text fields has enough data too. Problem araising on admin site and also on han

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread ryan
thanks for the thorough reply! I now understand how to proceed. However, I'm not convinced that distinct shouldn't do this for me... but I understand this is a philosophical point, and I put my trust in the django developers to get it right (just like I do with the american government... ) On De

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 20:15 -0800, ryan wrote: > thanks for the thorough reply! I now understand how to proceed. > > However, I'm not convinced that distinct shouldn't do this for me... It cannot read your mind. How is distinct() meant to know which of the many multiple values it should use for

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread ryan
thanks for the thorough reply! I now understand how to proceed. However, I'm not convinced that distinct shouldn't do this for me... but I understand this is a philosophical point, and I put my trust in the django developers to get it right (just like I do with the american government... ) On De

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread ryan
There's no mind reading required. I have a queryset of Blog objects, not entry objects (or SQL rows for that matter). When I call distinct, I would expect a "distinct set of blog objects". Call it a strong technical point if you prefer, but I still feel this is what the common person would expect.

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread ryan
I guess what I'm imagining is that distinct() would take the current queryset, go from the top, and keep the first occurrence of each distinct object in that set (users don't care about SQL rows, that's why they're using django in the first place). Do you think this is NOT what most users would ex

Re: distinct doesn't work after sorting by reverse foreign key

2008-12-04 Thread Malcolm Tredinnick
On Thu, 2008-12-04 at 20:44 -0800, ryan wrote: > I guess what I'm imagining is that distinct() would take the current > queryset, go from the top, and keep the first occurrence of each > distinct object in that set (users don't care about SQL rows, that's > why they're using django in the first p

Re: Django is changing my html!

2008-12-04 Thread David Zhou
On Thu, Dec 4, 2008 at 10:19 PM, DragonSlayre <[EMAIL PROTECTED]> wrote: > > Thanks for the speedy responses... I was trying to do things *right* > using xhtml standards, but I guess that it's more trouble than it's > worth. But you *weren't* doing things right, since you had the inside the . F

Populating form from instance not working

2008-12-04 Thread Brandon Taylor
Hi everyone, I'm using 1.0.2 final. I have a form for a model and am passing in an instance of my model object to the form, but the form is not being populated. #views.py example def my_view(request, id): if request.method == 'POST': pass else: model_instance = my_model.

Can't edit reverse relation in a many2many field in admin site

2008-12-04 Thread Nelson
Hi, I'm fairly new to Django, so I've searched all over for an answer but could not really find it. Maybe this is simple stuff, but anyway I dont have enough information to judge, so I hope you guys can help me... I have the following many-to-many relation: class Record(models.Model): name