Ghorz
Can somebody help me ?
Explain what you have done and the challenge you face with code using pastebin
lucifer
The thing is that we were given to choose a open source project and we had to change the backend of the project to django. So we did all the thing but we are facing trouble while logging in user. User is getting logged in but session is not being created. Like when we refresh he logs out.
lucifer
Let me share the views
pranit
I have create one django app using mssql db
pranit
Below is error we are getting on azure when user update any record DatabaseError at /insertdata_industry Execution failed on sql: SELECT [Id], [Datayear],[Country] ,[Market],[Currency],[SubcategoryOf],[Category],[Category_type],[Carbonation],[Channel],[Measure],[Data] FROM ie.[dbo].[df_industry_newdata] where [Country]='Algeria' ('08S01', '[08S01] [Microsoft][ODBC Driver 17 for SQL Server]Communication link failure (0) (SQLExecDirectW)') unable to rollback sometimes it's working fine and sometimes it's throwing above error can anyone pls help me out
lucifer
Login view is at 257 linr
Axror
I'm using CustomUserModel, whenever I try to acces it's attribute, It returns django.db.models.query_utils.DefferedAttribute object at 0x0000... How to make get it in human readable format?
Amit
How to fix nested fieldsets in django admin page
Suganesh
Hi Guys, I am developing web application for Analytical Dashboard like (Power BI/Zoho Analytics Tools). In this project User need to import data from datasource like server,local,drive not in Model. Is it Possible in Django-analytical?. Request your suggestion.
Alexey
hey how can i send notifications to telegram via django?
Megh
i am getting following error start with Exception happened during process of request from ('127.0.0.1',58451) end with ConnectionAbortedError : [winerror 10053] An established connection was aborted by software in your host machine
Megh
please help
Shreehari
Hey guys how should my approach for developing APIs be for the below problem. I will have category and sub category. For each category there will be n number of sub categories. Based of category and sub category, few questions will be asked for the user. Please help me with this. Iam using python & drf
Shreehari
Please suggest some efficient approach
Anonymous
yes, obviously it changes
Suganesh
Hi Guys, I am developing web application for Analytical Dashboard like (Power BI/Zoho Analytics Tools). In this project User need to import data from datasource like server,local,drive not in Model. Is it Possible in Django-analytical?. Request your suggestion.
Vxvek
Is there any way to iterate list inside a dictionary?? my code : http://collabedit.com/jgqm4
Jimmies San
Right @JimmySan
so, you can definitely do it because with python you can read/write/whatever files from/to everywhere
Jimmies San
but still you want models, because you need a reference between the app and the file source link
Jimmies San
the data will be not inside the database in this way, but you need a database to keep these references
Jimmies San
@pyflare am i right? fix me if I am saying something wrong 😄
Jimmies San
Hi Guys, I am developing web application for Analytical Dashboard like (Power BI/Zoho Analytics Tools). In this project User need to import data from datasource like server,local,drive not in Model. Is it Possible in Django-analytical?. Request your suggestion.
so, to finish my answer: you can do it with python/django. i don’t know django/alytical, never used, but I think you can do it because its just a package built on those technologies… so ...
Michael the wolf 🐺
Hi , does mod_wsgi from pip supports both python3.5 and python3.6 ?
Michael the wolf 🐺
The current one ony works with py3.5
Jimmies San
looks like
Vxvek
In django template can we iterate list inside a dictionary?
Vxvek
my code : http://collabedit.com/jgqm4
Vxvek
Value is list of names
Jimmies San
Value is list of names
nope, i mean key, value in dic
Vxvek
That I tryed but it's like name = Roy, Jhone..etc Age = 36, 42..etc I'm expecting output roy 36 his details after that next person
Mick
How to use wildcard sql search query like " select * from student_table where student_name like "%s%"; " on django project database?
Vxvek
nope, i mean key, value in dic
Sir it's list inside a dictionary, name : listof name, age: list of age..im expecting to get output like each person details
Vxvek
check dict key/value
http://collabedit.com/jgqm4
Anonymous
Can someone suggested books for DRF?
Anonymous
Suggest*
Shreehari
Vxvek
Vxvek
for item in dict_name[‘list_name’]
Code http://collabedit.com/jgqm4
Wan Fahmi
Hi guys. I'm wondering if there are tutorial/sample projects for Django that implements offline form submission. I have seen service worker/PWA, but so far, implementation is about delivering content. Any help is appreciated.
Anonymous
Hi.. To develop single sign on. Do we have any approach apart from SAML
Anonymous
Kindly confirm
Devu
Can i add extra field in default USER table?
myii
Can i add extra field in default USER table?
https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
Doragonsureiyā
Can anyone..
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Stepan
Hi everyone! I have a trouble with understanding Django / Django REST Framework. I created a transient model (called 'sandbox') which should for a GET /path/url request create non-stored record and return its serialization to user (JSON-object). I chose this way (with Transient model instead of clear JSON Response) because in the plans this model will be identical (inherited) to another one not transient. Could anyone suggest how to implement that (what I need to create with views/viewset and how it use in url_patterns) or throw me a link to docs. Or tell me if I do something wrong.
Naveen
hello guys, I m struck on 1 problem from last 36 hours. My problem is User submit a imgae via form and redirected to homepage(where all images are displayed). When user clicks on any image it redirects him to image details page..where there are 2 button . 1st button to rotate it clock wise and 2nd button to rotate it anticlockwise. when user click on any of 2 button then image will perform specific action and will replace the original image with edited image. Really big thankyou in advance
Creator
I am trying to generate QRcode it generating but not showing any data *How Can I Pass my user input through form in QR code generation??*
Creator
How can I pass Data of input fields in form to Generate A QR code❓❓
Mr. COwO2 Preis
h
Just run it locally and Django will give you all u need It's easier if you cannot use a debugger
Hello, i solved the issue by making some changes in LOGGING part of the settings file. But now i'm in a new small problem, the email i'm receiving is without the variables which means at the place of company it's empty and simillar things, i'm not getting on how to solve it. Will you please help? Thanks
h
They are context variables, you need to check the view that is involved of sending that email
Yes I looked about it, I mean in django-rest-auth we are calling PasswordResetSerializer and it's calling PasswordResetForm from django's forms . py file, and in this form in the save() method all the variables are already defined and passed than why are they not passing?
h
Ok just wait for few minutes I'll compile all of that in one file and here share the dpaste link, just few minutes.
Mirco
https://dpaste.org/8hWL#L7,178,179 here, just take a look and you'll understand
Into the save method where you pass the email template The path is different from your template
Mirco
Your template is inside account etc etc The code expects the email template inside registration folder That it's the default of django-allauth basically on which django-rest-auth is built
Mirco
And as I remember in the documentation is also specified the default location and how to override it
h
Yeah I mean I've overided the serializers which succesfully sends me the email from account etc etc. But email don't contain the context variables so does that mean I have to override the save part of the PasswordResetForm? I mean in documentation it's mentioned that just override the serializer that will work.
Mirco
It must be inside registration folder according to your code and the default one basically