I have an app.py file and I want to call a variable in a config file located in the same folder.
I have already tried to import the file but it doesn't recognize it
This is my app.py file
def ldap_connect(data):
try:
server = ldap.initialize(app.config['IP_ldap'])
this is my config.py file (located in the same folder)
# coding=utf-8
####CONFIG LDAP####
IP_ldap = "ldap://127.0.0.1"