Hi Brian,

I know how to get into python but not sure the exact commands to
import settings.py? I tried "import settings" and it didn't come back
with an error.

How do I check the __file__/__path__ module attributes?

I am now running into a weird intermittent issue which is actually not
showing the welcome page anymore, but it showing a Django error (which
is good) but I actually have Debug set to False which means I
shouldn't be seeing this page!

I am now thinking my settings.py file is not being called properly.
Here is part of the error message screen (some parts changed to X):

DOCUMENT_ROOT
'/home/mysite'
GATEWAY_INTERFACE
'CGI/1.1'
HTTP_ACCEPT
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
HTTP_ACCEPT_LANGUAGE
'en-us'
HTTP_AREA51
'1'
HTTP_CACHE_CONTROL
'max-age=0'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'PHPSESSID=XXXX
HTTP_HOST
'mysite.com'
HTTP_USER_AGENT
'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/
523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6'
PATH_INFO
'/'
PATH_TRANSLATED
'/home/mysite/'
QUERY_STRING
''
REDIRECT_STATUS
'200'
REDIRECT_URI
'/mysite.fcgi/'
REMOTE_ADDR
'XX.XXX.XX.XXX'
REMOTE_PORT
'XXXXX'
REQUEST_METHOD
'GET'
REQUEST_URI
'/'
SCRIPT_FILENAME
'/home/mysite/mysite.fcgi'
SCRIPT_NAME
'/mysite.fcgi'
SERVER_ADDR
'69.72.215.66'
SERVER_NAME
'mysite.com'
SERVER_PORT
'8251'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'lighttpd/1.4.18'
wsgi.errors
<flup.server.fcgi_base.TeeOutputStream object at 0x2aaaafc52bd0>
wsgi.input
<flup.server.fcgi_base.InputStream object at 0x2aaaafc4c450>
wsgi.multiprocess
True
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)

Anything in there stand out as an issue?

Cheers,
Chris

On Feb 17, 6:58 pm, Brian Luft <[EMAIL PROTECTED]> wrote:
> Your code is apparently in a project called "thumbslap":
>
> >If you plan to use a database, edit the DATABASE_* settings in
> >thumbslap/settings.py.
> >Start your first app by running python thumbslap/manage.py startapp
> >[appname].
>
> But your settings file is ROOT_URL_CONF set to "mysite.urls".  Is that
> in fact the correct URLs file?
>
> I would suggest jumping into the python interpreter and importing your
> desired settings file, check the __file__/__path__ module attributes
> and also do the same with your urls.py file just to make sure you
> aren't loading something unexpected.
>
> -Brian
>
> On Feb 17, 2:52 am,Darthmahon<[EMAIL PROTECTED]> wrote:
>
> > ======================================
> > File: urls.py
> > ======================================
> > from django.conf.urls.defaults import *
> > urlpatterns = patterns('',
> >         (r'^admin/', include('django.contrib.admin.urls')),
> >         (r'^$', 'mysite.views.index'),
> >         (r'^settings/', 'mysite.people.views.settings'),
> >         (r'^register/', 'mysite.people.views.register'),
> >         (r'^login/', 'mysite.views.login'),
> >         (r'^logout/', 'mysite.people.views.logout'),
> >         (r'^people/', include('mysite.people.urls')),
> >         (r'^friends/', 'mysite.people.views.friends'),
> > )
> > ======================================
> > File: settings.py
> > ======================================
> > DEBUG = False
> > TEMPLATE_DEBUG = DEBUG
> > ADMINS = (
> > )
> > MANAGERS = ADMINS
> > DATABASE_ENGINE = 'mysql'
> > DATABASE_NAME = 'xxxx'
> > DATABASE_USER = 'xxxx'
> > DATABASE_PASSWORD = 'xxxx'
> > DATABASE_HOST = 'xxxx'
> > DATABASE_PORT = ''
> > DATABASE_OPTIONS = {'read_default_file': '/etc/my.cnf',}
> > TIME_ZONE = 'Europe/London'
> > LANGUAGE_CODE = 'en-gb'
> > SITE_ID = 1
> > USE_I18N = True
> > MEDIA_ROOT = '/home/mysite/static'
> > MAX_PHOTO_UPLOAD_SIZE = 500000
> > MAX_PHOTO_WIDTH = 500000
> > MAX_PHOTO_WIDTH = 500000
> > MEDIA_URL = 'http://static.mysite.com/'
> > ADMIN_MEDIA_PREFIX = '/media/'
> > SECRET_KEY = 'xxxx'
> > TEMPLATE_LOADERS = (
> >     'django.template.loaders.filesystem.load_template_source',
> >     'django.template.loaders.app_directories.load_template_source',
> > )
> > AUTH_PROFILE_MODULE = "people.userprofile"
> > TEMPLATE_CONTEXT_PROCESSORS = (
> >         'django.core.context_processors.auth',
> >         'django.core.context_processors.debug',
> >         'django.core.context_processors.i18n',
> >         'django.core.context_processors.request',
> >         'mysite.context_processors.static_url',
> >         'mysite.context_processors.user_profile',
> >         'django.core.context_processors.request',
> > )
> > MIDDLEWARE_CLASSES = (
> >     'django.middleware.common.CommonMiddleware',
> >     'django.contrib.sessions.middleware.SessionMiddleware',
> >     'django.contrib.auth.middleware.AuthenticationMiddleware',
> >     'django.middleware.doc.XViewMiddleware',
> > )
> > ROOT_URLCONF = 'mysite.urls'
> > TEMPLATE_DIRS = (
> >     '/home/mysite/templates',
> > )
> > INSTALLED_APPS = (
> >     'django.contrib.auth',
> >     'django.contrib.humanize',
> >     'django.contrib.contenttypes',
> >     'django.contrib.sessions',
> >     'django.contrib.sites',
> >     'django.contrib.admin',
> >     'mysite.people',
> > )
>
> > On Feb 16, 9:53 pm, Bret W <[EMAIL PROTECTED]> wrote:
>
> Could you post your urls.py and settings files?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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