Hi,
Ive been tidying up my navigation so used the talkpython course naviation module to set up a separate navigation module
Initially when I did it using from navigation import navigation
, I got the no module error, but then I changed it to the autocomplete suggestion from .. import navigation
it now appears to recognize the module, but I am getting this error
AttributeError: module 'travevo_design.navigation' has no attribute 'go_home'
at HomeForm, line 32
Line 32 is this navigation.go_home()
but it does it on all of the nav links.
On the navigation module, I have this, so it is there, as are all the other links??? Any ideas?
def go_home():
set_active_nav('home')
set_title("")
form = get_form()
form.load_component(HomeDetailsComponent())
I did a print(navigation) and got this, so it seems it is recognising it??? I’m lost on this.
<module 'travevo_design.navigation' from 'app/travevo_design/navigation.py'>