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
Faraday
Mirco
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.
Mirco
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
cj
Michael the wolf 🐺
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.?
Alex
its not help me, men
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
If needed
goku
Can we connect 3 tables with many to many relation
goku
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">
?
Doragonsureiyā
Saif
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>
Saif
cj
cj
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 ?
Mirco
{
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 ?
Create you model, parse the json and create the instance of your model
Anonymous
you can show me some documention ?
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!
Mirco
Place
so i was thinking to test even my admin panel
Place
what do you mean by custom logic/section please?
Mirco
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')
Focky
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
Ghorz
Idea
Ghorz
Dexter
How to pass multiple parameters in url in version 1.11
Focky
i found this... using middleware and signals
Jatin
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 :)
isa
Abdullah
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
José
Ariel