Package Camelot :: Package camelot :: Package empty_project :: Module settings |
[frames] | no frames]

# Source Code for Module Camelot.camelot.empty_project.settings

     1  import logging
     2  import os
     3

     4  logging.basicConfig(level=logging.ERROR)
     5

     6  CAMELOT_ATTACHMENTS = ''
     7  # media root needs to be an absolute path for the file open functions

     8  # to function correctly

     9  CAMELOT_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
    10

    11  REPOSITORY = 'repository'
    12  ENGINE = lambda:'sqlite:///model-data.sqlite'
    13

    14 -def setup_model():
    15      import camelot.model
    16      from elixir import setup_all
    17      import model
    18      setup_all(create_tables=True)
    19      from camelot.model.authentication import updateLastLogin
    20      updateLastLogin()
    21