Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

display data from database in django

data = Students.objects.all()
stu = {
    "student_number": data
}
return render_to_response("login/profile.html", stu)

// in html file :
{% for student in student_number %}
    {{ student.f_name}}
    {{ student.l_name }}
    {{ student.student_number }}
    {{ student.dob }}
{% endfor %}
Comment

PREVIOUS NEXT
Code Example
Python :: python array append 
Python :: how to put a image in flask 
Python :: To visualize the correlation between any two columns | scatter plot graph 
Python :: cumulative percentaile pandas 
Python :: two dimensional array python 
Python :: python dict get random key 
Python :: breadth first search python 
Python :: how to declare a variable in python 
Python :: discord get bot profile picture 
Python :: python super 
Python :: exclude last value of an array python 
Python :: google translator api pyhton 
Python :: who created python 
Python :: find data in sheet pandas 
Python :: flask cookies 
Python :: python for character in string 
Python :: if main 
Python :: selenium select element by id 
Python :: Convert two lists into a dictionary in python 
Python :: python declare a variable 
Python :: rename in python 
Python :: how to create a variablein python 
Python :: pandas cumulative mean 
Python :: python cv2 imwrite 
Python :: handle 404 in requests python 
Python :: filter in pandas 
Python :: Cast image to float32 
Python :: how to restart loop python 
Python :: plt text matplotlib white background 
Python :: django get_user_model() function 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =