Re: templates for newbies

2005-10-25 Thread stava
I'm logging the solution here, in case someone else needs this: The correct statement is: return HttpResponse(''.join(raw_template), mimetype='text/plain') I.e., the raw_template variable is actually a list of strings, and has to be translated into one simple string in order for HttpResponse()

Re: manipulator save object is Not Implemented?

2005-10-25 Thread Maniac
Armin wrote: I went ahead and defined the 'save' function under my custom defined manipulator as follows: def save(self, new_data): p = persons.Person(username=new_data['username'], password=new_data['password'], first_name=new_dat

Help using POST to pass values

2005-10-25 Thread paolo
Hi, since today I've used the admin interface as a frontend for my applications' data, but now I'm trying to do a simple query interface by my own. I need some help figuring how to pass values through requests. Actually the frontend consists of two pages: page A contains a form where the user may

Freebsd Port

2005-10-25 Thread pablo . pernot
Hi everybody, I just sent a new port request for Django on FreeBSD. http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/87973 If someone else using Django on FreeBSD and has comment, feel free to write me. Thanks if (my english is poor): I'm french

Re: Help using POST to pass values

2005-10-25 Thread Sune Kirkeby
On 10/25/05, paolo <[EMAIL PROTECTED]> wrote: > Would you please help me to clarify how things work and what I have > missed? See the "POST to views loses POST data" section in http://code.djangoproject.com/wiki/NewbieMistakes, I suspect that's your problem. /s

Re: Help using POST to pass values

2005-10-25 Thread paolo
It works now! Sorry but I didn't find that page. Thanks a lot, Sune.

Re: Freebsd Port

2005-10-25 Thread Kenneth Gonsalves
On Tuesday 25 Oct 2005 2:32 pm, [EMAIL PROTECTED] wrote: > I just sent a new port request for Django on FreeBSD. > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/87973 > If someone else using Django on FreeBSD > and has comment, feel free to write me. i am using django on freebsd, but i wouldnt

Re: Newbie questions

2005-10-25 Thread rockmh
Adrian Holovaty wrote: > On 10/24/05, Howard, Rock <[EMAIL PROTECTED]> wrote: > > 2) The admin page has a link to "example.com" which apparently is coming > > from the site table. The admin app apparently supports no capability to > > update that row. What are the ramifications of directly updati

Re: Newbie questions

2005-10-25 Thread Adrian Holovaty
On 10/25/05, rockmh <[EMAIL PROTECTED]> wrote: > Hmmm. Did that, but the admin page still links to example.com. > (Did a 'pkill python' and still no change after a refresh.) > > WTF, the 'example.com' is hard-coded into the base_site.html template! > Django is full of surprises. ;-) Yes, that's i

Re: Tag library not found

2005-10-25 Thread [EMAIL PROTECTED]
Hi, I'm still getting this error, despite following all the steps in the tutorial, and the notes in the BackwardsIncompatibleChanges. Is there something that I'm missing? Thanks J

Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Peter Havens
Using Django revision 1011, I defined an app called "audit". I defined a model for that app as follows: class StatusType(meta.Model): description = meta.CharField(maxlength=100) ...I tried testing it like this: >>> from django.models.audit import * >>> s = statustypes.StatusType() >>> s.des

Re: Tag library not found

2005-10-25 Thread Joey Coleman
I was getting that error as well, despite having done several svn updates, deleting any and all py{c,o} files, deleting the egg in the site-packages directory, etc. Nothing worked. However, following Dan's advice in the ticket above --- delete your whole django checkout and get it fresh ---

Re: Freebsd Port

2005-10-25 Thread Clint Ecker
I've also been using django on freebsd for quite a while now.  But its an old revision.On 10/25/05, Kenneth Gonsalves < [EMAIL PROTECTED]> wrote:On Tuesday 25 Oct 2005 2:32 pm, [EMAIL PROTECTED] wrote:> I just sent a new port request for Django on FreeBSD.> http://www.freebsd.org/cgi/query-pr.cgi?

Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Adam
I wrote a ticket about this (http://code.djangoproject.com/ticket/662). I think I found where and why this occurs, but I don't have a patch for it, because I suspect there are more things going on than I know about, and I don't want to do just a quick fix for my particular issue.

Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Adam
I forgot to add...in your particular case, I think s = statustypes.StatusType(description='foo') will work. Or if you don't know what the description is yet, and need to save before setting it, s = statustypes.StatusType(description='') What it requires is having some kind of keyword argument.

Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread [EMAIL PROTECTED]
Adam wrote: > I wrote a ticket about this (http://code.djangoproject.com/ticket/662). > I think I found where and why this occurs, but I don't have a patch for > it, because I suspect there are more things going on than I know about, > and I don't want to do just a quick fix for my particular iss

Re: Tag library not found

2005-10-25 Thread [EMAIL PROTECTED]
Aha! I removed my django checkout, and downloaded it fresh, and voila! What confused me, was that the second comment on the ticket seems to indicate that a fresh checkout was unecessary, and all that needed to be done was remove the .pyc/o files, as per the BackwardChanges page, which I had done

Re: manipulator save object is Not Implemented?

2005-10-25 Thread Armin
Thanks very much. It is useful. Armin

Re: Freebsd Port

2005-10-25 Thread Kenneth Gonsalves
On Tuesday 25 Oct 2005 10:57 pm, Clint Ecker wrote: > I've also been using django on freebsd for quite a while now. But its > an old revision. svn update -- regards kg http://www.livejournal.com/users/lawgon tally ho! http://avsap.org.in ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Re: Models over views?

2005-10-25 Thread [EMAIL PROTECTED]
Adrian Holovaty wrote: > Yeah, you could totally just write the model over the view -- I've > done that before. > > """ > CREATE VIEW foo AS SELECT field_one, field_two FROM bar; > > class Foo(meta.Model): > field_one = meta.CharField(...) > field_two = meta.CharField(...) > """ What ab

Re: Freebsd Port

2005-10-25 Thread pablo . pernot
Hi Kenneth, If you feel I should remove the port tell me (and explain why). For myself I hope someone will maintain a django port. If you want to do job I'll be happy. I only feel it could be cool if in the port tree and we can do a make install / make deinstall on django. People on freebsd which