Sultonbek Ikromov
and what should i do?😂
try to write important
Alex
Ill even explain it: 1. Open django docs 2. Search the static files chapter 3. Read, read, comprehend 4. {% load static %} .... ;)
Alex
and what should i do?😂
You want to be spoonfed, pay me as your nanny. You wanna be a developer, make errors and solve them with help of the documentation
Shikhar
{{ if visits_details is not None and if hosts_details is not None }}
Shikhar
I'm getting error in this
Shikhar
Visits_details and hosts_details are the keys that I've passed from the views.py
Alex
I'm getting error in this
Nice, might let us know the exact error? ("I saw a car, now it hurts" kinda mentality)
Alex
Not what you think the error is
Shikhar
It's unable to get info of hosts_details object
Alex
It's unable to get info of hosts_details object
Oh boy, copy the error output, paste into pastebin and share the link
Alex
Losing my interest in helping you from message to message
Anonymous
It's unable to get info of hosts_details object
Do as Alex says. He is trying to help u and u r not paying attention
Alex
Tryna not to be rude rn so hard
Shikhar
I'm really sorry for the delay. Now I've a different error
Shikhar
How can I use two variables in a single for loop
Alex
Contencate the variables in the views, loop over your new var?
Alex
Newvar = x and y, for blah in newvar ....
Shikhar
Like in C++ we can write for( i, j ; I<.....
Alex
Like in C++ we can write for( i, j ; I<.....
I don't know c++ and this is python, welcome to reality
Alex
Newvar = x and y, for blah in newvar ....
You mean something like this?
Shikhar
Like this For a,b in c, d
Alex
Newvar = x and y, for blah in newvar ....
Of course this is abstract and not actually the syntax
Alex
Like this For a,b in c, d
Ill ask differently, what do you want to do?
Alex
You dont want to just loop you wanna achieve something
Shikhar
Like this For a,b in c, d
Consider c and d as list. I want a to iterate over c and b to iterate over d
Alex
Consider c and d as list. I want a to iterate over c and b to iterate over d
Thats just the explanation of the for blah blah in blah blah
Alex
Not what you wanna achieve
Alex
But im trying to figure it out, gimme a second
Alex
for f, b in zip(foo, bar): print(f, b)
Alex
Something like that?
Shikhar
for f, b in zip(foo, bar): print(f, b)
I've wrapped them in zip but still I'm getting the error
Shikhar
The error is 'for' statements should use the format ' for x in y':
Alex
I've wrapped them in zip but still I'm getting the error
Check your pms, sent you a stackoverflow thread about that
Shikhar
In the template
Alex
Hmm i wonder if the templating engine allows/gets that
Kenan
hi guys
Kenan
i have a question
Kenan
I want to run pure python code for django. I couldn't find a source.
Kenan
what i want to do is run a different python code for django and show the result on the html page
Alex
what i want to do is run a different python code for django and show the result on the html page
Do you even know how django works? Put the code in the view, display it via template
Shikhar
what i want to do is run a different python code for django and show the result on the html page
https://stackoverflow.com/questions/29977495/running-python-script-in-django-from-submit
Kenan
I'm new. so I don't know exactly. and I want to practice
Doragonsureiyā
I'm new. so I don't know exactly. and I want to practice
Check out PythonRes, a channel for Python resources (links to help you out).
Shikhar
I'm new. so I don't know exactly. and I want to practice
Is OK bro it happens when you are starting something. But please try to google the query that have. Enjoy 😊
Kenan
!res duh
thank you. i join immediately :)
Kenan
I have tried many times. I think I'm a little bad about putting the right words together. :(
Kenan
😊
Alex
thank you, i m checking now
Advice from the depths of my cold, vantablack heart: do the django tutorial, follow from step 01 and try it out for yourself
Kenan
I will look as soon as I can. thanks bro
Alex
I will look as soon as I can. thanks bro
We're no bros and you're whalecum
Yetkin
I'm told fun was here ?
Kenan
We're no bros and you're whalecum
I wrote to show that I am sincere
Alex
I'm told fun was here ?
Read up to some messages lol
Alex
I wrote to show that I am sincere
Its bad practice, what if im a girl ;)
Alex
I wrote to show that I am sincere
But you're sincerely whalecum
Yetkin
hasbinforce very interesting chat going on here
Yetkin
*grabs popcorn*
The Summer
Is there any way to upload multiple images from the admin side in a single record we can do something like imageField(upload_to="",multiple=True) So a single record store more than one images Like we have more than one values in one record in Manytomanyfield
Orack
Is there a Pastebin alternative which has tabs, that would be easier to show django codes 🤔
.
hi
.
https://downloadgram.com/ I want to download images from instagram like Django site above.But the content of the instagram page loads dynamically. So I can't get the image address using the request and bs4 libraries. How can I get the dynamic content of websites with Django?
.
selenium
but django is a web application How do I use selenium? selenium works with a browser?
.
I use selenium as script but I want to make an online system.
Orack
there is also pip install selenium which runs a browser in background without gui
.
I'm investigating now. I'm looking at. thank you
.
I tried here, but he wants a browser again. do I run it in the background? Can you show the source?
R
I tried here, but he wants a browser again. do I run it in the background? Can you show the source?
You just need to install the browser that you want to use in your system and specify it to selenium