Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by MalaLeche ( 15 years ago )
#django.wsgi
import os
import sys
path = '/django/Pagina'
if path not in sys.path:
sys.path.append(path)
os.environ["DJANGO_SETTINGS_MODULE"] = "Pagina.settings"
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
#httpd.conf
WSGIScriptAlias /pagina /django/Pagina/apache/django.wsgi
malaleche@malaleche-G60VX:/$ ls -al /django/Pagina
total 60
drwxr-x--- 5 malaleche www-data 4096 2011-02-15 11:17 .
drwxr-xr-x 5 malaleche www-data 4096 2011-02-15 09:49 ..
drwxr-x--- 2 malaleche www-data 4096 2011-02-15 15:42 apache
-rw-r----- 1 malaleche www-data 167 2011-02-14 23:41 django.wsgi
-rw-r----- 1 malaleche www-data 0 2011-02-11 12:39 __init__.py
-rw-r----- 1 malaleche www-data 141 2011-02-11 12:39 __init__.pyc
-rw-r----- 1 malaleche www-data 542 2011-02-11 12:39 manage.py
-rw-r----- 1 malaleche www-data 165 2011-02-14 16:24 ruta.txt
-rw-r----- 1 malaleche www-data 3356 2011-02-12 14:13 settings.py
-rw-r----- 1 malaleche www-data 2146 2011-02-12 14:13 settings.pyc
drwxr-x--- 4 malaleche www-data 4096 2011-02-14 20:22 site_media
drwxr-x--- 2 malaleche www-data 4096 2011-02-14 20:22 templates
-rw-r----- 1 malaleche www-data 729 2011-02-12 14:13 urls.py
-rw-r----- 1 malaleche www-data 542 2011-02-12 14:13 urls.pyc
-rw-r----- 1 malaleche www-data 491 2011-02-11 16:00 views.py
-rw-r----- 1 malaleche www-data 888 2011-02-11 16:00 views.pyc
malaleche@malaleche-G60VX:/$ ls -al /django/Pagina/apache/
total 20
drwxr-x--- 2 malaleche www-data 4096 2011-02-15 15:42 .
drwxr-x--- 5 malaleche www-data 4096 2011-02-15 11:17 ..
-rw-r--r-- 1 malaleche www-data 168 2011-02-15 12:47 django(asdf).wsgi
-rw-r--r-- 1 malaleche www-data 257 2011-02-15 15:42 django.wsgi
-rw-r--r-- 1 malaleche www-data 0 2011-02-11 12:39 __init__.py
-rw-r--r-- 1 malaleche www-data 277 2011-02-14 23:31 prueba.wsgi
#error.log apache
[Tue Feb 15 18:38:10 2011] [notice] Apache/2.2.16 (Ubuntu) PHP/5.3.3-1ubuntu9.3 with Suhosin-Patch mod_wsgi/3.3 Python/2.6.6 configured -- resuming normal operations
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] mod_wsgi (pid=10892): Exception occurred processing WSGI script '/django/Pagina/apache/django.wsgi'.
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] Traceback (most recent call last):
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 230, in __call__
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] self.load_middleware()
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 33, in load_middleware
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File "/usr/lib/pymodules/python2.6/django/utils/functional.py", line 276, in __getattr__
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] self._setup()
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File "/usr/lib/pymodules/python2.6/django/conf/__init__.py", line 40, in _setup
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] self._wrapped = Settings(settings_module)
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File "/usr/lib/pymodules/python2.6/django/conf/__init__.py", line 75, in __init__
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e))
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] ImportError: Could not import settings 'Pagina.settings' (Is it on sys.path? Does it have syntax errors?): No module named Pagina.settings
[Tue Feb 15 18:38:17 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
Revise this Paste