builtins.AttributeError - getting error when I run Flask_blog lesson 12 or above
Opened this issue · 1 comments
Getting the following error when I try to run Flask_Blog lesson 12 or above:
builtins.AttributeError
AttributeError: 'NoneType' object has no attribute 'drivername'
I am getting exactly the same too. Can't seem to find the solution to this. I do know that this has something to do with the variables that were put into .bash_profile. In fact I thought I had stumbled across the fix because Linux Mint does not use .bash_profile and the only file that appears to be looked at is .bashrc, despite it being an interactive session.
I have removed both of these lines and put them back in to the config.py file and it then runs a treat.
At this moment, I have no idea why this is happening but I just happy that everything is working again.