I've found that it's better to have __repr__ return a string whether
our not the field is a string or not;
def __repr__(self):
return "%s" % self.modelField
hth
Cheers,
Tone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
DavidA wrote:
>TemplateSyntaxError: Caught an exception while rendering.
>
>
Ah! Most of the time it means that it's an exception raised in some of
your object's __repr__. Django fails here trying to reproduce error page
which also uses __repr__ to print objects.
--~--~-~--~~
That still leaves my Django apps running in the same space
(PythonInterpreter) as the admin app which I think is the root of the
problem. I've tried using a separate for "/" and "/admin/"
but that didn't work. I don't see how its possible to separate my
non-admin apps from the admin app since the
DavidA wrote:
>NameVirtualHost *
>
>ServerName data
>DocumentRoot "C:/Dev/Source/Web/data"
>SetHandler mod_python
>PythonHandler django.core.handlers.modpython
>SetEnv DJANGO_SETTINGS_MODULE data.settings
>PythonPath sys.path+['C:/Dev/Source/Web']
>PythonDebug On
>
I've read this documentation:
http://www.djangoproject.com/documentation/modpython/
but I can't figure out how to configure the VirtualHost section to get
the URLs I want.
Here's what I'm trying to do:
I have one Django project (data) with two apps under it (trades,
marks). I also have the admin
5 matches
Mail list logo