Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: type object 'Config' has no attribute 'DB_NAME' #45

Open
JulianCamits opened this issue Dec 2, 2021 · 1 comment
Open

Comments

@JulianCamits
Copy link

Hello, i am using the template, in all DB question i put NO because i use MSSQL and the template dont have it.

But i get a error when i try to do the "make run-dev"

File "/mnt/c/Python/contabilium.api.common/config.py", line 94, in Dev
SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/%s.db' % Config.DB_NAME
AttributeError: type object 'Config' has no attribute 'DB_NAME'

i think this is the important fragment of the stacktrace of the error.
i think my NO to use SqlLite is ignored.

Any help can you give me?

@italomaia
Copy link
Owner

Hello Jullan. I'll take a look. I probably missed on your use-case. In the meantime, I suppose you can just set DB_NAME in config.py and use it to configure MSSQL, or you can just remove the default value in config.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants