8 € ∆ $ "|"
Anonymous
do I need to know javascript to mess with Django Channels? I've been in the doc and it looks like half the code for an online chat is javascript
Wang
who have tutorial for django register account verify phone number code
Mirco
this is not working
Here u go @react_native_en
Wang
U mean 2Factors Auth ?
no, when someone register account of django site he will receive phone sms verify code
Mirco
Yup
Mirco
Use Twilio APIs for sending code via sms
Wang
Use Twilio APIs for sending code via sms
i know the sms service, but i am beginner
Mirco
Follow Twilio tutorial and try to understand and learn
Wang
i need tutorial to guide
Mirco
Have a look here
It's a step by step
Mirco
And obviously study Django docs
Wang
i already read a lot tutorial, they need ajax
Mirco
Read the link I've shared you then you can give feedbacks
Mirco
Yw 😀
inchidi
Have a look here
uh really nice code highlight design there
dhelbegor
hello guys can some one help me with a "for" logic? in my database I have a lot of massive data, what is the best approach to get the values from this data? use a for or a map?
Anonymous
what is it like to have an API on a medium site? Things that involve database and everything else, for example a blog post that will be available through API, people use "normal" django to put blog posts, or simply use API for everything and display the posts on the blog itself through the API? I'm going to read a book about it to see more about how it works. But the question is more because it seems to have two ways to use the API (use for others and use on the site itself, rather than displaying the data without the django rest)
Anonymous
mm
Anonymous
how to add username in path to upload files?
Anonymous
ex: upload_to='/media/profile/<username here>/'
Anonymous
oh, i find
Mirco
oh, i find
💪💪
Anonymous
is correct? def user_directory_path(instance, filename): return f"/media/profiles/{instance.user.id}/{filename}" ...upload_to=user_directory_path)
inchidi
is correct? def user_directory_path(instance, filename): return f"/media/profiles/{instance.user.id}/{filename}" ...upload_to=user_directory_path)
yes, use instance.user.username for username, but using user id like you did there would be better since username could be changed
Anonymous
hey, django debug toolbar not appears in the site (/blog/) Can anyone see something wrong? https://github.com/marcosroot/new-blog
Anonymous
i using settings.dev
random
Hi guys, how shouid i make backgroud tasks(smth like cron)?
Leonardo
Where can I find django teachers? Is there any platform that offers this kind of service?
George
Where can I find django teachers? Is there any platform that offers this kind of service?
There are courses. But i advice you to take the official tutorial if you feel confident. It is really complete.
Михаил
Hey guys! Need help with django-mptt. Is there a way to display TreeManyToMany in a recursetree?
Михаил
P'xp; zxc mbt4mdrtumkkot5kxde'
Михаил
[kl
Михаил
d;s/vp]jo3[]opopc]oo[]o'spox[cvop[0px[
Mendel
P'xp; zxc mbt4mdrtumkkot5kxde'
You fell asleep on the keyboard or what?
Михаил
I have a party with little girl
Михаил
ku😲
Михаил
keyboard exploring
Manish
class SomeAdmin(ImportExportActionModelAdmin, SortableAdminMixin):
Manish
import export working but sortable admin not working
Manish
if i put sortable admin befor importexport then sortable working but import export not
Manish
in admin.py
Manish
any solution to make this work
Ayush
Ayush Kumar: Hey guys...I need ur help to scrap the captcha..I tried scraping using opencv but its not happening..can you help me with the piece of code or any solution to do it.
Ayush
Okay...I have posted there also..I thought to give a try here also..✌️
Mirco
Okay...I have posted there also..I thought to give a try here also..✌️
It's Python related question not Django, so we'd like to keep conversations on topic
Ayush
Okay...Got it.. Thanks..😀
Mirco
any solution to make this work
Mmm imho it's related to Python MRO, so u probably have something in those classes that hide their main goal Read here
Вадим
Guys. How to run c code with subprocess. I have already do that, but stdout was empty. P.S. sry for my English
Shubham
Hello guys I have basic question over Django REST
Shubham
I know the concept of serializer , but how serializer work in flow, i mean to say in Django url- view-html ,,,
Shubham
This is the pattern in such way how serializer work?
Anonymous
Hello
Anonymous
how do I inject a second model inside a detailview?
Anonymous
Hello all, I am working on a Django based project which uses Django (v2.0.4) in Python 3.6 installed Ubuntu system. The problem is, when I select permissions for the group, I get multi-select field but I do not want that and in place of it, I want to show permissions available for the groups as checkboxes so that User could check/uncheck permissions easily from there.
Anonymous
Here is the link of question on StackOverflow: https://stackoverflow.com/questions/54215295/how-to-change-django-admin-group-permissions-multi-select-options-to-checkboxes
Anonymous
Any help/suggestion would be appreciated.
Nithin
Does blank=True in a model has any significance while using drf?
Nithin
Yup, why not ?
In django docs it is mentioned thta blank is used for validation in forms
Nithin
Do drf serializers take bank into consideration?
cj
Do drf serializers take bank into consideration?
blank and null yes, because it's in the model level
Nithin
blank and null yes, because it's in the model level
Model level? From what I understand null will act on model level (set null constant in the db). But blank is implimented in the model Form/Serializer
Anonymous
how to make a portable django web application on a usb drive???