Options FollowSymLinks
AllowOverride
Order allow,deny
Allow from all
Order Deny,Allow
Deny from all
Alias /admin_media "D:\Python27\Lib\site-packages\django\contrib\admin\media"
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
#AliasMatch /js/(.*\.(js)) D:/dgwww/js/$1
Alias /js D:/dgwww/js/
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
#AliasMatch /site_media/(.*\.(css|gif|png|jpg|jpeg)) D:/dgwww/media/$1
Alias /site_media D:/dgwww/media/
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
设置数据库:settings.py中修改
DATABASES = {
‘default’: {
‘ENGINE’: ‘mysql’, # Add ‘postgresql_psycopg2′, ‘postgresql’, ‘mysql’, ‘sqlite3′ or ‘oracle’.
‘NAME’: ‘apathon_site’, # Or path to database file if using sqlite3.
‘USER’: ‘root’, # Not used with sqlite3.
‘PASSWORD’: ‘sa’, # Not used with sqlite3.
‘HOST’: ”, # Set to empty string for localhost. Not used with sqlite3.
‘PORT’: ’3306′, # Set to empty string for default. Not used with sqlite3.
}
}