Commit 935957afae56541749426d04718d60a2346fb668

Authored by Sergio Oliveira
1 parent 97c80b74

Fixing database path

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  
... ...