Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread R. Gorman
Ah, I see. It is possible there is the odd typo, and useful information omission, in the Definitive Guide. I've found the documentation on the Django website to be *mostly* error free. The CharField for example is accurately documented (http:// docs.djangoproject.com/en/dev/ref/models/fields/ #

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
On Sep 17, 4:54 pm, "R. Gorman" <[EMAIL PROTECTED]> wrote: > Glad to hear you have some of your setup up and running. > > Your comment on defining fields in the models surprised me though. > All the fields for your models in Django should start with model, > followed by the field-type, as the docu

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread R. Gorman
Glad to hear you have some of your setup up and running. Your comment on defining fields in the models surprised me though. All the fields for your models in Django should start with model, followed by the field-type, as the documentation states. Are you sure you have models module being importe

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
Ok finally got this resolved there were several problems. Following the book the Definative Guide to Django and online documentation somehow did not eliminate several snags, I'd like to post my findings here. 1. postgresql psycopg2 had best be installed on server and tested before moving onto

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
On Sep 16, 10:33 pm, "R. Gorman" <[EMAIL PROTECTED]> wrote: > What is in your urls.py file? That's where your urlpatterns should be > stored. > R. my url.py is simply from django.conf.urls.defaults import *

Re: mod_python errors in production deployment. apache vs django

2008-09-16 Thread R. Gorman
What is in your urls.py file? That's where your urlpatterns should be stored. R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.c

Re: mod_python errors in production deployment. apache vs django

2008-09-16 Thread NoviceSortOf
Thanks Karen Now having fixed the curly quotes and loaded psycopg2, I'm on to another set of problems. ** Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call

Re: mod_python errors in production deployment. apache vs django

2008-09-16 Thread Karen Tracey
On Tue, Sep 16, 2008 at 1:09 PM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > [snip] > File "/var/www/bookstor/settings.py", line 80 >'django.contrib.admin', >^ > SyntaxError: invalid syntax > > You've got curly quotes in your settings.py file. You need to use typewriter quotes. Karen -

mod_python errors in production deployment. apache vs django

2008-09-16 Thread NoviceSortOf
apache conf file is configured as * SetHandler python-program PythonPath "['/var/www'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE bookstor.settings PythonOp