1 |
commit: eed4cc35ea1f86bc765b525e5d9f3328b85475a1 |
2 |
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org> |
3 |
AuthorDate: Tue May 29 12:36:27 2012 +0000 |
4 |
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua> |
5 |
CommitDate: Tue May 29 12:36:27 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=eed4cc35 |
7 |
|
8 |
Provide ability for local config |
9 |
|
10 |
--- |
11 |
.gitignore | 1 + |
12 |
gpackages/main/settings.py | 5 +++++ |
13 |
2 files changed, 6 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/.gitignore b/.gitignore |
16 |
index eaef0e1..d976809 100644 |
17 |
--- a/.gitignore |
18 |
+++ b/.gitignore |
19 |
@@ -3,3 +3,4 @@ |
20 |
*.swo |
21 |
*.swp |
22 |
*.db |
23 |
+gpackages/main/local_settings.py |
24 |
|
25 |
diff --git a/gpackages/main/settings.py b/gpackages/main/settings.py |
26 |
index 86bad69..ec57163 100644 |
27 |
--- a/gpackages/main/settings.py |
28 |
+++ b/gpackages/main/settings.py |
29 |
@@ -145,3 +145,8 @@ LOGGING = { |
30 |
}, |
31 |
} |
32 |
} |
33 |
+ |
34 |
+try: |
35 |
+ from local_settings import * |
36 |
+except ImportError: |
37 |
+ print("Pleasy provide local_settings") |