> 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
Thanks - works great. I used the db_tables so I did not have to change
the table names.
-James
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
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
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
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
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):
It's in http://code.djangoproject.com/ticket/1262
.
Just found the description flat pages. Perhaps this solves my problem...
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)
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
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
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
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
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
thanks a lot
IvO
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')
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
18 matches
Mail list logo