Александр
Do u use any post method in form ??
I just created it in models.py
Karunakar
If yes you can use that post method to get request.get('name_of_entity') and create an object for the cart class in that views.py and save that so it get into db
Karunakar
Yes
Karunakar
I think we can't send pics here check ib I'll send u the flow
Abdulkhaliq
Hi all. I made a website in Django, started making scripts in JS, how can I write to a database from JS? For example, the user clicked “add item to cart”, and so that an entry was made in the database?
Implementing a cart functionality in a Django web application with JavaScript involves crafting models, views, and templates in Django, while leveraging AJAX in JavaScript to manage cart updates without necessitating a page reload. On the Django side: 1. Models: Establish a model for the cart and its items. 2. Views: Develop a view that manages cart additions, removals, and item retrieval. On the JavaScript side: 3. AJAX: Employ AJAX to facilitate the addition of items to the cart without triggering a page reload.
AlanCcE
Hi everyone, it's allowed to share personal, Django related, OSS projects here?
AlanCcE
I'd read them, but they are the same as the Python group and in there they say that u need to ask permission in meta group, here doesn't seems to have that so i'm a little confused about that...
Roshan Rajak
assume there is 20 models in single app. but in admin panel ( domain.in/admin ) i want to split model App1 ( with 15 models) and other 5 models with App2
Roshan Rajak
So you use different Django apps
no, created packages inside single app
Charly
https://docs.djangoproject.com/en/4.2/ref/applications/
M. Hossein
In Django, I want to be able to manually access redis. For example, I want to save key-value pairs by myself. Retrieve them. Set expiry time and so on. What should I do?
Aditya
Bro, Can some one provide me a project on Fraud application detection
Charly
Bro, Can some one provide me a project on Fraud application detection
No, because: - This group is not for sharing full projects - We don't have the requirements of your project - A project like that involves more than just Django
Roshan Rajak
These are apps
https://telegra.ph/file/6ec86c6d31b2611eba3bb.png this is my project layout
Charly
Okay, would have just said no
Why do you ignore what I told you?
Aditya
can I use google_play_scrapper in django?
Charly
can I use google_play_scrapper in django?
You can use any python package. But it's not a good idea to run long processes on a view you may need to do it in a background process.
Aditya
yes I got it
Saud
Is anybody have a knowledge of django cms
Sebastian
Hey guys, have you ever regretted using types with MyPy or any other in a Django project? worth it?
Aju
Create a django DRF dictionary application Table: dictionary Fields: label - represents word description - represents word meaning search_count - count to represent how many times the word is searched. Implement api to allow following features in the system: a) User should be able to add record to the dictionary. b) User should be able to search a word in the dictionary (partial words should also function, expecting get call with query param for label search)
Aju
Anyone pls share the code
Doragonsureiyā
Anyone pls share the code
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Doragonsureiyā
Anyone pls share the code
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://hastebin.com, https://nekobin.com, https://dpaste.org (or your favorite one)
Anonymous
Hello everyone i am looking to deploy my Django project on Aws with the help of ECR & ECS if you have any idea about deployment please help me
Mirco
Hello everyone i am looking to deploy my Django project on Aws with the help of ECR & ECS if you have any idea about deployment please help me
You have to push the image in ECR, create a task definition attached to a service that you have to create before And that's it The entry point of your docker image will be the stuff that will be ran
Anonymous
If is there any blogpost , youtube videos regarding deployment please share Thank you
Anonymous
I am new to AWS trying to deploy my own project
Mirco
Allredy I am tried but I am getting errors
Without seeing errors is hard to help you
Anonymous
Okay thank you for your response I will try it
Phrêsh
Hi guys. Does anyone have a good tutorial or resources on how to implement social authentication in Django rest framework, specifically google, Facebook and twitter
DisboardTetta
Hello my friends. I have a model and a form associated with form.ModelForm, how can I call this form in template?
Nir
Hello people I have problem with connecting my psotgresql databases to pgadmin I'm using fedora I followed the documentation , and tried to connect to the server with username and password it said authentication failed indent error for user Same with Jango Then I changed the method from indent to md5 and restated the service still didn't work I didn't for ipv4 btw The. I changed all methods to md5 after that postgre service couldn't start I want to know what's wrong and get it working
Prathmesh
DisboardTetta
What if this form used on many pages?
Prathmesh
Do same for every page view method
Prathmesh
You can use it for multiple pages
Aza
which linux distr u recommend for backend devs?
Muflone
which linux distr u recommend for backend devs?
that one you're capable to use
Aza
that one you're capable to use
for beginner user of linux)
Muflone
for beginner user of linux)
so the question is what distribution could you suggest me as beginner? fedora or something like ubuntu/popos to change it as quickly as possible
ㅤMeraj
Do any of your friends know about the multi-proccesing in Django? For example, I want to do a lot of work on the server for each user who sends a request, but I don't want to delay them and cause problems. simultaneously, what should I use?
Александр
I suffered for a long time, but I learned how to POST to a database with AJAX Jquery, but I encountered a new problem: On my page there are product cards with “buy” buttons, with the help of JS I learned to track which button the user clicked, but with Jquery I don’t know how to track, how to implement this?
Александр
also jquery is not needed to post requests
I'm creating an AJAX POST and giving it parameters via jquery
Muflone
I'm creating an AJAX POST and giving it parameters via jquery
ok, but you don't need Ajax or jQuery to do that
Александр
ok, but you don't need Ajax or jQuery to do that
I haven't found any other way to send a request without reloading the page
Muflone
I haven't found any other way to send a request without reloading the page
JS fetch API are native in JS and integrated in any modern browser also native XMLHttpRequest can do POST requests
Denis
Hi all. Who has read the book Django 4 in examples, please help me in chapter 9 with the online store we are installing the easyprint library, I have been suffering for 2 days now, nothing wants to work, when I try to start the server it gives the error OSError: cannot load library 'pango-1.0-0': error 0x7e. I’ll tell you straight away that I installed GTK, the latest version, easyprint too, I tried to install pango (it still doesn’t work), I tried different versions of easyprint up to 53.0.0, I googled it, asked ChatGPT (but he’s a fool as always), so you’re the last hope , thank you in advance
Denis
which OS and version?
unfortunately Windows ;), library version 60.1
Muflone
oh ok have fun with that
Denis
If it weren't for Windows there wouldn't be any problems 😂
Denis
oh ok have fun with that
Well, maybe there will be an equally unfortunate owner of this wonderful system and will help
Muflone
unfortunately GTK is not windows friendly at all, most of the builds are old
Denis
unfortunately GTK is not windows friendly at all, most of the builds are old
I saw in the guides on YouTube that they had GTK and the library worked, the version of the library was 52.0.0 and gtk 3.2.4.23. What do you think, if I install these versions on fresh Python, are there any chances of success?
Denis
GTK 3.2 is 12 years old you'll have a bad experience, but cannot tell you if it will work.
Got it, I'll try. It's sad that this is the situation, thank you
Muflone
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html have you checked the official documentation?
Muflone
if Weasyprint is what you were looking
Mahan
Hi, I would make a category in Django I want to do it on the show site but don't you have any comments?
Muflone
Django doesn't show things, you have to create the webpage templates to show things
Anonymous
Pls how can I pull pending endpoints
Charly
Pls how can I pull pending endpoints
What do you mean by pending endpoints?
Anonymous
I want to create endpoint to pull all pending appointments in my app
Anonymous
Thanks pls waiting in anticipation for any feedback that can help me thank
Charly
I want to create endpoint to pull all pending appointments in my app
So what's the issue? Do you know the basics of Django like writing views and queries?