Форум сайта python.su
Уже больше года сайт работает на Django под Windows Server 2003.
Вебсервер Apache.
Проблем пока не обнаружил. Скоро будет тест под небольшой нагрузкой: 20к посещений в сутки. Посмотрим…
Офлайн
У специалиста сразу резкий переход с уже настроенным сервером, поэтому брал конфиг из интернета.
Как там правильно пути должны быть, сейчас 500 ошибка и он не находит сеттингс.
[Wed Apr 02 22:53:01.009307 2014] [:error] [pid 1994] [client 127.0.0.1:46676] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
[Wed Apr 02 22:53:01.009462 2014] [:error] [pid 1994] [client 127.0.0.1:46676] self._setup(name)
[Wed Apr 02 22:53:01.009491 2014] [:error] [pid 1994] [client 127.0.0.1:46676] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 49, in _setup
[Wed Apr 02 22:53:01.009528 2014] [:error] [pid 1994] [client 127.0.0.1:46676] self._wrapped = Settings(settings_module)
[Wed Apr 02 22:53:01.009549 2014] [:error] [pid 1994] [client 127.0.0.1:46676] File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 132, in __init__
[Wed Apr 02 22:53:01.009580 2014] [:error] [pid 1994] [client 127.0.0.1:46676] % (self.SETTINGS_MODULE, e)
[Wed Apr 02 22:53:01.009613 2014] [:error] [pid 1994] [client 127.0.0.1:46676] ImportError: Could not import settings 'www.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named www.settings
LoadModule wsgi_module modules/mod_wsgi.so <VirtualHost test.loc:80> ServerName test.loc DocumentRoot "/home/test/www" DirectoryIndex index.html index.htm WSGIScriptAlias / /home/test/www/www/wsgi.py <Directory /home/test/www> Options All Options MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog /home/test/error.log CustomLog /home/test/access.log common </VirtualHost>
LoadModule wsgi_module modules/mod_wsgi.so <VirtualHost test.loc:80> ServerName test.loc DocumentRoot "/home/test/www/www" DirectoryIndex index.html index.htm WSGIScriptAlias / /home/test/www/www/wsgi.py <Directory /home/test/www/www> Options All Options MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog /home/test/error.log CustomLog /home/test/access.log common </VirtualHost>
Офлайн
DHT
а на винде вы используете django-celery? если да, то как мониторите селери, т.е. работает он или нет. в линукс за этим обычно следит супервизор.
Офлайн