Re: manage.py

2006-11-04 Thread Jeremy Dunck
On 11/4/06, Salvatore <[EMAIL PROTECTED]> wrote: > > I've downloaded the 0.95 and it is ok now Ah, you'll be glad you did. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

I am really new, but I found a few problems using it, or am I wrong?

2006-11-04 Thread [EMAIL PROTECTED]
I am trying to use Django to build up a simple website, in the past few hours, I found a few problems of if, please correct me if I am wrong. First, I downloaded Django from official website and, then try to run it, and got traceback because in the setup.py file, there is a line trying to downloa

Re: [Ticket Rejected] Random ProgrammingErrors when using PostgreSQL

2006-11-04 Thread Jeremy Dunck
On 11/4/06, orestis <[EMAIL PROTECTED]> wrote: ... > cursor.execute("SET TIME ZONE %s", [settings.TIME_ZONE]) > ProgrammingError: ERROR: current transaction is aborted, commands > ignored until end of transaction block > > SET TIME ZONE 'Europe/Athens' > }}} ... This error is reported by pos

A question about for loop in templates

2006-11-04 Thread Vizcayno
I have the next big list: row 1: ['col1','col2','col3', 'col4',..., 'col30'] row 2: ['col1','col2','col3', 'col4',..., 'col30'] row 3: ['col1','col2','col3', 'col4',..., 'col30'] . . . row 4000: ['col1','col2','col3', 'col4',..., 'col30'] the variable name that contains this list is 'lst' For eac

is not JSON serializable - again

2006-11-04 Thread timc3
I am trying to send back the free comments form so I can process it with ajax, and I am getting "is not JSON serializable" all the time. I have copied post_free_comment and then I have simply done if errors or request.POST.has_key('preview'): response_dict = {}

[Ticket Rejected] Random ProgrammingErrors when using PostgreSQL

2006-11-04 Thread orestis
I got this ticket rejected from Akismet: This is not related to #852, as the errors are thrown when running the application normally, not the shell. The errors I get are: {{{ File "/usr/lib/python2.4/site-packages/django/db/models/base.py", line 166, in save cursor = connection.cursor()

Re: Hi, i have been having trouble with django encoding...help, please!

2006-11-04 Thread Italo Maia
Yeap, the problem was that my templates were not being saved as utf-8. Doing that, problem solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: error when Inheritance in models

2006-11-04 Thread argan
Thanks. I update django svn trunk every day,I love django! 在 2006-11-04六的 22:09 -0500,Jay Parlar写道: On 11/4/06, argan <[EMAIL PROTECTED]> wrote: > > > hi,guys: > > Here is my models: > > from django.db import models > > # Create your models here. > class User(models.Model): >

Re: Is Django the right tool for the job?

2006-11-04 Thread elake
It sure does. I can see in my minds eye what I want to create. Now I just have to learn how to write it. I am eagerly awaiting the release of each chapter of the DjangoBook. On Nov 3, 2:02 pm, iain duncan <[EMAIL PROTECTED]> wrote: > On Fri, 2006-03-11 at 13:17 +, elake wrote: > > Thanks. Tha

Re: error when Inheritance in models

2006-11-04 Thread Jay Parlar
On 11/4/06, argan <[EMAIL PROTECTED]> wrote: > > > hi,guys: > > Here is my models: > > from django.db import models > > # Create your models here. > class User(models.Model): > pass > > class MyEntity(models.Model): > user = models.ForeignKey(User) > name = models.

error when Inheritance in models

2006-11-04 Thread argan
hi,guys: Here is my models: from django.db import models # Create your models here. class User(models.Model):     pass class MyEntity(models.Model):     user = models.ForeignKey(User)     name = models.CharField(maxlength=30)     create_date = models.DateTimeField() class

Re: Django - CGI

2006-11-04 Thread Salvatore
I can't see how to use those handler. I guess I have to use the AddHandler directive, but how do I call my app ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-04 Thread Andy
http://paste.e-scribe.com/2598/ Check it out! --~--~-~--~~~---~--~~ 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

Re: Django - CGI

2006-11-04 Thread Salvatore
Grazie Antonio :-) --~--~-~--~~~---~--~~ 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 [EMAIL PROTE

Re: Django - CGI

2006-11-04 Thread Antonio Cavedoni
On 5 Nov 2006, at 0:44, Salvatore wrote: > How can I run it as CGI ? I’m quoting off this page: http://code.djangoproject.com/wiki/ServerArrangements [[[ Running Django as a traditional CGI is possible and would work the same as running any other sort of Python CGI script, but is generally

Django - CGI

2006-11-04 Thread Salvatore
I have follow the "polls" tutorial in /home/Salvatore/www/mysite which contains : -rw-r--r-- 1 Salvatore Salvatore0 2006-11-05 00:17 __init__.py -rw-r--r-- 1 Salvatore Salvatore 118 2006-11-05 00:18 __init__.pyc -rwxr-xr-x 1 Salvatore Salvatore 546 2006-11-05 00:17 manage.py drwxr-xr-x

Comments not logging in

2006-11-04 Thread timc3
So I thought that I had this fixed, but it appears on testing that the comments system isn't logging me in correctly. I have gone back to using the comments framework not my own view, but still the same problem. When posting a comment, and putting in the username and password I am not logged in.

Re: Is Django the right tool to use?

2006-11-04 Thread Antonio Cavedoni
Hello! On 3 Nov 2006, at 2:41, elake wrote: > I am working with a small team to create a new web site for our > church. We have found a site (http://www.prestonwood.org) that we > would like to use as a model and I am wondering if django is the > right tool for the job. I looked at other dj

Re: Hi, i have been having trouble with django encoding...help, please!

2006-11-04 Thread orestis
Make sure that the page is actually encoded in UTF-8. Open it in notepad, then save it again chooding UTF-8 in the encoding drop down. Then open it again and see if it is displayed correctly: a) In notepad b) In a browser (statically served) I had zero problems with django and encodings, I had

Re: manage.py

2006-11-04 Thread Salvatore
I've downloaded the 0.95 and it is ok now Thank you again Salvatore --~--~-~--~~~---~--~~ 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 unsu

Re: manage.py

2006-11-04 Thread Salvatore
Verssion 0.90 the command is : django-admin.py startproject mysite Thanks for your response --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: Brasilian fellow with charcode problem...

2006-11-04 Thread Ramiro Morales
Italo, On 11/1/06, Italo Maia <[EMAIL PROTECTED]> wrote: > [...] > ...and all my > .py files starts with > # -*- coding: utf-8 -*- > Are you really making sure the coding of these files _is_ UTF-8 as well, not just flagging them as such to the Python interpreter. Right? Regards, -- Ramiro Mo

Re: manage.py

2006-11-04 Thread Jeremy Dunck
What version (or revision) of Django are you running? What is the exact command you're running? On 11/4/06, Salvatore <[EMAIL PROTECTED]> wrote: > > Hello, > > When I create a new project the file manage.py is not created > Can someone explain me why ? --~--~-~--~~~--

Re: So I made a forum with Django

2006-11-04 Thread Serg Kovrov
On Nov 4, 6:30 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > Or throw it up on Google Code and start accepting patches and things. > One thing I'm wanting to add to the forums I'm going to create is a > thumbs up/thumbs down thing similar to Digg so users can set the forum > to not show them posts

TimeField woes with existing database

2006-11-04 Thread [EMAIL PROTECTED]
I'm trying to setup a Django app based on an existing sqlite3 db. Everything going swimmingly, except for one pesky TimeField... The problem seems to be that the db table has this column declared to be of type TIME, and the django model thinks its of type TimeField. But the data is of the format

GeoIP template tag

2006-11-04 Thread [EMAIL PROTECTED]
I've posted some code for using GeoIP in template tags at Rachel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Install Trouble - fastcgi

2006-11-04 Thread skipmartin
Alright I give... I thought I followed all the directions and I'm running into trouble I have installed fastcgi I have installed django and python Trying to run this on apache 1.3 and fastcgi in my httpd.conf FastCGIExternalServer /home/user/public_html/content/mysite.fcgi -socket /ho

Is Django the right tool to use?

2006-11-04 Thread elake
I am working with a small team to create a new web site for our church. We have found a site (http://www.prestonwood.org) that we would like to use as a model and I am wondering if django is the right tool for the job. I looked at other django powered sites (http://www.ljworld.com/, http://www.law

Automatically starting the FastCGI server

2006-11-04 Thread orestis
Hello, I'm new to linux administration, but I try to learn :) I have managed to make lighttpd and postgresql start automatically upon reboot, now I need a way to make manage.py runfcgi to start automatically. I tried to put this in my lighttpd.conf: fastcgi.server = ( "/django.fcgi" => (

Accessing request and session objects from templates

2006-11-04 Thread django-user
Hi, I am wondering if there is a way to access request data and session object directly from Django templates, in the same way as {{ user }} for instance. I must admit I'm a bit lost with template context processors and so on... Thanks for the tip. --~--~-~--~~~---~-

PySchool - Online Python Web Framework Workshop.

2006-11-04 Thread bobj
Hi! My Name is Rob Johnson and I am a graduate student at The Richard Stockton College of NJ. To make a long story short, I'm working on my Masters project in the MAIT program (Masters of Arts in Instructional Technology). I have written a proposal to put together a free on-line Python web framewo

custom sql/paginator problems

2006-11-04 Thread soundseeker
hi, some newbie questions here... after spending much time with reading/testing I still have no solution; some help is needed and appreciated. here's the problem: having a class definition with a custom sql statement: class VMergeDocsInfo(models.Model): def by_categories(self):

Hi, i have been having trouble with django encoding...help, please!

2006-11-04 Thread Italo Maia
Hi, i'm brasilian, and i have had a encoding problem with django. See, i have this page: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; > Ol� mundo and when i tell django to render it, the "�" of "Ol� mundo" becames a "?". Settings language code

Installation failed on Ubuntu 5.10

2006-11-04 Thread fabio-ts
Hi, I tried to install Django-0.95 in /usr/lib/python2.4, then entered the dir Django-0.95 and started setup.py file. An error occurred giving this response: "error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)" Did I miss something?

inclusion tag for login screen.

2006-11-04 Thread MerMer
I am thinking about creating a small login form as an inclusion tag, to display within other pages created by generic views, when the user has not been authenticated. Creating a tag that displays a form seems simple enough. However, I want to log the user on without them leaving the page they ar

Brasilian fellow with charcode problem...

2006-11-04 Thread Italo Maia
Well, here's the problem, in portuguese(my idiom), we have chars like '�' and '�' and '�', and i'm having trouble rendering these in my templates. Here's a example: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; > Ol� mundo the tag "Ol� mundo" is

Django admin confuses '' with null on foreign char primary key

2006-11-04 Thread yary
While we're on the subject of null vs '' (empty string), here's a perverse case: class TestSlug(models.Model): sluggy=models.SlugField(maxlength=17, primary_key=True,blank=True,null=False, editable=True) name=models.CharField(maxlength=40) def __str__(self): return "'%s': %s" %(self.sluggy,

PySchool - Online Python Web Framework Workshop for Beginners.

2006-11-04 Thread bobj
My Name is Rob Johnson and I am a graduate student at The Richard Stockton College of NJ. To make a long story short, I'm working on my Masters project in the MAIT program (Masters of Arts in Instructional Technology). I have written a proposal to put together a free on-line Python web framework w

manage.py

2006-11-04 Thread Salvatore
Hello, When I create a new project the file manage.py is not created Can someone explain me why ? Regards Salvatore --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, se

Re: setting and using an object variable without using a field

2006-11-04 Thread Jorge Gajon
On 11/3/06, Rob Slotboom <[EMAIL PROTECTED]> wrote: > And. it's working. > Just one question: Is this the right way to do such things? > I don't see any problem with it, as long as the template doesn't care where "voted_by_remote_add" comes from or how it is constructed. --~--~-~--~-

Re: How do I tell the tinyMCE editor where an image file is?

2006-11-04 Thread Noah
You have to make sure the image is actually accessable via that URL and that your config isn't reading that as a view. Search the docs for serving static content with Django it makes using the development server easier. Hope that helps --~--~-~--~~~---~--~~ You r

Re: So I made a forum with Django

2006-11-04 Thread [EMAIL PROTECTED]
Rob, I hacked the karma code to provide that thumbs up functionality. I've got thumbs down, but my users didn't like that idea at all, and I didn't bother filtering by level. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Many-to-Many with Intermediate Table

2006-11-04 Thread yary
I'm not in front of the dev machine, but I created the model in 0.95, so maybe that's a dev feature. Or I may have had a typo in a model the first time through- in fact I recall that I had a space in 'class Model C', so if the 'name clash' detection requires all models to be created at once, that'

Re: So I made a forum with Django

2006-11-04 Thread Rob Hudson
argh44z wrote: > Here: http://huzzah.cc/ > > I'm thinking about cleaning up the code and open-sourcing it. Is anyone > interested? I ask this because 3 weeks ago when I started working on > it, I didn't really see much forum software written with Django that > was in much actual usage. There were

Re: OT: MySQL to SQLite?

2006-11-04 Thread Rob Hudson
Russell Keith-Magee wrote: > I run OSX at home, running the DarwinPorts tools. Once I found those, > gettng starting was relatively straightforward. > > If someone is looking for some way to contribute, a proper OSX > mpkg/dmg with a full Django stack would be a nice starter project. Actually, Da

Admin setup woes (Tampered Session?)

2006-11-04 Thread Roboto
Hi Guys, Been trying to get the Admin deployed on Apache mod_python and after the login screen I get this: Traceback (most recent call last): File "~/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/base.py" in get_response 74. response = callback(request, *callback_args, **c

Re: Template Apply

2006-11-04 Thread Guillermo Fernandez Castellanos
Hi, I use the include tag: {% for object in object_list %} {% include "myapp/object.html" %} {% endfor %} The nice things is that include renders the template with the current context, that is automagically passed to the myapp/object.html template: http://www.djangoproject.com/documentation/

Re: So I made a forum with Django

2006-11-04 Thread [EMAIL PROTECTED]
MyghtyBoard is designed as a "ready to hack into your project" forum app - everyone wants to make things their way so myghtyboard will rather stay simple like punBB :) For a fully featured forum you could check http://www.pocoo.org/ which aims to be a big thing :) --~--~-~--~~--

Re: Null Query Set

2006-11-04 Thread Steve Wedig
When I say id=None, it returns all of the items. My guess is that if a field is set to none, it just ignores that argument. However filter( id=-1) does the trick. Thanks for the tip. However django should probably have a way to do this without pinging the db (i think :) - Steve On 10/27/06, Mal

Re: OT: MySQL to SQLite?

2006-11-04 Thread [EMAIL PROTECTED]
Hi Rob, Not sure if this helps, but I half wrote a script to dump out the contents of a database into the Django database API format. I did this as a way of exporting stuff for initial import. You can grab it here: http://simon.net.nz/articles/django-database-export-v1/ It doesn't work prop

Re: What's the best way to make a custom publishing workflow?

2006-11-04 Thread Rob Slotboom
Hi Kevn, May be of interest: http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Template Apply

2006-11-04 Thread Steve Wedig
Hello, I've got a list of items that I'm passing to a template. For every item, I'd like to render it as "object" in another template. Is this or something like this possible? it would look something like this... T1 {% for object in object_list %} {% apply "t2.html" object %} {% endfor