Place
https://del.dog/sithilyrry if someone would like to help me please
Faraday
Hello I want to know if I can import python modules into Django?? The module I want to import is pyshorteners.. Thanks
Mirco
Hello I want to know if I can import python modules into Django?? The module I want to import is pyshorteners.. Thanks
Import like you import it without Django Django is Python, nothing more or different
Faraday
Thanks
Doragonsureiyā
Thanks
You're welcome! 😊
Anonymous
Sheshadri thank u so much it worled
Michael the wolf 🐺
Hi. Is there any example of redirecting user to another url , and he do some stuff like changing some details and he comes back to the previous url.
Michael the wolf 🐺
Nothing special, just use redirect()
Yeah i figured it out but could you help me with getting full url of current site so i can pass it as next parameter so i can get back to the original site
Rahul
I have 5 users in User table.. and their profile details in another table in users_profile. How to set permission that no one can see others profile data..... When i hit the url from Postman like.... 127.0.0.1/users_profile/1 I can see the users data by changing url 2, 3,4 anything... Even i am sending jwt token with headers too.
Place
hello everyone, do someone know how to change the collection/table name in the django-admin panel (or what to change in the meta) please? i used db_table but it delete some configurations like the auto increment id from the schema of the table
Alex
hi everyone, who can help me with problem: Invalid password format or unknown hashing algorithm.?
Doragonsureiyā
hi everyone, who can help me with problem: Invalid password format or unknown hashing algorithm.?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Alex
its not help me, men
Doragonsureiyā
its not help me, men
Try harder until you get what you want! don't give up! 🦾
sp
i have a function and from that function i am calling async function how to log any exception if any error occur in that sync functio
Unknown
Can anyone tell me process of image upload in django
Vaibhav
Can anyone tell me process of image upload in django
Simply use filefield and give save to path in parameter
Vaibhav
If needed
Unknown
Simply use filefield and give save to path in parameter
All thing is done path also show but image is not showing in browser
goku
Can we connect 3 tables with many to many relation
Mirco
Can we connect 3 tables with many to many relation
Many to Many already involves 3 tables One table is for the foreign keys
goku
Many to Many already involves 3 tables One table is for the foreign keys
Excluding foreign key table can we connect 3 tables
goku
Like K want to connect college,meal, favourite
goku
Tables
goku
Or should I use one to many approach?
Mirco
you need to get a book about databases if you wanna learn the right approach if you give more details, we can give u a hint but u need to study
Saif
Can we have a dynamic name(passed from view.py) of a div tag? Example : <div class = "dynamic name passed from view.py"> ?
Saif
Yes
How?
cj
How?
just use the context dict and render the variable on the template 🤷🏻‍♂️
Saif
I used the django jinja template. i.e., {{name}}. But it doesn't work. Example: <div class="{{ name }}"> .......................some html code........... </div>
Akhil
Anyone can give some code resources or examples, to use dropdown select option filters along with pagination ?
Anonymous
{ id: "160", name: "Marmaris Yacht Marina", map: "36.819282,28.308226", dlm: "104", ayt: "339", bjv: "140", adb: "255", ist: "0", saw: "0", cat: "Resort", active: "1", tag: "POPULAR", _order: "6", area: "0", calc: "1.16", il: "48", ilce: "1517", text: "Marmaris Yacht Marina", counts: "2,792", price: { dalaman: { 1: "68", 2: "68", 3: "68", 4: "68", 5: "70", 6: "70", 7: "78", 8: "78", 9: "78", 10: "88", 11: "88", 12: "88", 13: "88", 14: "88", 15: "88", 16: "88", } } },Hellow guys is my json how can save to my django model ?
Anonymous
you can show me some documention ?
Mirco
you can show me some documention ?
Google is over there for you Just type Django create model from Jason data
Place
hello everyone, i barely finished one of my first django projects, and i would like to test the admin panel (i already done the api tests) but i don't know how to test it proprely, well i know my question is a bit "too open" but for example for my models i wrote some unit test to test the creation of a model (with the nameofthemode(data) and then assertEquals()) but i would like to know if someone can help me with some exampls of what to test in the admin panel ? (i searched on google a lot and i don't find any answer) thank you for your answers!
Place
There's no need to test the admin panel if you did not add any custom logic to it
ah really, i thought it was too professional to make unit test in everything you put in your code
Place
so i was thinking to test even my admin panel
Mirco
ah really, i thought it was too professional to make unit test in everything you put in your code
Admin panel without any custom logic added by you is already tested If you add some custom section / logic you need to test it
Place
what do you mean by custom logic/section please?
Mirco
what do you mean by custom logic/section please?
You can add custom stuff to the admin panel, custom forms, custom templates
Place
You can add custom stuff to the admin panel, custom forms, custom templates
oh i didn't add custom template for the moment, i added some custom filters using some external moduls
M
How can i restrict user to login in my site at only 1 terminal
M
Like is user1 logged in one pc no one can login with user1 on another pc
Khumoyun
Hello, project: Django Question: How to save article images to another table? class Article (models.Model): title = models.CharField(max_length=255) image = join Document id ???? class Document(models.Model): article = models.ForeignKey(Article, on_delete=models.CASCADE, related_name='image') name = models.CharField(max_length=255) image = models.ImageField(upload_to = 'images')
appu
any body know database routing
appu
plzz help me
learner
Hi, My company has a server which has nearly 150 database(on a single server). I need to display output of one Select query to dashboard. I have implemented dashboard front-end via django. How can I connect to various databases in back end.
Ghorz
Idea
Dexter
How to pass multiple parameters in url in version 1.11
Focky
Like is user1 logged in one pc no one can login with user1 on another pc
https://dev.to/fleepgeek/prevent-multiple-sessions-for-a-user-in-your-django-application-13oo
Focky
i found this... using middleware and signals
Abdullah
Hello.Today, I want to introduce a twitter clone project that I just finished. Vuejs in the frontend of the project, nodejs and express in the backend, mongoDB on the DB side. The project has the most important features of twitter. https://github.com/Abdullah-V/MEVN-stack-twitter-clone If you like a star, you can make me happy :)
Ariel
I'm working with django-celery-beat on local Docker machine. When I'm changing the values of the tasks on the run its seems to have no affect. My guess is the system don't sync..is someone had the some problem?
Forouzan
Hello. how can i create a navbar in single page with django, that shows other section of the same single page ?!?!
Denis
Hi there, does anybody know how to exact custom form data from request.POST to FormSet by using modelformset_factory?
Alex
!eng
Alex
!ol
Doragonsureiyā
Python groups in other languages: Amharic @python_amharic Arabic @arabipython Azerbaijani @azepug Chinese @pythonzh French @python_francais German @pythonde Hebrew @pythonisrael Indonesian @pythonid Italian @python_ita @pythonita Kazakh @python_kz Persian @pyfarsi Portuguese @pythonbr Russian @ru_python_beginners @ru_python Spanish @PythonEsp Swahili @python_eafrica Turkish @python_tr Uzbekistan @python_uz
Girish
Hi all, I want to build an webapp using django. It's a restaurant table booking website, I want 2 users. One for user and other for Restaurant partners. (I want a non admin user table). And I want to add register and login for the same. Please help.
Yogesh
I'm working with django-celery-beat on local Docker machine. When I'm changing the values of the tasks on the run its seems to have no affect. My guess is the system don't sync..is someone had the some problem?
This is because celery generate pid and schedule file when it starts and later use that file. So when you are changing that value file remains same and there will be no change.