Mirco
I can create some wallet, no just one
If you use the 1 to 1 field is pretty impossible If you open a shell and try to create one wallet related to a user And then try it again, Django will raise an Integrity Error If not, you are not applying your changes to the database
Peppe
i create some wallets with same profile
Peppe
my model wallet
Peppe
the default clock is 2 hours backward
Anonymous
Is it possible to debug Django in spyder??
Ganesh
How can I use for range in Django template? I am not able to find any proper documentation regarding this
Gomathi
How to use comment form in django??
Gomathi
Not able to find documentation for comments in django
Anonymous
Debug in test.py :)
Ok I will try thanks
Sadra
How to use comment form in django??
So simple. Create a new model for the comments which has a foreignkey field to the posts and keep the comments in. 👍
Sadra
Ok I will try thanks
No problem. Good luck.
Abdalwhab
https://chatapp-container.herokuapp.com
can you help me i have erorr in chatapp
Sadra
Not able to find documentation for comments in django
I found one there. Hope it helps. https://djangocentral.com/creating-comments-system-with-django/
Ganesh
i am returning product rating so i want show stars based on rating in template something like this ``` {% for i in range(0,{{product.rate}})%}<p>star</p>{% endfor %} ```this is example of what i am trying to achieve something like this but templates doesn't support numeric iteration and range right?
Gomathi
Will u share some other resources related to comments in django
Abdalwhab
can you help me i have erorr in chatapp
Chat socket closed unexpectedly.
Sai
Hello how to serve the saved file to django template iam using ajax here
Sadra
Will u share some other resources related to comments in django
It's easy to implement, as long as you read enough about the models and resources.
Sadra
I'm not sure if it needs any documentation or something btw. 😅
Ganesh
It supports somehow but not the exact numeric iteration. Why not try to show the exact rate? For example something like this: ⭐️3.5/5
actually i am able display stars by using js but was just trying to figure out if django looping could do the same without js..
sabari
hi everyone I am working on my django project..i have created a model notification that notifies when new post is added by the user..its working pretty good..but the problem is I don't get notification instantly page need to be reloaded very time to get new notification.. can anyone help me to sort it.
Eng. Mohamed
Hi all medium.com is blocked in my country and I need this article urgently https://link.medium.com/WtJL3WosVfb can someone save it as pdf and send it to me and also If some one has any tutorials of how to use VUE.JS with django formset to create dynamic form, I will appreciate that Thanks
Ganesh
It latterly can.
hey i was able achieve that,do want see the solution ? by the way thanks for help😁
Vinay
Has anyone use both django and Odoo as a web framework, if yes, what make more interesting than another?
Rafael
Odoo has all the features for you out of the box, but often you need to customize and create modules, you can create controllers and a lot of other stuffs
Ganesh
Yeap. Why not. ❤️
https://dpaste.org/SAB9
Rafael
Django , for me, is better when you want to create a thin solution, creating and changing the resource and connecting with other services as your business rules
Gomathi
I want some good resources regarding this topic.. If u have plz share
Abdalwhab
I can try :D
inbox ok.
Eng. Mohamed
install a vpn and open it, or use tor browser, or brave it has tor
Unfortunately, If internet service provider catches that you use vpn, they disconnect the internet and you are under liable
Manish
https://stackoverflow.com/questions/67337706/how-to-use-a-nested-serializer-dynamically-for-two-serializers
Manish
Bounty:- 50 Points
Mirco
Go back studying Django basics then
Anki|Important texts only
I have created a base.html to hold header and footer for my Django based website and extended that to other html pages that I have created. Wanted to add css to this base.html, but getting no luck. I have already tried inline, internal, external all of them to beautify those ugly buttons on header, but they just no doing anything. please help!!
the solution for this which worked for me is in setting.py I had to add : STATICFILES_DIRS=[str(BASE_DIR.joinpath('static'))] then have to restructure my file a bit, earlier it was: "project\project", "project\app\template\base.html" and "project\app\static\css\base.css" , cause i intentionally didnt use period while creating project so project\project then i changed it to "project\static\app_name\css\baseStyle.css" , case when i was having "base.css" it was not working but worked as soon as i changed the name to "baseStyle.css" and also for "base.html" i changed the file structure to "project\template\base.html" hope i was making sense and this could help somebody 😅
Prabhakaran
Django material-admin stopped working..
Prabhakaran
Can anyone help me find why ?
Admin
Hey guys have some question on application encryption. How do you make sure the code is secure in the production environment? What are the industry standards for deploying django based application? Can we encrypt the application?
Ganesh
Hey guys have some question on application encryption. How do you make sure the code is secure in the production environment? What are the industry standards for deploying django based application? Can we encrypt the application?
Create Environment variables for all Key's as for code thats depends upon which service provider do you use for deployment and it infrastructure. That's a different concept as programmers doesn't really have to bother about that as some one will there to take care about security well not sure about other's but that's differs company to company but you should take care of all validation, authorization, authentication, permissions..
Werner
this is my stack
Harish
Willian
Good night members ... Expensive... I need to consume a gRPC API from Python / Django. Has anyone used this?
kunmi_od
Can I don you, I need to learn how to write pseudo codes
Johny
where I can find django 3 course good tutorial
Doragonsureiyā
where I can find django 3 course good tutorial
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hello, Does anyone integrated worldpay payment gateway?
Alikhanov Jakhongir
Hi, what is the best way to generate html to pdf? I have invoice needed to be generated to pdf. I am gonna save the pdf file! thanks for your answers
Anonymous
user.objects.create_user not saving anything
Anonymous
Hi , does anyone knows how to append params in WSGI GET request in django ?? can someone please help me on this
Anonymous
I want to append upgrade=1 at end , like <WSGIRequest: GET ‘data/12345/?upgrade=1’>
Mirco
Hi , does anyone knows how to append params in WSGI GET request in django ?? can someone please help me on this
They are just query parameters You can append from your frontend and access inside the view by using the request object /foo/bar/?upgrade=1 request.GET["upgrade"] ( inside views )
Anonymous
They are just query parameters You can append from your frontend and access inside the view by using the request object /foo/bar/?upgrade=1 request.GET["upgrade"] ( inside views )
That right, its used as the same way , but due to some reason some details is not present in front end so in one scenario i wanted to append this query parameter in url via backend
Anonymous
If i print request object its Meaning <WSGIRequest: GET ‘data/12345’>
Anonymous
But for one condition i wanted to append query parameter upgrade=1 in requst object
Axror
Hi everyone! Please help me. I have been not deploying django website to dreamhost.com. Does anyone have experience on it?
Mirco
But for one condition i wanted to append query parameter upgrade=1 in requst object
don't do it by using the object just use reverse and append the query param
Darta
hi i put html code in database but when i fetch it from database and want to show in my page it doesn't render html code.. how can i do that?
Darta
why did u save html into the db ?!
suppose you have a blog and you put html code in your post..
Darta
|safe
👍🙏
R
It can easily lead to xss if u dont properly validate what html is allowed or not