Lambertini, first you need some debugging. e.g. print(Menu.objects.all().count())
Lambertini
Fuyou, sure, print show here?
in terminal ?
Fuyou
yes, where you run manage.py runserver (I assume you use it for now)
Lambertini
i put this print, in html or in views?
yes i use
Fuyou
so add it in the view, load page and see what terminal shows
fission6
i am hitting an issue where timezones for datetimefields are not being converted in my serializer i have this middleware which works fine for typical templates http://dpaste.com/1FPYRC3
jessamynsmith looks like the middleware is getting hit when the endpoint is hit
Lambertini
Fuyou, he say > SyntaxError: unexpected EOF while parsing
adsworth has quit
Xaldafax joined the channel
steeznson has left the channel
Fuyou
then you have a syntax error somewhere
Lambertini
yah ignore this
sorry
Fuyou, he no show me notthing
afiefh has quit
Fuyou
Then you haven't done something
Lambertini
I not understand what happend, I know how to debug in python, in django I no have sure how work this
Fuyou
django is python
Lambertini
yah, but, is diferent
jessamynsmith has quit
no work exact same python
Fuyou
all webmagic mostly happens under the hood
Lambertini
looks like the print no working with notting, i put string print(´test´)
he no print too
amirpro joined the channel
Fuyou
you can put die() and see if it breaks if you think print is broken
xcm joined the channel
Valduare joined the channel
amirpro has quit
Lambertini
i no have sure how its work die()
Fuyou
it doesn't - that is the point
amirpro joined the channel
Lambertini
Fuyou, i try pint menu, say is not defined
menus comming on the models sure ?
Fuyou
Lambertini, please post your code and execution output then, I fear I can't get anything from your messages
so have you checked if you are actually have objects?
Menu.objects.count()
have you tried adding static text to your loop? <li>TEST!: {{ menus.titulo_menu }}</li>
Lambertini
I do not know how to check, this is the problem, I put print inside the function, but the terminal does not return anything to me, just browser access parameters
fission6 joined the channel
yah
Fuyou
are you sure you run right view function at all?
Lambertini
i try no work
i no have sure, but looks like normal
Fuyou
what do you mean it doesn't work? you see blank page?
Lambertini
the blog opens correctly, what is not working is the print
npgm joined the channel
just no show menu at screnn
my english is not very good so I have twice the difficulty, sorry for that