Skip to content

Commit

Permalink
Add: 添加本地配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonext committed Jul 10, 2015
1 parent 6814a3d commit 1d57469
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ target/

# Idea
.idea/
DEOnlineJudge/local_settings.py
10 changes: 10 additions & 0 deletions DEOnlineJudge/local_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'deoj',
'USER': 'root',
'PASSWORD': 'root',
}
}
5 changes: 5 additions & 0 deletions DEOnlineJudge/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATIC_URL = '/static/'

try:
from local_settings import *
except ImportError:
pass
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
django==1.8.3
mysql-python==1.2.5

0 comments on commit 1d57469

Please sign in to comment.