محمد
How can i differentiate users in a project? I have 3 types of users admin, organizer and participant?
This is a good article on this topic: https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html
Артем
how to convert pdf from docx in django?
Jimmies San
how to convert pdf from docx in django?
https://github.com/AlJohri/docx2pdf
Артем
https://github.com/AlJohri/docx2pdf
so i can do it if i have windows
Артем
but i use ubuntu
Артем
and this module cant convert without windows
Артем
so its error: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed
Jimmies San
libreoffice and subprocess maybe?
Jimmies San
something like https://michalzalecki.com/converting-docx-to-pdf-using-python/
Артем
libreoffice and subprocess maybe?
could you write the function for it?
Артем
i dont get this article
Jimmies San
you can adapt the idea to your use case
Jimmies San
so, basically libreoffice gives you a CLI command to convert docx to pdf
Jimmies San
so you create a function to call it using subprocess
Jimmies San
that’s it
Li
How can i differentiate users in a project? I have 3 types of users admin, organizer and participant?
Use django user group + permissions? Or checkout django proxy model? https://docs.djangoproject.com/en/3.2/topics/db/models/#proxy-models
Артем
no
Артем
so can you type the function which convert doc to pdf using libreoffice
Артем
?
Jimmies San
not my job, here you get help, not the job done. if you need that just hire someone
John
Hey guys how can we exclude only the last object in the query set
John
?? Please help
Jasur
hello, I would like to ask which Field type is correct to use in models if I wanna create a kind of follow func. With this func, user can follow to other users (which are in Users) and the data will be stored like user (user himself) and his follow list followlist= 'users from database' ?
Anonymous
expected string or bytes-like object hello guys. i am getting this error while deploying my site. how to fix it?
Anonymous
Why error coming too many redirect in django?
it solved👌🏻 thank you for your attention
Anonymous
Why error coming too many redirect in django?
i just created a field in module and for got to set nul = True in it. because i did not have data about it in the database before
Anonymous
Why error coming too many redirect in django?
do you mean the redirecting the files?
Anonymous
do you mean the redirecting the files?
No when I am browsing url then this error is reflecting
Yogi
Employees management system in Django??
Enigma
HELLO. I'm trying to create a news website that uses an rss news scraper . i can get the image link but i want to download it on my database and then use it my model , how should i do that?
Anonymous
Hey guys can you suggest me a good project I should made in django to showcase my development skills in my resume?
Anonymous
some provide me good material for Django class base view for study
Charly
some provide me good material for Django class base view for study
https://docs.djangoproject.com/en/3.2/topics/class-based-views/
Anonymous
actually its little bit hard to me understand documentation so any thing else regarding class base view if you suggest me..
Anonymous
can some please tell me how to restore data in postgresql using json file
Doragonsureiyā
can some please tell me how to restore data in postgresql using json file
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Charly
Anonymous
actually I read it but it have very less information may be I dnt knw how to read documention
VBELLO TECH
But I would help u to read the documentation
Anonymous
it will be big help for me...
VBELLO TECH
Sorry ! I wanted to say "it would help u to read the documentation" typographical error
Anonymous
ok thanx
John
is it's possible to create a media library in Django and if yes so how?
John
https://www.reddit.com/r/django/comments/nw0kom/is_its_possible_to_create_a_media_library_in/
John
yes, you can do it as any other web app
so how can we do because Django doesn't provided its as a default
Charly
so how can we do because Django doesn't provided its as a default
as any other app: you code it, add models respresting a media, use voiews to show them, etc
John
or is there any article or video ? i did't find its on google
Charly
or is there any article or video ? i did't find its on google
you won't find a tutorial for each app you imagine, use the basic tutorialnd an use these knowledge to build the things yuo need
John
as any other app: you code it, add models respresting a media, use voiews to show them, etc
so if i need to add image in document so its possible to directly add media from library
Enigma
how can i download an image form another website and store it in database ?
Ghorz
how can i download an image form another website and store it in database ?
Why store image in dB. Link directly or user request to pull it over then store in a folder Add the file location path to db
Enigma
Why store image in dB. Link directly or user request to pull it over then store in a folder Add the file location path to db
i want to store it so if the main website deleted the post i wont lose the image can you help me with storing it?
Rakesh
Hi Folks, I need your help, I want to create an visualisation tools using django where I could plot the graph for pivot data and other graph.. Please help if any tutorial or course is available for free or paid...
Anonymous
anybody knows how to remove models from swagger ui
sabari
hi friends did anyone used tinymce editor with django?
Vetrivel
https://neptune.ai/blog/packaging-ml-models
Doragonsureiyā
hi friends did anyone used tinymce editor with django?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Fredy
I have a question, when creating new apps, it is better to name them in singular or plural, I need to create, category, customer and sales
kuzmich
I have a question, when creating new apps, it is better to name them in singular or plural, I need to create, category, customer and sales
That's up to you Do what you think is right for you but don't forget that it should make sense 'cause you wrote, you write and you will be writing code not for yourself but for the people 😁 make them appreciate your effort That's pretty much all there is to say
Mustansir
Hi I have a bug fixing project of django How do I import django project into my IDE
Deleted
https://stackoverflow.com/questions/67913836/could-not-load-bms-publisherpk-3-140-6-data-too-long-for-column-name-at pls help guys, got problem when transfer data from sqlite to mysql
Deleted
it's hard for Django to transfer database
Charly
it's hard for Django to transfer database
what do you mean with transfer database?
Deleted
what do you mean with transfer database?
transfer from sqlite to mysql in Django
Anonymous
Disgusting
Charly
Anonymous
My django skill
Charly
ok