Basically I am using Pycharm for the first time to create a web application connected to Python. I am trying to send data between two HTML files. I noticed it was not working so I tried on a single file. When I click run main, it works and prints
i|f;/ITV?vqy<{/giT(7/0cFk%JC&iiW8ZL,RY<HwTN~mRd,V(iL+jqeJKdk>fJO~Y<a+0w7L3t!vagdV"pqDVy5_yK[}=a8Sj^,Xq#MmLX7g2<^cE`BBQ+*v?#2O`tvWT<mL"~$PePa:_`Y<PP:hf|wR~W&P[YB6nKmpql"n?]]HY`qq3@*b~q#27P!0>E]^N81H.$;=I-a;:dqAq)u!FDMhn)qs_I,bjhdJA1q8i[Z$CO?o:Kdu!7eU%v`z.0e
but if I just open the HTML page, it’s undefined. I feel like the other issue is similar. The only difference I know is the URL. When I do run main, the URL is
http://127.0.0.1:5000/
otherwise, it is
http://localhost:63342/main.py/templates/main.html?_ijt=gg9rhi2jh5afgf7fngill850rc&_ij_reload=RELOAD_ON_SAVE
Does anybody know how to fix this or another method? I’ve read that if you add the script file, then you can access the variable. Is that true? Another issue with that is that PyCharm CE does not allow separate JS or CSS files, so I’d need a new IDE