Alex
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
Shikhar
Alex
Alex
Not what you think the error is
Shikhar
It's unable to get info of hosts_details object
Alex
Losing my interest in helping you from message to message
Alex
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
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
Shikhar
Like this
For a,b in c, d
Alex
You dont want to just loop you wanna achieve something
Alex
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
The error is
'for' statements should use the format ' for x in y':
Alex
Alex
Shikhar
In the template
Alex
Hmm i wonder if the templating engine allows/gets that
Alex
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
Shikhar
Kenan
I'm new. so I don't know exactly. and I want to practice
Alex
Kenan
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
Yetkin
I'm told fun was here ?
Kenan
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
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?
Orack
.
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
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?