import pyodbc
import settings
def get_connection():
    ''' connexion a la base de donnees  '''
    try:
        return pyodbc.connect(
           getattr(settings,
                   "CONNEXION_STRING"),
                   autocommit =True)
    except:
        raise  Exception(
    'Erreur ce connection reseau, sans dourte!')

06c5e620ccd7f91af602988f9e00a2b0253e05d9
<mask token>

<mask token>


def get_connection():
    """ connexion a la base de donnees  """
    try:
        return pyodbc.connect(getattr(settings, 'CONNEXION_STRING'),
            autocommit=True)
    except:
        raise Exception('Erreur ce connection reseau, sans dourte!')

import pyodbc
import settings


def get_connection():
    """ connexion a la base de donnees  """
    try:
        return pyodbc.connect(getattr(settings, 'CONNEXION_STRING'),
            autocommit=True)
    except:
        raise Exception('Erreur ce connection reseau, sans dourte!')

import pyodbc
import settings
def get_connection():
    ''' connexion a la base de donnees  '''
    try:
        return pyodbc.connect(
           getattr(settings,
                   "CONNEXION_STRING"),
                   autocommit =True)
    except:
        raise  Exception(
    'Erreur ce connection reseau, sans dourte!')
