Charly
The project is very, very big
And still I doubt its not using a models module
Charly
Help is provided on the group, not personally
jūdê
The project is very, very big
Add the models to the models.py file in the app where the models are needed the most or provide the most context
ʜɪᴍᴀɴsʜᴜ sɪɴɢʜ sʜᴇᴋʜᴀᴡᴀᴛ
Can someone tell me how to create a one to one chat application in django rest
Jamie
How to add Bearer token in the header for Apitestcase to test the case
Jamie
Showing {'details': Errordetails(string='Authentication credentials were not provided.', code='not_authenticated')}
Jamie
When I go for test
Pranjal
Enter your token in place of token_id and add an Authorization header in your request
Kumar Shreyansh
Hey guys, i tried various approaches on implementing multiple checkbox fields, from modelform, Many-to-many field, and using a package called django-multiselectfield2, template rendering
Kumar Shreyansh
I am 90% there. When I click on the edit button on the table, the frontend should populate the create form with the data just like how it happens in the django admin on its own. I am not sure how to do that. The approach I took was passing an instance of the model object to the model form, and then trying to render that model form, and alternatively, fetching the data using the PK from the view using jquery ajax and then populating every field individually, but nothing seems to work. The last 4 fields are: checkboxes indicating (python, angular, java), and a dependent drop down with three fields: country, state, city. Please help me on how to approach this problem. Please.
Kumar Shreyansh
Yup, already did that. Didn't work properly.
Shreyas
Can anyone guide me how to make a authentication app using react as frontend and django as backend
Dullah
I am using forms.ModelForm
Noah
Hi guys anyone have authentication jwt API
Noah
and i need to build internal API any help !
Doragonsureiyā
and i need to build internal API any help !
These single steps will help you a lot: 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
Vitaly
Got a question. Is there any way to bulk_create model with m2m field? Long story short: I need to make admin json import for Order model. So my sublimed code is: data = json.loads("file.json") orders = [Order(user_id=item.pop("user"), **item) for item in data] Order.objects.bulk_create(orders) But I've got products - m2m field on Order model. It requires products.set()
Vitaly
There is a "through", but it is not valid here (as I think)
KingFx
Wanted to devlop a multilanguage app Does django can handle that
Anonymous
hello I wanted to integrate kafka into django. and how can I receive the message in the consumer? or where can I integrate kafka into django?
Supra
I'm having problem with django, it can't find static files after it was deployed... on my computer everything works well
It only works in dev environment. Django does not serve static files in production. You will have to use something like whitenoise to serve static files.
Muflone
It only works in dev environment. Django does not serve static files in production. You will have to use something like whitenoise to serve static files.
Static files have to be served from the web server, not from a slow and resources demanding python process
.
Where I can deploy Django application freely ( i used MySQL as a DB)
Supra
Where I can deploy Django application freely ( i used MySQL as a DB)
PythonAnywhere has a free tier that uses MySQL. But I believe there are some limitations. Please do check their website.
Supra
Hello folks. My delete view is not working. When a button is clicked from a template, the url is redirecting to the update view instead of the delete view. Please see code below for reference. I have also provided details of the button being clicked and the log appearing in console for reference. All other views work perfectly, except the delete view. https://pastebin.pl/view/e8fac616
NARASIMHA
Hello, I am using s3 to serve media files.. During file.delete() i am getting access denied.. The aws keys, cred have the permission to delete the objects in s3
Anonymous
Use the first two links I sent
Imean am not only talking about annotate and other i want for whole is there anything like that
Anonymous
Can anyone dockerize django application ?
Supra
Employee.delete()
I have commented that out intentionally. The problem is, the url is going to the update view and not to the delete view. I am unable to figure out why.
Srihari
Django orm cache ?
Srihari
How to optimze db query
Hoshyar
How to optimze db query
Index your table
Srihari
After index also taking time
Srihari
Redis ??? Django
Kumar Shreyansh
Hi all, if I set the value of form fields through ajax call for updating them, should I pass the values to django backend through ajax call as well? Rn, when the form is submitted there is no intermediate code handling the event, it passes directly to the view and a new object is created in the model But if I populate the form with existing values from the model, and call queryset.update() on it, it won't update. It also gives status code of 200 18043 My backend is django with mysql
Kumar Shreyansh
Please help
Georg
is there a central method in QuerySet returning data for other methods like filter, exclude, all and others ?
Georg
no but you can write method with custom manager
yep, but I need to override standard QuerySet to reach my goals
Georg
no, managers I used already. That does not my match
D.
I need project to to do
Anonymous
Anyone suggest a better ecommerce project
Doragonsureiyā
I need project to to do
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Doragonsureiyā
Anyone suggest a better ecommerce project
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
AY AN
here are views for stripe: https://codepaste.xyz/posts/mufbkcqWJBzsDwrhPgEF and here is source project that i want to clone and setup: https://github.com/Skitsouprenup/mycrm-vue3-django-bootstrap5 how do i setup .env file and stripe using stripe-cli? I ve been trying for 3 hours and dont get the idea i think this problem is pretty easy for anyone who has worked with stripe before
Temirlan
Tell me how to solve the problem, I'm trying to send a post request for user registration using Djoser , the post request works, but the user's first and last name fields are not saved in my database
Temirlan
Request { "email" : "b@cnewxs.com" , "first_name":"Ali", "last_name":"A", "password":"12345678KT", "re_password":"12345678KT" } Answer { "email": "b@cnewxs.com", "id": 7 }
JairamJavv
I am working with dynamo db. I need some help in working with dynamo db?
Doragonsureiyā
I am working with dynamo db. I need some help in working with dynamo db?
No one can help you until you explain your difficulties.
Temirlan
You can use django-allauth instead of djoser
thx, but i just forgot write REQUIRED FIELDS🤦
Ewuru
Am having issues with my jquery after making some changes it does not reflect, even after renaming the javascript file, it still look as if the file is there like giving me old response after updating
Ewuru
Static files on django
Charly
Static files on django
And is not the cache of your browser?
.
Static files on django
Ctrl + F5 on windows. That’s a common situation if you do JS in static files.
Dlight
Hi ya'll . Hope all good . 2 quick question 1. When user Signup with Google Signin ( Django alluth ) with for example email aaa@gmail.com If he try to Sign up with the same email (aaa@gmail.com) with Django authenticate system , We have a duplicate user ? How we can avoid this ? 2. I have a CustomerUser and Django Alluth and their Template interfere , how can make them one Page . ?
Chandra
We can add validation for this
Doragonsureiyā
We can add validation for this
What are you talking about?
hamid
hello i have a problem to solve, in my django project i makemigrate and crate with out any problem done but when i want to migrate say No migrations to apply and did not change in database some body now why and sorry for english
Pavel
Can anyone guide me how to make a authentication app using react as frontend and django as backend
Hi, I doing same in my PET project, so I use jwt token, Bearer. You can google how to do this in DRF by djoser. Also in react, you will get token by request to api, store it, and then use this token for authorized request to api
Анатолий
hamid
Have u done any changes to Model? Before last migration?
no i do it for frist time and when not done i delete migrate and table on data base
hamid
i dont now why but i did it agian (for 10000000 times) and fix
Dlight
no i do it for frist time and when not done i delete migrate and table on data base
If you haven't changed anything In Models or didn't create a new model why you want to migrate ?
hamid
If you haven't changed anything In Models or didn't create a new model why you want to migrate ?
no i guess after i run command makemigrations now i have this fucking problem again