FormField.prepare

2006-01-22 Thread foot
> django.core.formfields.FormField has a method 'prepare' which is > described as a "Hook for doing something to new_data (in place) before > validation." which sounds very useful. But as far as I can tell it > never gets called. Am I missing something? > > Daniel I too have run into this one, do

Re: get_list not showing up

2006-01-22 Thread [EMAIL PROTECTED]
Thanks - works great. I used the db_tables so I did not have to change the table names. -James

Re: get_list not showing up

2006-01-22 Thread Adrian Holovaty
On 1/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I wonder if it is the module_name statement in the META class? Yeah, get rid of the module_name statement, and you'll be able to do "from django.models.foundation import ratefunctions". Adrian -- Adrian Holovaty holovaty.com | djangopro

Re: get_list not showing up

2006-01-22 Thread [EMAIL PROTECTED]
Thanks Adrian/Eric for the help. Unfortunately - python does not want to comply: >>> from django.models.foundation import ratefunctions Traceback (most recent call last): File "", line 1, in ? ImportError: cannot import name ratefunctions I wonder if it is the module_name statement in the MET

Re: get_list not showing up

2006-01-22 Thread Eric Walstad
On Sunday 22 January 2006 20:36, [EMAIL PROTECTED] wrote: > class RateFunction(meta.Model): ... > >>> from django.models.foundation import RateFunction from django.models.foundation import ratefunctions ratefunctions.get_list() Note that the Django magic (case change, pluralization, and much mo

Re: get_list not showing up

2006-01-22 Thread Adrian Holovaty
On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Everything looks ok in the database. When I go to the python > interpreter - it does not see the get_list() method: > > >>> from django.models.foundation import RateFunction > >>> RateFunction.get_list() Hey James, You'll want to do thi

get_list not showing up

2006-01-22 Thread [EMAIL PROTECTED]
Hello: Just installed Django and worked through the example app with no problems. I am attempting to create a new app and having some issues creating a model. I have a simple model: RATE_FUNCTIONS = ( ('LINEAR', 'LINEAR'), ) # # List of rate functions # class RateFunction(meta.Model):

Re: RoR Ajax helpers port to Django tags?

2006-01-22 Thread Louis
It's in http://code.djangoproject.com/ticket/1262 .

Re: urls and static html

2006-01-22 Thread [EMAIL PROTECTED]
Just found the description flat pages. Perhaps this solves my problem...

Re: making photo gallery

2006-01-22 Thread atlithorn
Thanks for the filter, just thought I'd add to the equation, in case you need tables sorted down the column instead of across the row. def transtabularize(value,cols): try: cols = int(cols) except ValueError: return [value] r = len(value)/cols + (len(value)%cols>0)

urls and static html

2006-01-22 Thread Darryl Caldwell
Hi all. I am not sure about the url configuration for a setup like the following: What if the root of my site points to a django page, but I want to have other static pages at the same level as the root page? Example: /  <-- points to www.foo.com a dynamic page generated by djan

Model Inheritence

2006-01-22 Thread Brian Ray
I am trying to take some data schemes already setup in SQLObject and use the Django model-api instead. My SQLObject has things like: class account(SQLObject): accountsaccessrequest = MultipleJoin('accountsaccessrequest') class accountsaccessrequest(SQLObject): account= ForeignK

Re: Apache2 mod_python VirtualHost configuration

2006-01-22 Thread [EMAIL PROTECTED]
The simplest solution to get Dnajgo project welcome screen using apache/mod_python is to put these lines of code in your project .htaccess file: --- SetHandler mod_python PythonHandler django.core.handlers.modpython PythonPath s

Re: admin interface

2006-01-22 Thread Bryan Murdock
On 1/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > how i could change in the amin interface the example.com to be my > site.com > > Thanks for all people that are helping me http://www.djangoproject.com/documentation/tutorial2/#customize-the-admin-look-and-feel Bryan

admin interface

2006-01-22 Thread mary . adel
how i could change in the amin interface the example.com to be my site.com Thanks for all people that are helping me Mary Adel Software Developper ITrize-Egypt 13 Naguib Hashad medan elhegaz heliopolis email: [EMAIL PROTECTED] Office: +202 - 6236612 EXT. 102 Mobile: +2012 5241719

Re: blog archive links

2006-01-22 Thread [EMAIL PROTECTED]
thanks a lot IvO

meta.Admin 'fleids' option

2006-01-22 Thread [EMAIL PROTECTED]
Hi! I'm trying to use class 'collapse' in 'fields' option, like this: class META: ordering = ['title'] admin = meta.Admin( list_display = ('title',), fields = ( (None, {'fields':('title','alternative_feed_url','feed_enable','ping_services')

Re: template variables and looping with attributes

2006-01-22 Thread akaihola
You could define a filter "lookup": from django.core.template import resolve_variable, Library register = Library() def lookup(value, arg): return resolve_variable(arg, value) register.filter(lookup) and use it in your code like this: {%for r in object_list %} {%for c in field_lis