./manage.py runserver 0.0.0.0:8000
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a695a746-618a-46a2-a216-180577e829ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c2239e5c-55dd-4b09-82c2-8c5596c555e9%40googlegroups.com.
When switching to debug=False I had also problems connecting my debug-server. For me I had to specify the server IP-address in the settings:
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.21']
Maybe this helps.
Kai
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/D33E5C74-8F38-4E63-84A7-9087CDF28C20%40me.com.
"""Django settings for app3 project.For more information on this file, seeFor the full list of settings and their values, see"""# Build paths inside the project like this: os.path.join(BASE_DIR, ...)import osBASE_DIR = os.path.dirname(os.path.dirname(__file__))#wfk debugprint("WFK: BASE_DIR= " + BASE_DIR)# Quick-start development settings - unsuitable for production# SECURITY WARNING: keep the secret key used in production secret!SECRET_KEY = 'zzzz'# 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 definitionINSTALLED_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) #DEBUGWSGI_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.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.contrib.messages.context_processors.messages',],'debug':True, #wfk: Do TEMPLATE debugging. Replaces TEMPLATE_DEBUG. See 1.8 upgrade stuff},},]# DatabaseDATABASES = {# 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}}# InternationalizationLANGUAGE_CODE = 'en-us'#TIME_ZONE = 'UTC'TIME_ZONE = 'America/Los_Angeles'USE_I18N = TrueUSE_L10N = TrueUSE_TZ = True# Static files (CSS, JavaScript, Images)STATIC_URL = '/static/' # refers to /home/bill/web_server/django/proj3/app3/staticSTATIC_PATH = os.path.join(BASE_DIR,'app3/static/') #wfk 16-dec-2014#wfk debugprint("WFK: STATIC_PATH= " + STATIC_PATH)STATICFILES_DIRS = (STATIC_PATH,)# WFK: temporary Directory for collectstatic operation# WFK: "pythone manage.py collectstatic" will load the following file.STATIC_ROOT = '/home/bill/junkd/app3_static'# scp this up to stp and place it in "/static/"# i.e. in /home/bill/web_server/django/proj3/app3/static#MEDIA_ROOT = "/home/bill/django/wfkprojs/proj1/app3/media_root/"MEDIA_ROOT = os.path.join(BASE_DIR, 'app3/media_root/')MEDIA_URL = '/media_root/' ##wfk debugprint("WFK: MEDIA_ROOT= " + MEDIA_ROOT)print("WFK: MEDIA_URL= " + MEDIA_URL)# wfk additions follow. See "Settings" in Django Documentation# Expire. Aso use request.session.set_expiry(0) in view.SESSION_EXPIRE_AT_BROWSER_CLOSE = True#LOGIN_REDIRECT_URL = '/app3/wfk_protected/' # '/accounts/profile/'#LOGIN_URL = '/app3/wfk_protected/' #'/accounts/login/'#LOGOUT = '/accounts/logout/'# django-report-builder stuff followsREPORT_BUILDER_INCLUDE = ['Location', 'Observation', 'Measurement']#REPORT_BUILDER_INCLUDE = []#REPORT_BUILDER_EXCLUDE = ['user']#REPORT_BUILDER_EXCLUDE = []#REPORT_BUILDER_ASYNC_REPORT = TrueREPORT_BUILDER_ASYNC_REPOR = False # If true, requure CeleryREPORT_BUILDER_GLOBAL_EXPORT = True#REPORT_BUILDER_EMAIL_NOTIFICATION = False