Hi I've installed Django 1.02 on my dedibox. I'm trying to make .py file readable and executable. Apache, Python, Django are installed. We have many website : /var/www/mysite1 /var/www/mysite2 /var/www/mysite3
we have : /var/django/mysite1 /var/django/mysite2 We configure in /etc/apache2/site-available/mysite1 : ---------- <VirtualHost *:80> ServerAdmin webmas...@localhost ServerName mysite1.com ServerAlias mysite1.com www.mysite1.fr mysite1.fr DocumentRoot /var/www/mysite1/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/mysite/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <Location "/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite1.settings PythonOption django.root /var/django/mysite1 PythonPath "['/var/django/', '/var/www'] + sys.path" PythonDebug On </Location> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> ---------- But when we go in this url : mysite1.com We get this error ------------ MOD_PYTHON ERROR ProcessId: 14693 Interpreter: mysite.com' ServerName: 'mysite.com' DocumentRoot: '/var/www/mysite/' URI: '/' Location: '/' Directory: None Filename: '/var/www/mysite/' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg) File "/var/lib/python-support/python2.5/django/core/handlers/ modpython.py", line 228, in handler return ModPythonHandler()(req) File "/var/lib/python-support/python2.5/django/core/handlers/ modpython.py", line 191, in __call__ self.load_middleware() File "/var/lib/python-support/python2.5/django/core/handlers/ base.py", line 44, in load_middleware raise exceptions.ImproperlyConfigured, 'Middleware module "%s" does not define a "%s" class' % (mw_module, mw_classname) ImproperlyConfigured: Middleware module "django.contrib.flatpages.middleware" does not define a "FlatpageFallbackMiddlewar" class --~--~---------~--~----~------------~-------~--~----~ 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.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---