-
avatar
django nginx fastcgi django-settings mod-fastcgi
I just upgraded from django 1.2.4 to 1.3. I’m using nginx in conjunction with fastcgi and for some reason every time when I access a page I get this error:Unhandled ExceptionAn unhandled exception was thrown by the application.Any ideas what the problem might be?
-
user1435114
django django-settings mailman
I’m trying to call a python function that makes some queries into my django database from GNU mailman.When mailman tries to deliver a message, it imports my python script. It later calls a function in my script to modify the message object. The error I’m getting is:ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation \ for more details.Here’s how I’m configuring the settings, at the very top of my file:from django.core.ma
-
Deonomo
django django-settings
I am having some trouble setting the DJANGO_SETTINGS_MODULE for my Django project.I have a directory at ~/dev/django-project. In this directory I have a virtual environment which I have set up with virtualenv, and also a django project called “blossom” with an app within it called “onora”. Running tree -L 3 from ~/dev/django-project/ shows me the following:. ??? Procfile ??? blossom ? ??? __init__.py ? ??? __init__.pyc ? ??? fixtures ? ? ??? initial_data_test.yaml ? ??? manage.py
-
Ali
django testing automated-tests django-settings lettuce
I am trying to connect lettuce with standard django test. Lettuce works fine when working on its own. However, when I import Client from django.test.client I get the error:”Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.”My steps.py looks like:from lettuce import * from django.test.client import [email protected] set_browser():world.browser = Client()@step(r’I access the url “(.*)”‘) def have_the_number(step,url):world.response = world.browser.ge
-
nimesh.iitd
python django postgresql importerror django-settings
I was trying to connect to the database by using the commandfrom django.db import connection from the python shell but this produced the following Import errorFile “<stdin>”, line 1, in <module>File “/usr/local/lib/python2.7/dist-packages/django/db/__init__.py”, line 11, in <module>if DEFAULT_DB_ALIAS not in settings.DATABASES:File “/usr/local/lib/python2.7/dist-packages/django/utils/functional.py”, line 184, in innerself._setup()File “/usr/local/lib/python2.7/dist-packages/dja
-
User007
django pinax django-settings
import os from os.path import abspath, dirname import sys# Set up django project_dir = abspath(dirname(dirname(__file__))) sys.path.insert(0, project_dir) os.environ[“DJANGO_SETTINGS_MODULE”] = “mysite.settings”I did that, and I still get Traceback (most recent call last):File “main.py”, line 4, in <module>from django.middleware.csrf import get_tokenFile “/var/lib/system-webclient/system-webenv/lib/python2.6/site-packages/django/middleware/csrf.py”, line 14, in <module>from django.ut