Re: Help getting admin and non-admin app running in Apache

2006-03-23 Thread tonemcd
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

Re: Help getting admin and non-admin app running in Apache

2006-03-23 Thread Ivan Sagalaev
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.

Re: Help getting admin and non-admin app running in Apache

2006-03-23 Thread DavidA
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

Re: Help getting admin and non-admin app running in Apache

2006-03-22 Thread Ivan Sagalaev
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 >

Help getting admin and non-admin app running in Apache

2006-03-22 Thread DavidA
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