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):
6 matches
Mail list logo