blob: 2c8f939d96b0e31a5a71fd1c732bee8efd9524b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
SITE_SRC_ROOT = '/Users/sailing/Development/cnprog_beta2'
#for logging
import logging
LOG_FILENAME = '/Users/sailing/Development/cnprog_beta2/django.lanai.log'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,)
#Database configuration
DATABASE_ENGINE = 'mysql'
DATABASE_HOST = ''
DATABASE_PORT = ''
DATABASE_NAME = 'cnprog' # Or path to database file if using sqlite3.
DATABASE_USER = 'root' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/Users/sailing/Development/cnprog_beta2/templates/upfiles/'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = 'http://127.0.0.1:8000/upfiles/'
|