Feed Displaying Odd Dates

2007-05-05 Thread Bryan Veloso
Created a feed using the syndication tutorial on the main Django website... acutally I used the one that powers the feed from the Django weblog. from django.contrib.syndication.feeds import Feed from avalonstar.blogs.models import Entry import datetime class LatestEntries(Feed): author_name

Re: How to render newforms dynamically created fields?

2007-05-05 Thread Joseph Heck
A site I frequently work with has the forms mostly laid out using and CSS to style it up all nicely. The newforms doesn't have a as_dl method, and my designer is pitching a bit of fit that we can't give him the pieces/parts of the form to lay out with a more complex setup. When I looked into it,

Re: Mac OS X + Django; how do I invoke the fcgi?

2007-05-05 Thread Joseph Heck
That error message is usually caused by having a slightly messed up PYTHONPATH. For example, the tutorial has: (r'^polls/$', 'mysite.polls.views.index'), and the message you're getting would make me think that you have something like: (r'^polls/$', 'views.index'), Your PYTHONPATH will generally

Re: accessing instance in form

2007-05-05 Thread Casey T. Deccio
On May 4, 2007, at 10:53 PM, Malcolm Tredinnick wrote: > On Fri, 2007-05-04 at 15:00 -0700, Casey T. Deccio wrote: >> I'd like to be able to do some further validation in a form, based on >> the instance object from which the form was built (i.e., using >> form_from_instace). This would be handy

Re: loaddata issue

2007-05-05 Thread Russell Keith-Magee
On 5/5/07, Mark Jarecki <[EMAIL PROTECTED]> wrote: > > > Hi Russ, > > Here is the transcript of the output: > > ./manage.py sqlall Guide Ok - found it. The problem is the capitalization on the application name. For some reason, django isn't taking the lower case version of the application name wh

displaying images

2007-05-05 Thread checco
Hi, I have the following settings in settings.py: MEDIA_ROOT = 'C:/my_project/static/' MEDIA_URL = 'http://127.0.0.1:8000/static/' I'd like to display some pictures which are in the folder C:/ my_project/static/offers ("static" is the folders that holds all the media, while "offers" holds only a

Re: dumpdata/loaddata does not use database encoding

2007-05-05 Thread Caspar Hasenclever
I found a way to partially fix this, a ticket with patch is here: http://code.djangoproject.com/ticket/4227 Cheers, Caspar Hasenclever --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

including blocks in inclusion tag templates

2007-05-05 Thread tejas
Hi All I've been using the really nice idea of template blocks in django for adding javascript code So I have a main js block for javascript in my base.html When I extend the base, and I need javascript - I just make a new js block and use super to append my javascript. This all works fine exc

dumpdata/loaddata does not use database encoding

2007-05-05 Thread Caspar Hasenclever
Hi all, I am trying to use dumpdata/loaddata on a postgresql_psycopg2 backend with a character encoding of UTF-8. The data came from a legacy DB, the model was derived from "manage.py inspectdb". It chokes on non-ASCII characters when dumping in XML-format: "Unable to serialize database: 'ascii

Re: Primary ForeignKey create try

2007-05-05 Thread Martin Winkler
Am Sat, 05 May 2007 10:22:14 -0700 schrieb Heit <[EMAIL PROTECTED]>: > TYPE_CHOICES = (('user', 'USER'),('serve', 'SERVE')) > class Person(models.Model): > ... > type = models.CharField(maxlength=30, unique=True,choices= >TYPE_CHOICES, default='user') > ... So you can ha

Primary ForeignKey create try

2007-05-05 Thread Heit
Hi, i was trying to create a foreign key field with primary_key=True, because i need db hierarchy I wrote: TYPE_CHOICES = ( ('user', 'USER'), ('serve', 'SERVE'), ) class Person(models.Model): firstname = models.CharField(maxlength=40) lastname = models.CharField(maxlength=40)

Re: Deos Django have Java Servlet's Listener like thing?

2007-05-05 Thread Don Arbow
Django's equivalent are signals. Here's a few links: http://code.djangoproject.com/wiki/Signals http://www.mercurytide.com/whitepapers/django-signals/ http://feh.holsman.net/articles/2006/06/13/django-signals Don On May 4, 2007, at 9:06 PM, Mambaragi wrote: > > I need to start a thread when Ap

Re: Mac OS X + Django; how do I invoke the fcgi?

2007-05-05 Thread Mark Phillips
On Apr 30, 2007, at 11:16 AM, Joseph Heck wrote: > django-fcgi.py --settings=myproject.settings --host 127.0.0.1 -- > port 8882 --daemon) > and that you didn't see any errors with that, the problem is likely > in the connection > between the Apache service built in to MacOS X server and your

Re: Deos Django have Java Servlet's Listener like thing?

2007-05-05 Thread Martin Winkler
Am Fri, 04 May 2007 21:06:52 -0700 schrieb Mambaragi <[EMAIL PROTECTED]>: > Is there anything like Servlet Listener in django,python? not easily if you use mod_python, because for every apache thread a new python instance is being generated. but it should be easy using fastcgi, since it uses a

HOT!! 2008 Ticket price of China Beijing Olympic Games

2007-05-05 Thread Jovi
2008 Ticket price of Beijing Olympic Games in China Any updated at http://joviscool.blogspot.com/2007/05/2008-ticket-price-of-beijing-olympic.html Good luck~~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Tables not displaying in admin with full-history branch

2007-05-05 Thread jeffhg58
I downloaded the full-history branch and I noticed that my tables were no longer displaying in admin, even when I had the class admin defined within my models.py. Does anyone know how to get back the tables in the admin? Thanks, Jeff --~--~-~--~~~---~--~~ You re

Re: migrating 400 images

2007-05-05 Thread Nate Straz
On Fri, May 04, 2007 at 11:13:36PM -, Milan Andric wrote: > I'm migrating a tutorials site to Django and have created a file model > that is associated with tutorial pages, etc. Now I need to go through > and migrate all the old content. Rather than upload 400 images I was > hoping to write

Re: INSTALLED_APPS dependency tracking

2007-05-05 Thread Tim Chase
> This looks interesting, and there was some discussion of something > similar for django (quite a while ago: [1]). Could you create a ticket > at code.djangoproject.com with a brief overview of how you did this, > to stimulate further discussion? Ticket #4224 created with a fair bit of rambling

Re: extending the User Model error

2007-05-05 Thread *San*
It works, yay Thanks heaps On May 5, 5:12 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 5/4/07, *San* <[EMAIL PROTECTED]> wrote: > > > but, when I tried to view it, I got an error: > > Cannot resolve keyword 'user' into field > > The field on your profile model **must** be named "user

Re: INSTALLED_APPS dependency tracking

2007-05-05 Thread [EMAIL PROTECTED]
Hi Tim, This looks interesting, and there was some discussion of something similar for django (quite a while ago: [1]). Could you create a ticket at code.djangoproject.com with a brief overview of how you did this, to stimulate further discussion? Thanks, Simon G. [1] http://groups.google.com/g