輸入我有一個模型:打印,因爲它是從形式Django的
class somemodel(models.Model):
message=models.TextField()
def __str__(self):
return self.message
現在我已經做了這個模型的形式,把來自用戶的輸入。說用戶是給輸入像波紋管:
Hi i am a djago developer and i am developing a website .
Bellow are my contact details:
Address: xyz
mobile:123456
pin:1234
但是,當我打印出了把這個就要像波紋管。
Hi i am a djago developer and i am developing a website .
Bellow are my contact details: Address: xyz mobile:123456 pin:1234
是否可以打印輸入的用戶輸入,因爲它已經輸入。很好地建議。
兄弟,我說我做了一個表單模型,並採取了從用戶輸入並保存在我的數據庫。然後我再次提取數據併發布在我的網頁 – anuj