FYI, I followed the instructions on the tutorial posted here:
http://www.djangoproject.com/documentation/tutorial01

Below is my settings.py Mod_python runs fine.
---------------------------------------- settings.py
-------------------------------------------------
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
     ('Mark Hentov', '[EMAIL PROTECTED]'),
)

MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2',
'postgresql', 'my
sql', 'sqlite3' or 'oracle'.
DATABASE_NAME = ''             # Or path to database file if using
sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost.
Not used wit
h sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not
used with
sqlite3.
TIME_ZONE = 'America/EDT'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = '/home/frobnitz/frobnitz'
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
SECRET_KEY = 'loL3rc4t'
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'frobnitz.urls'

)

INSTALLED_APPS = (
    'django.contrib.auth',
   'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'frobnitz.polls',
    'django.contrib.admin',
)
------------------------------------- end settings.py
----------------------------------------

On Apr 24, 5:17 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> > ImportError: Could not import settings 'frobnitz.settings' (Is it on
> > sys.path? Does it have syntax errors?): No module named
> > frobnitz.settings
>
> So as the error clearly asks you:
>
> 1. Does your frobnitz/settings.py have syntax errors?

If I could see the errors, I would not be posting here.

> 2. Is it in your PYTHONPATH? Your Apache conf for the application
> should have a line like:
>
> PythonPath "['/path/to/project'] + sys.path"
>
> That goes in the <Location> directive and should point to the
> directory that's the parent of your frobnitz directory. See this for
> details:

The PARENT of the project dir! I had that wrong. Changing this has
helped some but now I cannot connect to the sqlite db. Heh.

Here are the python lines from httpd.conf. I include them despite the
fact they
have nothing to do with django not working when I use the built-in
django development server i.e. "python manage.py runserver".

------------------------------------ apache lines
--------------------------------------------------
LoadModule python_module libexec/apache22/mod_python.so

<Directory "/usr/local/www/apache22/data/frobnitz">
        AddHandler mod_python .py
        PythonHandler mptest
        PythonDebug On
</Directory>

<Location /mpinfo>
      SetHandler mod_python
      PythonHandler mod_python.testhandler
</Location>

<Location "/frobnitz/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE frobnitz.settings
    #SetEnv DJANGO_SETTINGS_MODULE settings.py
    PythonDebug On
    PythonPath "['/usr/home/frobnitz'] + sys.path"
</Location>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to