C
C
chuhnevdan2021-04-13 09:38:42
linux
chuhnevdan, 2021-04-13 09:38:42

Hello, I have a Django project, the task is the following, there is a csv file, it is necessary to create a table on the page based on it, what is the mistake?

And so, I wrote the following in views.py def
def printT(request):
# begin the table
print("

%s%s%s%s%s
")
return (request,'articles/testui.html')
60753cc18989f272994324.png
but I can't figure out how to use it on my html table.... stupid question... but still....
60753d03bc675008640369.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2018-06-24
@ki11k4

www.nokogiri.org/tutorials/installing_nokogiri.html

sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev

V
Vladimir Kuts, 2021-04-13
@chuhnevdan

The mistake is that they undertook to do it without even understanding the basics of working with the framework, and with python in general.
The code must be inserted as text and not as images.
Tables don't show up like that.
Functions and variables are not named that way.
The code in general is terrible.
etc.
In general, everything is bad.
Read about templates , do some work on the bugs - come

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question