inputs={}
def create__input(name,value):
inputs[name]=input(value)
create_input('hello','world')
print(inputs['hello'])
You are seeing this message because this HTTPS site requires a âReferer headerâ to be sent by your Web browser, but none was sent. This header is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable âRefererâ headers, please re-enable them, at least for this site, or for HTTPS connections, or for âsame-originâ requests.
If you are using the tag or including the âReferrer-Policy: no-referrerâ header, please remove them. The CSRF protection requires the âRefererâ header to do strict referer checking. If youâre concerned about privacy, use alternatives like for links to third-party sites.
class Pref(models.Model):
name=models.CharField('Имя услуги',max_length=64, blank=True)
is_active=models.BooleanField('Оказывает?',default=False)
price=models.IntegerField('Стоимость')