.
Sagar
cj
Adithya
Adithya
Adithya
So I want seperate tables
By creating 3 diff tables
How i should use django authentication.??
cj
Adithya
Okay bro
Sagar
Amit
I had questions regarding debugging django project
Amit
Like how can we know from network tab in inspect page
Amit
Which file i have to change
Amit
Which api particular api calling
Anonymous
Who is using django 4 example ebook? Is that still a good choice to learn?
Tushar
Hi guys
I have created the tables successfully but when I am trying to save the data i am getting an error .
Error:
Table user_regustration has no column named password
Tushar
How can I debug this
Charly
Tushar
Yes
Tushar
I am able to fill the values in django administration
Tushar
In migration tables are their and password is also mention in 0002_
Сантино
Hello guys
Please am new to Django. Can any one help me with Official Django Tutorial in case:
was_publish_recently?
Doragonsureiyā
Mr
Hi everyone I need small help regarding celery
I'm using multiple asynk worker configured with django, In those workers I'm using celery with sqs, but all the celery are listening from different sqs brokers. However, when calling a task from one broker, it is received by all the other celery, even if they have different sqs queue in their brokers. Any idea why this is happening!
Here is how I've specified celery in my settings:
BROKER_URL = sqs://ap-south-1.queue.amazonaws.com/842****6651/queue-worker-1
CELERY_RESULT_BACKEND = None
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Asia/Kolkata'
Влад
Is it possible to change the websocket connection in js without reloading the page? I make tabs, changing which the url changes and the websocket rout should change
Doragonsureiyā
Kareem
Question.. there is an admin site where I can see it
If I put my website on server live, in url i can put /admin and access it? But this should only be accessible by admins not everyone how can I prevent it.
Kareem
And also how can I protect my website like improve security for it
@yshn
Hi guys i m learning django, and working on e commerce website.
While adding static files, its not loading. Static files including image folder , js ,css
Please help me!;
Bharathi
Hi every one
Bharathi
I tried logged in using otp.. But I got error like Anonymous user object has no attribute _ meta
Bharathi
This is my code
Nurus
Hello everybody,
I receive data of file in post method
When I use print(request.POST) in views
Data looks like:
{['Data']:['']}
But how can I get the data to save in file
Kene
Nurus
You don't access files via request.POST; you use request.FILES instead
It's empty but POST has data
This is my upload command:
curl -i -X POST http://127.0.0.1:8000/upld --data-binary @file.jpg
Python:
HS= {'Content-Type':'application/x-www-form-urlencoded',}
with open('a.jpg','rb') as f:
data = f.read()
requests.post('url',headers=HS, data=data)
How can i recv and save a.jpg in django?
Harry gorilla
Whats the best way to load js files in django? I have tried various methods and still did not work for me.
This is what i tried:
https://stackoverflow.com/questions/33771503/django-javascript-not-working-when-in-an-included-template
Илья
Good evening, help me pls🙏
How can I save information in database, which I wrote down in manage.py console ?
Charly
Arshiya
Hi guys
My project has a profile page for each user
I want to redirect user to his profile page after log in
But the url is like
/pics/username/
How can i do that?
Before log in i dont have access to username
So i cant redirect to that page
What should i do?
Riyad
Arshiya
Riyad
Илья
Lui
How work <int: name> in url file?
Qureshi
Hello please help me add to cart how to django you know please me
IZUKU
I want to deploy deep learning model on cloud
Is there any free hosting platform to host deep learning website for free
IZUKU
Kareem
I want to use mangoDB with django, I know how to add it in databases in settings.py
But my question is how can I write queries in views.py in mango?, I only used postgres before that's all I know
Doragonsureiyā
Kareem
Oh okay.. so what's best database for Django for production if I want to deploy a web application on server?
IZUKU
...
Postgre
When i deployed my project what is the command for make database postgre and not give me error when deploy in render
Kareem
Satya Anurag
hey, I want to host a django website but deliver the media(mainly pictures) from gdrive. I also searched about it but everywhere there was gdrive public sharable link.
I'm facing the issue that this link can be grabbed and downloaded by anyone. What I want is first authenticating my gdrive in django and then delivering the image in the website. so when it is view sourced, it cant be downloaded
IZUKU
Satya Anurag
ok but if someone gets the embed link from view source, then he can download it or opening the image souce in new window. I want the image to be only opened in my website's page. how can I do it with django
Satya Anurag
some kind of auth i guess in django...like if image belongs to this dropbox/gdrive account then only show it in browser
Kene
Satya Anurag
Still in the webpage there would be the link of image naa...so by clicking it we can get the original source
Kene
You may want to create a proxy between your django app and the gdrive API
Afshin👀
Hello how can i import pic in django for shortcut icon.
Afshin👀
Satya Anurag
IZUKU
Kola
why bootstrap does not import files and there is a 404 error, the root of the file is correct
Вячеслав
Hi. My db has something like this structure: https://dbdiagram.io/d/63ea3785296d97641d808378
So users have links, links have logs, logs have field status as enum.
I use DRF and the point is to get users queryset based on their last log (actually on its status field)
At first I thought that I can iterate on each link of user, then Log.objects.filter(link=link).last()
But it obviously is very slow method.
Is there any way to do such filtering without for loops or maybe more efficiently?
Kene
Kene
Or you want to get the latest log of a user?
Вячеслав
Вячеслав
Actually, I think I solved this problem now with creating field last_status on Link object and changing it with signals after every create/delete of Log.
But I would be glad to hear other ideas if they appear
Jagadish
Jagadish
Might work
Yagnesh
Hi, I'm trying to work with REST APIs using (DRF) and Websockets. I have Dockerized the application. The application is fully functional on my local machine docker. But when I push it to the prod server and deploy the same, only REST APIs will work, not the WebSocket. Can anyone review my code? Sharing a few files here for better understanding.
Yagnesh
https://codeshare.io/OdRVEW
Yasin
Hello everyone, I like Django and I gain experience day to day. I plan to deploy my projects now. At the beginning there wont be much traffic so I wont need resources. What do you use for multi sites? Should I use multisite feature of django or run them seperately?
As a second question, is openlitespeed django safe for deployment? If so, I will use it as base.
Mukhil
how can host django project in  local pc  ?
Ubuntu os