Jonathan, anotherdjangonewby,
Thanks. I tried both suggestions, but there in no change in behavior. No
matter what I do,
the development server only takes requests at 127.0.0.1:8000.
I am including my settings.py file below ( with altered secret_key):
"""
> Django settings for app3 project.
>
> For more information on this file, see
> https://docs.djangoproject.com/en/1.7/topics/settings/
>
> For the full list of settings and their values, see
> https://docs.djangoproject.com/en/1.7/ref/settings/
> """
>
> # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
> import os
> BASE_DIR = os.path.dirname(os.path.dirname(__file__))
>
> #wfk debug
> print("WFK: BASE_DIR= " + BASE_DIR)
>
> # Quick-start development settings - unsuitable for production
> # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
>
> # SECURITY WARNING: keep the secret key used in production secret!
> SECRET_KEY = ''
>
> # SECURITY WARNING: don't run with debug turned on in production!
> DEBUG = True
>
> #TEMPLATE_DEBUG = True #wfk. This is deprecated with Django 1.8
>
> #ALLOWED_HOSTS = []
> ALLOWED_HOSTS = ['192.168.0.102']
>
> # Application definition
> INSTALLED_APPS = (
> 'django_pdb', #wfk for django-pdb debugger
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'report_builder',
> 'app3', #wfk. Application #3
> 'bootstrap3',
> )
>
> MIDDLEWARE_CLASSES = (
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> 'django_pdb.middleware.PdbMiddleware', #wfk for django-pdb debugger
> )
>
> ROOT_URLCONF = 'app3.urls' #WFK app3 is in BASEPATH
> #ROOT_URLCONF = 'urls'
> print("WFK: ROOT_URLCONF= " + ROOT_URLCONF) #DEBUG
>
> WSGI_APPLICATION = 'app3.wsgi.application'
>
> #Wfk: This stanza removed when upgrading to Django 1.8. See "TEMPLATES ="
> below.
> #TEMPLATE_CONTEXT_PROCESSORS = ( # wfk added this for img processing
> #"django.contrib.auth.context_processors.auth",
> #"django.core.context_processors.debug",
> #"django.core.context_processors.i18n",
> #"django.core.context_processors.media",
> #"django.core.context_processors.static",
> #"django.core.context_processors.tz",
> #"django.contrib.messages.context_processors.messages"
> #)
>
> TEMPLATES = [ # wfk added this when upgrading from Django 1.7.1 to
> 1.8.2
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [
> # insert your TEMPLATE_DIRS here
> ],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
> # list if you haven't customized them:
> 'django.contrib.auth.context_processors.auth',
> 'django.template.context_processors.debug',
> 'django.template.context_processors.i18n',
> 'django.template.context_processors.media',
> 'django.template.context_processors.static',
> 'django.template.context_processors.tz',
> 'django.contrib.messages.context_processors.messages',
> ],
> 'debug':True,#wfk: Do TEMPLATE debugging. Replaces
> TEMPLATE_DEBUG. See 1.8 upgrade stuff
> },
> },
> ]
>
> # Database
> # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
>
> DATABASES = {
>
># For postgres:
> # USER, PASSWORD, HOST are needed
> # Inside postgres, "CREATE DATABASE database_name"
>
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql_psycopg2',
> #'NAME': 'app_1_db', # Change to app3 later !!!
> 'NAME': 'app3_db',
> 'USER': 'bill',
> 'PASSWORD': 'bill',
> 'HOST': '127.0.0.1',
> 'PORT': '5432',
> #'ATOMIC_REQUESTS': True, # Safe! See "Two Scoops" p 72
> }
>
> }
>
> # Internationalization
> # https://docs.djangoproject.com/en/1.7/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
> #TIME_ZONE = 'UTC'
> TIME_ZONE = 'America/Los_Angeles'
>
> USE_I18N = True
>
> USE_L10N = True
>
> USE_TZ = True
>
>
> # Static files (CSS, JavaScript, Images)
> # https://docs.djangoproject.com/en/1.7/howto/static-files/
>
> STATIC_URL = '/static/' # refers to
> /home/bill/web_server/django/proj3/app3/static
> STATIC_PATH = os.path.join(BASE_DIR,'app3/static/') #wfk 16-dec-2014
> #wfk debug
> print("WFK: STATIC_PATH= " + STATIC_PATH)
> STATICFILES_DIRS =