https://www.youtube.com/watch?v=q6qE_uJB59c=PLd3UqWTnYXOnkicyzePnIg8rc2qEXgjiF
learn this videos first and after learn django get some knowledge about
python.
def getdetails(request11):
objs = Details.objects.all()
context = {'objs; : objs}
return render(request, 'full_path_of_template', context}
templates in which folders path should set in setting file. try this all
the best and revert me.
view.py :-
def getdetails(request):
if you created table in models.py. you can import table at view file
like : from
appname .models import table/class name .
when you got the table data at views file then use it as
*variable=Tablename.objects.all()* now get all values in variable. it can
render in render function and use values at
wiil get resolve the issue revert me.
On Wed, Sep 4, 2019 at 1:07 AM Devdutt Bhati
wrote:
> if you created table in models.py. you can import table at view file like
> : from appname .models import table/class name .
> when you got the table data at views file then use it as
&g
4 matches
Mail list logo