[Python] errore in applicazione django

emanuele scopel escopel a alice.it
Dom 7 Dic 2008 17:15:09 CET


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sto scrivendo un'applicazione in django e pinax, e ho installato la
seguente snippets
:
http://www.djangosnippets.org/snippets/1127/

il problema che mi capita  il seguente:

emanuele a emanuele-laptop:~/Documenti_lavoro/LLSolution/pinax/projects/cornettas$
/usr/bin/env python
/home/emanuele/Documenti_lavoro/LLSolution/pinax/projects/cornettas/apps/cron_job/run_task.py
task_001
Traceback (most recent call last):
  File
"/home/emanuele/Documenti_lavoro/LLSolution/pinax/projects/cornettas/apps/cron_job/run_task.py",
line 14, in <module>
    from models import Task, update_crontab
  File
"/home/emanuele/Documenti_lavoro/LLSolution/pinax/projects/cornettas/apps/cron_job/models.py",
line 25, in <module>
    from django.db import models
  File "/usr/lib/python2.5/site-packages/django/db/__init__.py", line 9,
in <module>
    if not settings.DATABASE_ENGINE:
  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line
28, in __getattr__
    self._import_settings()
  File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line
57, in _import_settings
    raise ImportError("Settings cannot be imported, because environment
variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.

non riesco a capire dove sta l'errore.
Grazie

- --
"La domanda che mi lascia piu' confuso e': 'Sono pazzo io o lo sono gli
altri?'"
- --Albert Einstein--

Scopel Emanuele.
Server Chiavi: http://pgp.mit.edu
Linux Registered User: #425729.
jabber: escopel a jabber.linux.it
VoIP : sip:emanuele.scopel a ekiga.net
http://openorso.altervista.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk79ooACgkQJ47VmkHcLCH3rwCggRkw+X675u8lifJmK2eLKN7l
3eUAnA5YgsjH+Vt7K22CBwL/68xI1WPv
=8ej9
-----END PGP SIGNATURE-----


Maggiori informazioni sulla lista Python