Hi,
I'm trying to get my first Django app up and running on amazon ec2
fedora 8 instance on apache with mod_python. I've got mod_python MySQL-
python python-devel Django mysql-server installed.
I've got the homepage to show up, but its a very simple view that just
returns text. Anything more complex produces a 500 error. I don't have
any other views setup right now, but I need the admin to work, which
also current produces a 500 error.
I've got a basic django setup with one app inside of it that has
models and admin stuff.
This is what my httpd.conf file looks like:
<VirtualHost *:80>
ServerName first.django-app.com
DocumentRoot "/sites/django-app"
<Directory "/sites/django-app/">
Order allow,deny
Allow from all
</Directory>
<Location "/">
SetHandler python-program
SetEnv DJANGO_SETTINGS_MODULE django-app.settings
PythonInterpreter django-app
PythonHandler django.core.handlers.modpython
PythonOption django.root /
PythonPath "['/sites','/sites/django-app'] + sys.path"
PythonDebug On
</Location>
<Location "/images/">
SetHandler None
</Location>
<Directory "/sites/django-app/images">
Order allow,deny
Allow from all
</Directory>
<LocationMatch "\.(png|gif|jpg|mov|mp3|avi|wav)$">
SetHandler None
</LocationMatch>
</VirtualHost>
Any hints, suggestions, ideas on how to get this to work would be
great.
Thank you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.