Jump to content

sithfor

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by sithfor

  1. It's working! Thanks very much, Geoff. Regards, sithfor
  2. Hi Geoff. The application using the Postgresql was working fine. I don't know what had happened in the middle. I understand that there was an upgrade of the django version. username: sith domain: pipona.heliohost.org server: stevie Best regards, sithfor
  3. Hi folks! I've created this new thread to put under your consideration the next problem: I am working with Postgresql database. The settings.py file that had been working before the issue had: DATABASE_ENGINE = 'postgresql_psycopg2' When the problem arise I've also tried with: DATABASE_ENGINE = 'django.db.backends.postgresql_psycopg2' The problem occurs when I try to access any url under http://pipona.heliohost.org/mysite/. The traceback is: Django Version: 1.3 Exception Type: ImproperlyConfigured Exception Value: Error loading psycopg2 module: No module named psycopg2 Exception Location: /usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py in <module>, line 24 Python Executable: /usr/bin/python Python Version: 2.7.1 Python Path: ['/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/local/lib/python2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg', '/usr/local/lib/python2.7/site-packages/Markdown-2.0.3-py2.7.egg', '/usr/local/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg', '/usr/local/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg', '/usr/local/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-linux-x86_64.egg', '/usr/local/lib/python2.7/site-packages/PIL-1.1.7-py2.7-linux-x86_64.egg', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/home/sith/public_html/', '/home/sith/public_html/mysite', '/home/sith/public_html/mysite/books'] Server time: Tue, 14 Jun 2011 08:43:49 -0500 Thanks, sithfor
  4. Thank you, djbob! It's working again.
  5. Hi. Before the DDoS my django application(a hello world) was working just fine. Now it only gives "Internal Server Error". The sys.path only shows: /usr/lib64/. I leave you the previous configuration that was working. Thanks in advance. .htaccess AddHandler wsgi-script .wsgi RewriteEngine On RewriteBase / RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ dispatch.wsgi/$1 [QSA,PT,L] --------------- dispatch.wsgi import os, sys sys.path.append("/home/sith/public_html/") sys.path.append("/home/sith/public_html/mysite") os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' #my project name phonebook os.environ['PYTHON_EGG_CACHE'] = '/home/sith/.python_egg_cache' #right 775 import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() --------------- from django.conf.urls.defaults import * from mysite.views import hello # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^mysite/', include('mysite.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # (r'^admin/', include(admin.site.urls)), ('^$', hello),#the problem with this line is the default view(hello in this case) doesn't exist in #public_html ('^mysite/$', hello), )
×
×
  • Create New...