Jump to content

totocoto

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by totocoto

  1. Now django is working and gives: ImproperlyConfigured at /school/dispatch.wsgi/hello Error loading psycopg2 module: No module named psycopg2 I've already had this problem http://www.helionet.org/index/index.php?sh...amp;hl=psycopg2 Can you fix it again?
  2. Thank you for quick reaction. Now an error occurs in dispatch.wsgi. Have you changed the django version?
  3. Hi! My site had worked good untill I received error: [Thu Sep 02 14:25:25 2010] [error] [client 178.210.142.170] mod_wsgi (pid=1224): Exception occurred processing WSGI script '/home/pavlok31/public_html/school/dispatch.wsgi'. [Thu Sep 02 14:25:25 2010] [error] [client 178.210.142.170] mod_wsgi (pid=1224): Target WSGI script '/home/pavlok31/public_html/school/dispatch.wsgi' cannot be loaded as Python module. Can you check this out please? my user name is: pavlok31 site: sokiljnyky.heliohost.org
  4. It's perfect now, thank you very much!
  5. username: pavlok31 domain: sokiljnyky.heliohost.org
  6. Hi! I everithing was good on my site but suddenly, when I tried to log in I received: DatabaseError at /dispatch.wsgi/admin/ could not extend relation 1663/839323/840673: No space left on device HINT: Check free disk space. when I tried open my database by phpPgAdmin on cpanel I received: Error Loading schemas.php?subject=database&server=%3A5432%3Aallow&database=pavlok31_school&action=tree (200: OK) sql error: SQL error: ERROR: write failed In statement: SELECT pn.nspname, pu.usename AS nspowner, pg_catalog.obj_description(pn.oid, 'pg_namespace') AS nspcomment FROM pg_catalog.pg_namespace pn LEFT JOIN pg_catalog.pg_user pu ON (pn.nspowner = pu.usesysid) WHERE nspname NOT LIKE 'pg@_%' ESCAPE '@' AND nspname != 'information_schema' ORDER BY nspname and also: Fatal error: Call to a member function recordCount() on a non-object in /usr/local/cpanel/base/3rdparty/phpPgAdmin/classes/Misc.php on line 1630 Where is the problem? Had someone deleted my database inserting harmfull SQL in the login field, or it's connected with latest server down? Or something else? Also I can't create a new database.
  7. Hi! What is going on with Heliohost? I can't access to my cpanel now, and sometimes my page doesn't load. There are moments when even heliohost.org doesn't load. Is it coused by some options on my side: ip, provider, country or something else? My cpanel: http://sokiljnyky.heliohost.org/cpanel
  8. Thank you for quick reaction. But the problem remains the same. My username is pavlok31. You can see django debug page on http://sokiljnyky.heliohost.org/school/hello
  9. Hi! Are the PostgreSQL adapter for django installed on your server? I tried also: DATABASE_ENGINE = 'mysql' in my django settings.py, but it raises: Exception Value: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 How can I install appropriate adapter?
  10. Solved! I forgot that at home I use the newest django instead of on Heliohost. So, I needed to change settings.py to fit with the django version installed on Heliohost.
  11. Hi! My views.py is: from django.http import HttpResponse from django.shortcuts import render_to_response def hello(request): menu_list = create_menu() try: return render_to_response('hello.html', locals()) except Exception, e: return HttpResponse(e) So it results exception: Module "django.template.loaders.filesystem" does not define a "Loader", instead of loading the hello.html. settings.py: TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader', ) ROOT_URLCONF = 'urls' TEMPLATE_DIRS = ("/home/pavlok31/public_html/templates/", # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) Would you be so kind to suggest where can be the problem? Thanks.
  12. Hi. I need more detailed error log to understand what is going wrong with my django project. How can I get it? http://sokiljnyky.heliohost.org/school/ Thanks.
  13. Hi! Sorry for bothering. You're my last hope. I deployed my django project (it works on django development server on my PC) following the instruction on heliohost. But it doesn't work. I was looking for solution but have no ideas. My project (school) path is: /public_html/school When I try http://sokiljnyky.heliohost.org/school/hello it raises: 500 internal server error [sat Jun 12 16:50:07 2010] [error] [client 195.211.156.5] File "/home/pavlok31/public_html/school/dispatch.wsgi", line 13, in application [sat Jun 12 16:50:07 2010] [error] [client 195.211.156.5] mod_wsgi (pid=26503): Exception occurred processing WSGI script '/home/pavlok31/public_html/school/dispatch.wsgi'. Here are the code of files in /public_html/school: .htaccess: RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ school/dispatch.wsgi/$1 [QSA,PT,L] dispatch.wsgi import os, sys sys.path.append("/home/pavlok31/public_html/school"); os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['PYTHON_EGG_CACHE'] = '/home/pavlok31/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response)# - line 13 settings.py: # Django settings for school project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = () MANAGERS = ADMINS} TIME_ZONE = 'America/Chicago' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True USE_L10N = True MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_PREFIX = '/media/' TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'urls' # also tried school.urls and result is the same TEMPLATE_DIRS = ( ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', ) urls.py: from django.conf.urls.defaults import * from views import hello urlpatterns = patterns('', ('^hello/$', hello), ) views.py: # Create your views here. from django.http import HttpResponse def hello(request): return HttpResponse("Hello world") manage.py: #!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) sys.exit(1) if __name__ == "__main__": execute_manager(settings)
×
×
  • Create New...