Doragonsureiyā
Okay thanks
You're welcome! 😊
Hemant
the issue was with CSRF_TRUSTED_ORIGINS
Hemant
this was not set for any domain
mukhil
When we change input box in html that data how can call from view (Without click submit button)
Hemant
Thankyou @T4P4N and @jarriagada for your time, you both made me learn many things however the solution was out of the scope because I was not reading the error with DEBUG=True in production which clearly says my app link was not trusted for CSRF
#@ksr
[28/01, 3:55 PM] Sibananda Routray: select e.FIRST_NAME,e.HIRE_DATE,e.SALARY FROM employees e where HIRE_DATE<'21-SEP-05'; [28/01, 3:55 PM] Sibananda Routray: select *from employees where 'HIRE_DATE'='03_JAN-06'; [28/01, 3:55 PM] Sibananda Routray: select e.FIRST_NAME,e.HIRE_DATE,e.SALARY FROM employees e where HIRE_DATE<'21-SEP-05'; [28/01, 3:55 PM] Sibananda Routray: select avg('SALARY') FROM employees WHERE JOB_ID='IT_PROG'; select distinct(sum('SALARAY')) FROM employees ; SELECT *from employees where (1.25*'SALARY')>3000; select*from employees where 'SALARY'<5000; [28/01, 3:55 PM] Sibananda Routray: Output not correct please correction
Mayu
MQTT connection with Django ?... pls tel me about MQTT connection with Django
Hemant
and are you sure the date is saved with varchar type and not with datetime format?
Hemant
MQTT connection with Django ?... pls tel me about MQTT connection with Django
you can simply google it and then ask doubts if you have
Mayu
M
hello guys im kind new to django framework hosting i tried to upload my web app on my cpanel but i cant find setup python like i saw in many tutorials is there any solutions thank you in advance 🙏🏻🙏🏻🙏🏻
Eli
Hey guys Why wsgi and asgi is necessary? Why web server isn't enough?
theDisgrace
anyone help me with this?
Why is the first letter of ur class small? In forms.py
Paulo
Hi guys... how sort and paginate nested ORM and non-ORM object?
Paulo
I wrote a question on stackoverflow, https://stackoverflow.com/questions/70889633/django-how-to-sort-and-paginate-nested-orm-and-non-orm-object
Paulo
Im stuck on this for a fill days, can anyone help? Thanks
Shafquet
Any body watched Dennis ivy's django tutorial on traversy media. I am stuck at 1:38:26
Doragonsureiyā
Any body watched Dennis ivy's django tutorial on traversy media. I am stuck at 1:38:26
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Kidus
Hey guys Why wsgi and asgi is necessary? Why web server isn't enough?
Since most web servers don't natively speak with python or other scripting languages. we need a common interface for this communication. This leads to the development of CGI (Common gateway interface) which standardize how a webserver calls scripts with environment variables and return response. WSGI as a calling convention for webservers to forward request to web application was thus created as an implementation-neutral interface between web servers and web applications or frameworks written in python to promote common ground for portable web application development Similarly ASGI is used with async python web applications
Tb10
Hi, wondering if adding a venv in a docker container is a good choice or not. i.e. got a django pip requirement list, would it be unnecessary the venv in the container?
Syed
How to multiple matplotlib graph in single django template?
Syed
Anyone has idea about this?
Anonymous
hello everyone. i have one question, do you know if there is a way to get all related element that have the same foreing key for exemple i have a category and product models, can i get all products that shares the same category while executing a query from the category model
Anonymous
i m using django rest
Саша
Do somebody have projects with ReactJS ? It’s so interesting for me to look how to organize integration django with react Especially I’d like to see at projects,where react was build in a single file with webpack and added to django-template If you have no those projects,could you probably recommend me some source
Marcos Alberto
Hellos, I'm tryin to learn class bases view, and I0m trying to learn making a web blog, all is working fin, the issue is that want users can post on publications. To make it posible what occurred to me was to use a create view, I have two tables, post and comments, to make a relation I need the id of post. The correct way to do this is to get the id from url to save in the create view ?
Marcos Alberto
Thank you
Kp
Hey friends, I'm new to django can anyone suggest a tutorial or anything for best learning
Doragonsureiyā
Hey friends, I'm new to django can anyone suggest a tutorial or anything for best learning
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Hemant
everytime heroku deploys the app, it restores the older db.sqlite3 file which is available on github repository which results in deletion of all the data users stores when they visits my website is there any way to store their data to the webapp? its basically saved in the db.sqlite3 file in server but when i make changes in the source and deploy to heroku, it again picks up the older db.sqlite file
Kidus
duplicate of this
If you are using sqlite. Since sqlite store data on disk and heroku file system is ephemerial you will lose your data at least once in 24 hours and maybe the file is getting replaced. So you don't have to expect to persist your user data on heroku file system. Instead you can use postgres addon on heroku.
Владислав
Good day to all. Who knows how to solve the problem with the CELERY_BEAT_SCHEDULE schedule in settings.py, when we update it in the Docker container, the new time set does not work, but it still works with the old values? Celery-beat not installed.
Hemant
If you are using sqlite. Since sqlite store data on disk and heroku file system is ephemerial you will lose your data at least once in 24 hours and maybe the file is getting replaced. So you don't have to expect to persist your user data on heroku file system. Instead you can use postgres addon on heroku.
yes am trying to understand postgres off topic: I already have one postgres user, can I use the same? I wonder is this possible I can read all the tables that I have outside the django project can be viewd in django admin pannel?
Hemant
I do not have any password set on that user so I just kept the password field empty string in settings.py
Hemant
I am able to login to superuser in django admin
Kidus
You can get the credintials to the db when you open the add-on and go to settings. then use those values to connect to the db from you django app. set them in you settings.py. create super user and you can access you tables from the admin and also your app.
Hemant
webapp is now fully functional Just one test is required
Python Guy
I tried deleting and then migrating it(stackoverflow soln) but still i am getting this error: Migration token_blacklist.0001_initial is applied before its dependency users.0001_initial on database 'default'
Rajeev
Hi. Trying to resize picture, while upload it via django rest framework api. Found several examples. All of them re-define save() method in model. Questions: 1) why don't resize image in view? 2) how to transfer required size of image in model w/o saving it?
I tried to insert data using rest api... The error for foreign fields is coming " This field is required"... I have written serializer too... What can be the reason... Anyone please
Doragonsureiyā
I tried to insert data using rest api... The error for foreign fields is coming " This field is required"... I have written serializer too... What can be the reason... Anyone please
Don't tag people randomly, even if they seem knowledgeable. Most of the time, the person you tagged doesn't even know about the topic you just brought up. If people want to help you, they will - just be patient.
Rajeev
Sorry for inconvenience
Ram
I want change frontend design
Maxim
I want change frontend design
still meta question describe the issue
Ram
Django report builder in pypi
Ram
Default using angular for frontend
Ram
I want remove angular
Ram
And working for basic html code
Shahin
Hello everyone. A question regarding Mongodb and it's Python interface. does anyone have actual experience regarding using Pymongo and mongoengine? I'm gonna use mongodb and have no idea which one practically will be used and is better to my purpose.
Doragonsureiyā
Mohd Zaid
can anyone tell me how can i add a dummy select option with django model form which is used in place of placeholder and not stored in database
Hemant
Congrats, share links!?
sure https://hemant-to-do.herokuapp.com Just a fevicon icon is left and some responsiveness is required, rest functionality is done Most importantly it's deployed successfully under proper security considerations XD
Hemant
my first ever django app now my college decided to teach machine learning and I was planning to continue django so much confusion
Hemant
Python 99.9% chances
Hemant
classes will start from 1st Feb
Hemant
idk they didn't reveal syllabus yet will come to know on 1st Feb
Carsalberto
how to create a role where an ordinary user can create other users?
Sukuna
He needs to be superuser
Hemant
how to create a role where an ordinary user can create other users?
I think there would be some form class for it
Hemant
I am trying making a view for Password changing using PasswordChange class (It is created successfully and working correctly) There is a field success_url which is mandatory and I want to set a custom html page for it (as there is no class based view for it) How can I give the path to that custom html in url patterns?
Hemant
success_url = reverse_lazy('app/password_change_success.html') gives error as it is trying to find a view and gives 'app/password_change_success.html' is not a valid view function or pattern name.
Hemant
I am confused in urlpatterns
Hemant
till now I've only used class based views in it like path('password_change/', PasswordChangeView.as_view(), name='password_change'), how may I set a direct path to html form for a success message
Sarthak
How to combine listview and creatview in one class?
web
Hey, is it important to learn throttling classes in Django REST framework ? any suggestions ?