settings.py

34 views
Skip to first unread message

ngangsia akumbo

unread,
Sep 8, 2014, 1:16:56 PM9/8/14
to django...@googlegroups.com
when i run the 
django-admin.py startproject this is the settings file i have

"""
Django settings for bphotel project.

For more information on this file, see

For the full list of settings and their values, see
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'j-3!deoj%m-m_po8o3$zv8-qgkn1$j)!c!*s#)wdb!t95_39lo'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',

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',
)

ROOT_URLCONF = 'bphotel.urls'

WSGI_APPLICATION = 'bphotel.wsgi.application'


# Database

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Internationalization

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True


# Static files (CSS, JavaScript, Images)

STATIC_URL = '/static/'


Please i need some help here dont understand what is going on

Andrew Pinkham

unread,
Sep 8, 2014, 1:21:49 PM9/8/14
to django...@googlegroups.com
Hi Ngangsia,

On Sep 8, 2014, at 12:16 PM, ngangsia akumbo <ngan...@gmail.com> wrote:
> when i run the
> django-admin.py startproject this is the settings file i have

I've glanced through the file. It looks fine to me, but I may have missed something.

> Please i need some help here dont understand what is going on

Are you following the tutorial? Are you experiencing a problem in particular? We need a little bit more information before we can help you.

Andrew

ngangsia akumbo

unread,
Sep 8, 2014, 1:31:19 PM9/8/14
to django...@googlegroups.com, m...@andrewsforge.com
i am trying to host build an app to host it on heroku
Reply all
Reply to author
Forward
0 new messages