xarala221
I see interesting tutorial about that i share it
xarala221
https://www.valentinog.com/blog/drf/
🅜🅞🅗🅘🅣
Thanks 👍
Mirco
https://www.valentinog.com/blog/drf/
Valentino is always great!
Anonymous
😊
⚡AkG<>⚡
glad joining this channel
xarala221
Welcome make your self at home
Vivek
django video tuts?????
raven
how can i load my csv file in views.py
cj
django video tuts?????
better read the documentation
Handy
anyone have try django-imagekit with amazon s3 bucket? why it keeps redirect to 500 error when upload new image?
S
you can use ipdb/pdb to debug your code
Doragonsureiyā
anyone have try django-imagekit with amazon s3 bucket? why it keeps redirect to 500 error when upload new image?
Please don&#39;t ask meta questions like: &quot;Any user of $x here?&quot; &quot;Anyone used technology $y?&quot; &quot;Hello I need help on $z&quot; Just ask about your problem directly! With 41k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
master
I want to do website hardening. I mean guarding my login and registration against SQL attacks And implement session timeout I have a security blog that I would like to deploy but I want to do it after those issues are tackled. It s built on Django.
master
And I don&#39;t want to bypass this query Username&#39; or 1=1 Queries are not raw sql
master
OK bro
Ratana
Guys, do you know how to move databases from google cloud to digital ocean?
master
How to deploy code escaping to ascii
Денис
Hey. Got a strange idea to create a user login form right in the navbar (in base.html) so I created a custom template tag including a login form.
Денис
But have no clue how to handle it now.
Денис
I&#39;m trying to do it like in Django by example
Mirco
I&#39;m trying to do it like in Django by example
As always because you should sent a POST request to your login view by passing username and password
Денис
As always because you should sent a POST request to your login view by passing username and password
alright. I&#39;m a little baffled now, so let me explain. It does send a post already. A django view hadles it, authenticates and logins the user
Денис
but it seems like no cookie is created, cause template tag {% if user.is_authenticated %} returns false
Денис
sorry for bothering you I&#39;ll just keep trying
Mirco
Send your code via pastebin or similar, it&#39;s easier to help you
Денис
Later, it doesn&#39;t seem to be a problem, I haven&#39;t properly learned the basics of authentication and redirects.
Денис
thanks
Денис
Alright, seems like it&#39;s time to give up a bit. LIke I said before, the form sends a POST to a LoginView, it redirects to the proper LoginRedirectUrl, but user isn&#39;t authenticated.
Денис
&quot;POST /account/login/ HTTP/1.1&quot; 302 0 in server logs
Mirco
Again, share your code
Денис
github?
Mirco
Yep, or code sharing tools like pastebin
Денис
but what part of code?
Mirco
All related to login
Денис
base.html: https://pastebin.com/kF6atVhC urls.py: https://pastebin.com/sNtVYpzh forms.py: https://pastebin.com/WAUJkuwd
Денис
no views as I use LoginView
Денис
template tag: https://pastebin.com/jkg7grZj
Денис
login.html for template tag https://pastebin.com/9qdi5rHv
Mirco
Really?
Yup, AuthenticationForm is the built-in
Mirco
Doragonsureiyā
Thanks,
You&#39;re welcome! 😊
Aluisco Miguel
Hi, I need little help with forms, I have one JSON with elements inside, but only need two elements, I fetch this elements and try to send to template but isn&#39;t working ... I don&#39;t know if I&#39;m not declaring right on forms.py or do anything wrong ... someone can help me?
Abhi
I have html form I want to post request with ajax to same it to my django database
Abhi
can you guide me please
Abhi
I have created dango project and one app
Abhi
?
Abhi
I have made a post request on view.py
Anonymous
Abhi
Actually I need to know adjact things to integrate it
Abhi
With form and ajax
Abhi
Things to work properly
Abhi
What&#39;s the error?
Thanks for that day work that git repository was not proper solution and I get divert from your solution only I needed to write simple function that day
Anonymous
Sure np
Abhi
Sure np
Can I share my code here
Abhi
For current problems
Anonymous
Can I share my code here
Through pastebin only
Abhi
Np
Abhi
https://pastebin.com/tp3y6Aj5
Abhi
This is my html
Abhi
from django.shortcuts import render from django.contrib.auth.forms import UserCreationForm from django.views.generic.edit import CreateView class SignUpView(CreateView): template_name = &#39;core/contact-us.html&#39; form_class = UserCreationForm
Abhi
my views.py
Abhi
https://pastebin.com/stvLAxzV
Abhi
This is my ajax
Abhi
Through pastebin only
Can you please look into my code
Abhi
hello
Денис
AuthenticationForm sends POST to a LoginView, but after successful redirect there&#39;s no user in request. What could that be?