Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
394 views
in Technique[技术] by (71.8m points)

python - how to upload created xml file in django sqlite db

I have a script that when user sends his data to my app I make an xml file and upload it for further use. I think there are two ways to implement it:

  1. I can make a model that save xml file with its username and id to database
  2. I can make a folder for each user and upload the file and save the url in database to refer to xml file.

    which one is efficient? and can I upload xml file to database? are there any other comfortable way to do it?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...