1 |
commit: 99e245b4dd84976fc2219a5b518c617bd9f9fbc3 |
2 |
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org> |
3 |
AuthorDate: Thu Jun 7 19:43:51 2012 +0000 |
4 |
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua> |
5 |
CommitDate: Thu Jun 7 19:43:51 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=99e245b4 |
7 |
|
8 |
Add example config |
9 |
|
10 |
--- |
11 |
gpackages/main/local_settings.py.example | 35 ++++++++++++++++++++++++++++++ |
12 |
gpackages/main/settings.py | 14 ++++++----- |
13 |
2 files changed, 43 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/gpackages/main/local_settings.py.example b/gpackages/main/local_settings.py.example |
16 |
new file mode 100644 |
17 |
index 0000000..106f03b |
18 |
--- /dev/null |
19 |
+++ b/gpackages/main/local_settings.py.example |
20 |
@@ -0,0 +1,35 @@ |
21 |
+# This is config file |
22 |
+# Rename that file to local_settings.py |
23 |
+ |
24 |
+ADMINS = ( |
25 |
+ ('Your Name', 'your_email@×××××××.com'), |
26 |
+) |
27 |
+ |
28 |
+# Uncomment and config this for using MySQL |
29 |
+#DATABASES = { |
30 |
+# 'default': { |
31 |
+# 'ENGINE': 'django.db.backends.mysql', |
32 |
+# 'NAME': 'database-name', |
33 |
+# 'USER': 'user-name', |
34 |
+# 'PASSWORD': 'password', |
35 |
+# 'HOST': '', |
36 |
+# 'PORT': '', |
37 |
+# } |
38 |
+#} |
39 |
+# Uncomment and config this for using PostgreSQL |
40 |
+#DATABASES = { |
41 |
+# 'default': { |
42 |
+# 'ENGINE': 'django.db.backends.pgsql', |
43 |
+# 'NAME': 'database-name', |
44 |
+# 'USER': 'user-name', |
45 |
+# 'PASSWORD': 'password', |
46 |
+# 'HOST': '', |
47 |
+# 'PORT': '', |
48 |
+# } |
49 |
+#} |
50 |
+ |
51 |
+# Uncomment and change this if you want change time zone |
52 |
+#TIME_ZONE = 'America/Chicago' |
53 |
+ |
54 |
+# Please uncoment this line, and enter random string in it !! |
55 |
+#SECRET_KEY = '' |
56 |
|
57 |
diff --git a/gpackages/main/settings.py b/gpackages/main/settings.py |
58 |
index dd0bab4..965e304 100644 |
59 |
--- a/gpackages/main/settings.py |
60 |
+++ b/gpackages/main/settings.py |
61 |
@@ -17,14 +17,16 @@ ADMINS = ( |
62 |
|
63 |
MANAGERS = ADMINS |
64 |
|
65 |
+ |
66 |
+# If config not provided using sqlite |
67 |
DATABASES = { |
68 |
'default': { |
69 |
- 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. |
70 |
- 'NAME': os.path.join(MAIN_ROOT,'gpackages.db'), # Or path to database file if using sqlite3. |
71 |
- 'USER': '', # Not used with sqlite3. |
72 |
- 'PASSWORD': '', # Not used with sqlite3. |
73 |
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
74 |
- 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
75 |
+ 'ENGINE': 'django.db.backends.sqlite3', |
76 |
+ 'NAME': os.path.join(MAIN_ROOT,'gpackages.db'), |
77 |
+ 'USER': '', |
78 |
+ 'PASSWORD': '', |
79 |
+ 'HOST': '', |
80 |
+ 'PORT': '', |
81 |
} |
82 |
} |