How does django transfer the front-end input value to the back-end python script?

Hello, everyone! I now have this situation, that is, I input several variables from the front end of django (some variables can be empty and will automatically fill in the default values). Views.py gets these variables with request.POST.get, but I also need to give these variables to a script in the background to execute and return the results to the front end. In addition to the method of "passing variables between scripts", is there any other way for aaa.py to get the input value of the front end?

excuse me again, A.py wants to call the variable x _ pencil _ z under the XXX function in b.py. How do I do this?

May.24,2021

simplest: under the one.py and two.py statistical directories:

< H1 > one.py file < / H1 >

def testone ():

x = 100
return x
< H1 > two.py file < / H1 >

from one import testone
print (testone ())

you can use requests such as post to pass from the front end to the back end

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a8dd-2c228.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a8dd-2c228.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?