Commit 935957afae56541749426d04718d60a2346fb668
1 parent
97c80b74
Exists in
master
and in
31 other branches
Fixing database path
Showing
2 changed files
with
14 additions
and
7 deletions
Show diff stats
colab/management/initconfig.py
| ... | ... | @@ -32,12 +32,12 @@ ALLOWED_HOSTS = [ |
| 32 | 32 | # SOCIAL_NETWORK_ENABLED = True |
| 33 | 33 | |
| 34 | 34 | ## Database settings |
| 35 | -DATABASES = {{ | |
| 36 | - 'default': {{ | |
| 37 | - 'ENGINE': 'django.db.backends.sqlite3', | |
| 38 | - 'NAME': 'colab.sqlite3', | |
| 39 | - }} | |
| 40 | -}} | |
| 35 | +# DATABASES = {{ | |
| 36 | +# 'default': {{ | |
| 37 | +# 'ENGINE': 'django.db.backends.sqlite3', | |
| 38 | +# 'NAME': '/path/to/colab.sqlite3', | |
| 39 | +# }} | |
| 40 | +# }} | |
| 41 | 41 | |
| 42 | 42 | ## Disable indexing |
| 43 | 43 | ROBOTS_NOINDEX = False | ... | ... |
colab/settings.py
| ... | ... | @@ -168,7 +168,14 @@ HAYSTACK_CUSTOM_HIGHLIGHTER = 'colab.utils.highlighting.ColabHighlighter' |
| 168 | 168 | HAYSTACK_CONNECTIONS = { |
| 169 | 169 | 'default': { |
| 170 | 170 | 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', |
| 171 | - 'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'), | |
| 171 | + 'PATH': os.path.join(BASE_DIR, 'whoosh_index'), | |
| 172 | + } | |
| 173 | +} | |
| 174 | + | |
| 175 | +DATABASES = { | |
| 176 | + 'default': { | |
| 177 | + 'ENGINE': 'django.db.backends.sqlite3', | |
| 178 | + 'NAME': os.path.join(BASE_DIR, 'colab.sqlite3'), | |
| 172 | 179 | } |
| 173 | 180 | } |
| 174 | 181 | ... | ... |