Rainur
smth like that src="{% url 'articles_list_url' tag.id %}"
Rainur
but with question sign
Rainur
got it) but how to write in urls.py?
Rainur
actually i did it like this "mysite.com/articles/12" but i wanted to know can we do with question sign)
Rainur
thank you))
Rainur
Thank you very much!
Ayush
Guys need your help i am beginner in django can u help me with suggest tutorial so that i can start please
cj
Ayush
Thank you
godmode
hi everyone, i got another little problem to fix... i got a image field in a model "called cover" and when i want to show this one in a template i need it to put into a css property like this one... <div style="background: url('image/image.jpg')> and what i want is something like this <div style="background: {{post.cover}}> but this is not really working cuz what i need i guess is the url... any idea?
Batman
Hi everyone, I was planning to add social authentication to my django app, is django-allauth still the preferred way to go?
cj
cj
if it's still being supported and updated 🤷🏻♂️
Batman
hmm last commit was 27 days, guess I'll go with it🤔
Mirco
godmode
and how do i do it? is there any tag to pass the url?
godmode
any template django magic tag?
Mirco
godmode
i tried it and it's not working... but if this url is real...
Mirco
godmode
it's should be something...
godmode
i'll see..... thank you mirco
godmode
i know where is the problem...
godmode
this is the directory, sorry for send several msgs
godmode
media
godmode
image.jpg
Mirco
godmode
image is into media folder... and i got another folder in the same level than media.. is templates and the indiex is inside... how do u you indicate in html... the url... url('./media/image.jpg')
godmode
that's not working...
Mirco
Man if u don't share code we cannot do so much , we don't have the magic ball yet
Jimmies San
Jimmies San
magic balls i mean
Jimmies San
🤣🤣🤣🤣🤣🤣🤣🤣
Anonymous
😆😆😆
Mirco
Aaron
I've been having some template errors this morning that maybe you guys could help with. Basically, I have some variables I need access to in my user_preferences form. I added them to the dict passed into that view, in views.py.
Aaron
I've got a template that includes another template, basically as a small snippet.
Aaron
And in the included template, it's not seeing the variables I mentioned above.
Aaron
Is there something obvious I'm missing?
Mahmoud
I want to install redis on my virtualenv on windows 10
And it did not work however i did pip install redis
But still face problem with channels framwork because of redis installtion
Can anyone help please ?
Mahmoud
Or i should make a virtual machine of lenux ?!
cj
Charly
Charly
not sure if redis runs on windows 🤔
cj
Charly
what is lenux?
http://www.thepostturtle.com/wp-content/uploads/2016/11/Lisa-as-Florida.jpg
cj
Mahmoud
Mahmoud
Thank..
Charly
Charly
or, run a linux vm as previously said
Mahmoud
Shubham
Hello
Shubham
Django==2.0
django-elasticsearch-dsl==6.4.2
django-extensions==2.2.1
django-filter==1.1.0
django-haystack==2.8.1
djangorestframework==3.8.2
elasticsearch==6.4.0
elasticsearch-dsl==6.1.0
ipaddress==1.0.22
lxml==4.4.0
Pillow==6.1.0
python-dateutil==2.8.0
python-docx==0.8.10
pytz==2019.2
six==1.12.0
urllib3==1.25.3
Whoosh==2.7.4
Shubham
this is my req txt
Shubham
after python manage.py migrate
Shubham
from elasticsearch_dsl import Document as DSLDocument
ImportError: cannot import name 'Document'
Anonymous
I want to do this:
https://docs.djangoproject.com/en/2.2/topics/migrations/#migration-files
it does not say where to put the file or what to name it ...
How it is done?
Shyam
How to handle number of request for any view in django? Please help me understand.
Игорь
django-debug-toolbar
Anonymous
I have a filed in my model that is required but i handle it myslf in my model and set it's value.
I have serilized my model to use it with rest framework but it says that field is required. But user do not change the value, I set it.
ie altoutgh it this field is required by databse but it's no meant to be entered bu user, but user should have it.
How can i explain this to my serializer?
Anonymous
Jaickssparrow
Hello guys
Jaickssparrow
Any one has real time python django project
Jaickssparrow
Please let me know if anyone has
Mirco
There are lots of examples by using django-channels online
Jaickssparrow
OKay
Jaickssparrow
Thanks
Ярик
hey guys, does someone know how to export data from django admin to a custom pdf/doc/docx template??
Muflone
Ярик
ty, i'll try