mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-06 23:50:48 +02:00
[#76] The settings will be taken in a non versionned settings file
This commit is contained in:
parent
b062a28e7b
commit
292a3dc8f6
1 changed files with 2 additions and 11 deletions
|
|
@ -1,8 +1,7 @@
|
|||
# -*- coding: utf8 -*-
|
||||
|
||||
|
||||
import pymysql
|
||||
|
||||
import settings
|
||||
|
||||
## @brief Manages the accesses to a MySQL datasource
|
||||
class MySQL(object):
|
||||
|
|
@ -12,15 +11,7 @@ class MySQL(object):
|
|||
field_lodel_id = 'lodel_id'
|
||||
class_table_prefix = 'class_'
|
||||
objects_table_name = 'object'
|
||||
connections = {
|
||||
'default': {
|
||||
'module': pymysql,
|
||||
'host': '127.0.0.1',
|
||||
'user': 'lodel',
|
||||
'passwd': 'bruno',
|
||||
'db': 'lodel2'
|
||||
}
|
||||
}
|
||||
connections = settings.DATABASE_CONNECTIONS
|
||||
|
||||
@classmethod
|
||||
## @brief gets the table name from class name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue