Created
July 15, 2014 09:25
-
-
Save no13bus/7500b6bfe7a4d9e1bbc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | |
import os | |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | |
#celery setting | |
from datetime import timedelta | |
CELERYBEAT_SCHEDULE = { | |
'add-every-30-seconds': { | |
'task': 'tasks.add', | |
'schedule': timedelta(seconds=6), | |
'args': (1,2) | |
}, | |
} | |
# Quick-start development settings - unsuitable for production | |
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ | |
# SECURITY WARNING: keep the secret key used in production secret! | |
SECRET_KEY = '00ljh4)%#vma7o-r09vdb+dgd0r&!dyf^toz*xiv0x38wuz70j' | |
# SECURITY WARNING: don't run with debug turned on in production! | |
DEBUG = True | |
TEMPLATE_DEBUG = True | |
ALLOWED_HOSTS = [] | |
# ALLOW_FILE_TYPES = ('jpg','png','tiff','ico') | |
# Application definition | |
INSTALLED_APPS = ( | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'mn', | |
'south', | |
) | |
MIDDLEWARE_CLASSES = ( | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware', | |
'django.middleware.clickjacking.XFrameOptionsMiddleware', | |
) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
'NAME': 'mn1', # Or path to database file if using sqlite3. | |
'USER': 'root', # Not used with sqlite3. | |
'PASSWORD': 'root', # Not used with sqlite3. | |
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. | |
'PORT': '3306', # Set to empty string for default. Not used with sqlite3. | |
} | |
} | |
# STATIC_ROOT = os.path.dirname(os.path.dirname(__file__)) + '/static/' | |
STATIC_ROOT = 'C:/wamp/www/pyweb/musicnote/mn/static/' | |
STATIC_URL = '/static/' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment