Alex
https://requests.readthedocs.io/en/master/user/quickstart/#post-a-multipart-encoded-file
Metalcode
Pls I need help with geolocation using geodjango.. Gdal exception
Anonymous
I use ckeditor to write and upload images, but I want to display only pictures, how do I do it ?, because the two are united, if {{post.content | safe}} text will appear too, I just want the picture to appear, please help friends
Anonymous
Did anyone worked with selenium in python?
Doragonsureiyā
Did anyone worked with selenium in python?
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 51k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Abhishek Kumar
Hello everyone, i am learning django, going through official documentation i stucked at polls appliction part-4 , here is the link: https://docs.djangoproject.com/en/3.0/intro/tutorial04/, in polls/views.py it showing an error in line : except (KeyError, Choice.DoesNotExist) , and the error is: Class 'Choice' has no 'DoesNotExist' i tried to google it and also tried to use try/except in models.py but failed to resolved the problem. If anyone faced the same issue please reply
inchidi
you can always contribute to improve the docs
Abhishek Kumar
can you share how's your Choice class looks like in your models.py?
https://github.com/abbisk/django-docs/blob/master/mysite/polls/models.py
Abhishek Kumar
yup
Abhishek Kumar
i tried to modify on my IDE as i mentioned above
inchidi
i tried to modify on my IDE as i mentioned above
because from the error message you got, seems like your version of Choice class doesnt inherit models.Model you can try check again
raven
how can i implement notifications on user action like a follow following system in real time . I know it can be done in channels but it's becoming very hard to implement and i don't know how to.
inchidi
how can i implement notifications on user action like a follow following system in real time . I know it can be done in channels but it's becoming very hard to implement and i don't know how to.
first, you will need to create feature where you stores all notification and who is the receiver first (you can use ecisting package django activity stream also) then, you just need to send that notification data to user, you can think about that part later tho
inchidi
the UI made by you or django form (django admin included)?
Bhartiya
How I do email verification using Django?
Juned Khaan
How I do email verification using Django?
It has email field, in Django forms
Juned Khaan
There is isValid attribute when data is submitted in back end
Bhartiya
Can anyone please provide references or site
Juned Khaan
Can anyone please provide references or site
YouTube lecture parwiz farookh 4hrs Django 2 hrs Django rest worth to lean everything
Bhartiya
Thanks lilo for helping me out ❤️
Bhartiya
Jai hind
Indian group? Jai hind
Ashlah
How I do email verification using Django?
You can use django allauth https://django-allauth.readthedocs.io/en/latest/views.html#e-mail-verification
Ashlah
self implemented… just 2 fields (email and password), META class and one clean function for checking existance of an email
You can try to look at Django's implementation https://github.com/django/django/blob/26be703fe679a58bbdccf37a276a9c430ccb29f7/django/contrib/auth/forms.py#L172-L247
Ashlah
It's used here https://github.com/django/django/blob/master/django/contrib/auth/views.py#L44
Ashlah
Sorry bro I didn't understand in this..
You can follow the basic installation here https://django-allauth.readthedocs.io/en/latest/installation.html The default signup process include email verification
Ashlah
Or perhaps you could learn from its source code to implement it yourself
Anonymous
I use ckeditor to upload images in the article, I make two ckeditor in models one to write content, and another specifically for uploading images (photo) This is useful for thumbnails, I want to display it in bootsrtap which is {{artikel.photos| safe}} then the image does not appear, because I created it in style = "background-image: url ('{{article.photo | safe}}');", I'm still a beginner in Css, so how to display it, I have to follow the style of the template,
Fuad
That means: style = "background-image: url ({{article.photo | safe}});"
Fuad
no working
Is the article photo is a link?
Fuad
no
I mean where is the uploaded image stored?
Anonymous
Fuad
i am using folder media
So what about {{ article.photo.url }}
MG
I mean where is the uploaded image stored?
you make a folder in project level..there you will store image and also mention file in setting.py
MG
that is media file
Sh
Assalamu alaykum! I have class Customer(): ..... class Selling(): customer = models.ForeignKey(Customer, ...) .... class SellingProduct(): selling = models.ForeignKey(Selling, ...) like this relationship, how can I get SellingProduct objects by Customer?
Anonymous
So what about {{ article.photo.url }}
i using ckeditor and the uploaded image in the folder media
MG
i using directory media
yeah, then u mention directory name in setting.py also.
Anonymous
Anonymous
Guys pls any php channel anybody can recommend??
Doragonsureiyā
Guys pls any php channel anybody can recommend??
Read the rules before any activity: @PythonRules
MG
you can help problem me, above that
STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ]   MEDIA_ROOT = os.path.join(BASE_DIR, '
MG
MEDIA_URL = '/media/'
MG
<center><img src="{% static "images/manish1.jpg" %}" ></center>
MG
I put media folder under static folder
MG
and in my case media folder name is images.
MG
STATIC_URL = '/static/' STATICFILES_DIRS=[os.path.join(BASE_DIR,'static'),]
MG
that is the code of setting.py
Neo
Maybe this could help @neostonefist
will it work for sql server too
Ashlah
will it work for sql server too
It should be.. haven't try it thou
S
Please guide me I have knowledge of little bit django Suggest me some projects
Dev
any one ??
Baggy ️️
Guys needed small help
Baggy ️️
I am implementing like dislike on a post
Baggy ️️
Anyone already did similar stuff can help me out
Yash
Which lib is convenient for implementing dynamic graph in Django? Matplotlib or chart.js
Yash
or suggest any other lib
Zerihune
I suggest I use packages there is one for this case besides it will save you time
Lionel
Could someone point me to MongoDB telegram group?
raven
can i get testdrivenio course on django channels for free
raven
?
raven
anybody knows any such source?
Anonymous
I did basics on django..... But i have not touched MEDIA images.. what should i do?
Anonymous
has anyone tried to do webstreaming with django!