inchidi
technically breakpoint() will only check the class instance but not whats inside db right?
inchidi
eh legit point actually, technically when bool(task.id) your data stored in db already
inchidi
If I used http you would be right, But Im using https so csrf token shouldn't be used
having CRSF token is not a way to protect user from MITM, it's to protect user from CRSF. using https is the way to protect user from MITM
Knight
having CRSF token is not a way to protect user from MITM, it's to protect user from CRSF. using https is the way to protect user from MITM
https://www.django-rest-framework.org/topics/ajax-csrf-cors/ Here is says "Ensure that any 'unsafe' HTTP operations, such as POST, PUT, PATCH and DELETE, always require a valid CSRF token". But Im using https which is safe
inchidi
https://www.django-rest-framework.org/topics/ajax-csrf-cors/ Here is says "Ensure that any 'unsafe' HTTP operations, such as POST, PUT, PATCH and DELETE, always require a valid CSRF token". But Im using https which is safe
"unsafe" HTTP operations is different with "unsafe" protocol. maybe you want to read what CSRF is and what MITM is first to understand more on this
inchidi
unsafe HTTP operations are requests that will make changes on user data. GET and OPTION operations considered "safe" because it (should be) "read only"
Shreehari
Im getting this exception when im reloading view in my django proj. https://del.dog/rettestarr.txt
Shihasz
Im getting this exception when im reloading view in my django proj. https://del.dog/rettestarr.txt
I think that's some bug found in new django 3.0.7 .. Maybe they will fix soon
Shihasz
Anyway it will work
Shreehari
Thank you
ford
I think that's some bug found in new django 3.0.7 .. Maybe they will fix soon
I thought that occurs when i call an object in view which i there is no class for it
Shihasz
inchidi
Im getting this exception when im reloading view in my django proj. https://del.dog/rettestarr.txt
dont share error traceback partially like that, share the full traceback
Anonymous
In Django, How can I allow the user to enter paragraphs of data in TextFields? How can I preserve the whitespace that the user may have entered? Rendering of textfield and charfield chomps out extra whitespace (Django/Python)
S
These are my urls and views files. It is not logging in it is redirectinig to same page. Please help
S
https://pastebin.com/bzSEKaK7
S
https://pastebin.com/jxHCWPvb
Udasi
These are my urls and views files. It is not logging in it is redirectinig to same page. Please help
maybe you are already logged in already, or as admin.. in that case you have to logout first
S
I have logged out. Still it is the same
Vikas
i get an error *Class 'Post' has no Objects member pylint(non-member)*. I have go through some stakoverflow solutions but it didn't work And did changes in my settings.json file And am using VS code editor
isa
https://hastebin.com/vutamixovu.sql I fetch data from an API and convert a date as str. I write the date but following error occured despite its recorded as str. for x,y in stat_days_dict.items(): print(x) if x=="results": for a in y: dt=a.get("date") dt=str(dt[0:4]+"-"+dt[8:10]+"-"+dt[5:7]) print(dt) print(type(dt)) stat_days_kayit = Statistic_days( date = dt, views = a.get("views"), clicks = a.get("clicks"), ctr = a.get("ctr"), ecpc = a.get("ecpc"), ecpm = a.get("ecpm"), cr = a.get("cr"),
isa
Anybody help please ?
Hernan
Anybody help please ?
hi, please share the code.
isa
hi, please share the code.
https://hastebin.com/piqixuqaqa.py
Rahul
Anyone idea about get file from request and stored in to temprory location..as i am getting like *seek of close file*
Rahul
Help me please
Hernan
in model Statistic_days change: def str(self): return self.date to:
Hernan
def str(self): return str(self.date)
Hernan
or any string result
isa
oh yes . You are right. Thank you bro :)
Hernan
👍
Anonymous
i try to make sitemap.xml in django does anybody know what does it mean? Reveverse not found. Is not a valid view function or pattern name.
shekhar
can anyone help me how to read google fit sleep data
Anonymous
everything all right
Anonymous
i have found mistake
charlie
👍
Kims
Hello there. Anyone has built a referrals system before? I need some help. I tried pinax-referrals but I'm dead lost
Anonymous
Could anyone tell me from where to start , any resource to follow for Django
Aaditya
Error:manager isn't accessible via judge Court case management system
Holla
To get alert dialog when button clicked do I need the bootstrap scripts files or the Css files to doest the job
Doragonsureiyā
Could anyone tell me from where to start , any resource to follow for Django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Ghorz
Or you attach an event listener to the button
Holla
Just JS onclick="alert('you clicked')"
No i want the class of bootstrap alert alert-success to work bootstrap is linked and working fine but i dont the green alert when i click the buttom
Anonymous
may i read, line by line, text stored in some variable!? without save it to one file
Ferrum
hello guys please i need help been working on this for almost 48 hours i need to turn the data from .xlsx file to fill the database here is my views.py but makemigratoin is not reading a new migration what am i doing wrong?
Ferrum
https://pastebin.com/2cxVCdWr
Ferrum
https://pastebin.com/5XBcrAEy models.py
Raffaele
someone can send me a guide to upload my django web app on heroku?
Raffaele
I have the 7$ plan
Lelouch
YouTube dude
Raffaele
thanks
Nematullah
How can i upload the files with non latin alphabet in django on server
Nematullah
for example Фаил.jpeg
Nematullah
🙏
Gil
How can i upload the files with non latin alphabet in django on server
Interesting question! Playing with codes filenames...imposiblen must not be
Nematullah
Do you have any example please because i used two hour with this
Nematullah
Mr @GilObradors
Gil
Do you have any example please because i used two hour with this
No, what name of coding you use/ represents this charsets ?
Gil
Are you wishing the filename with this charset at filesystem level? Or you want this filenames to be downloaded for users? You understand me?
Nematullah
for filesystem level
Gil
Charset name?
Nematullah
yes
Nematullah
Before uploading the file i changed its name with urllib.parse.quote(filename)
Nematullah
but the file didnt save
Gil
Charset name?
Gil
For example, this isnt utf-8
Nematullah
russian
Nematullah
but i am try to upload on server