xarala221
I see interesting tutorial about that i share it
xarala221
https://www.valentinog.com/blog/drf/
🅜🅞🅗🅘🅣
Thanks 👍
Mirco
xarala221
Anonymous
😊
⚡AkG<>⚡
glad joining this channel
xarala221
Welcome make your self at home
⚡AkG<>⚡
Vivek
django video tuts?????
raven
how can i load my csv file in views.py
Handy
anyone have try django-imagekit with amazon s3 bucket? why it keeps redirect to 500 error when upload new image?
Am I
S
you can use ipdb/pdb to debug your code
Anonymous
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.
Anonymous
master
And I don't want to bypass this query
Username' or 1=1
Queries are not raw sql
Anonymous
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.
Mirco
Денис
I'm trying to do it like in Django by example
Денис
but it seems like no cookie is created, cause template tag {% if user.is_authenticated %} returns false
Денис
sorry for bothering you I'll just keep trying
Mirco
Send your code via pastebin or similar, it's easier to help you
Денис
Later, it doesn't seem to be a problem, I haven't properly learned the basics of authentication and redirects.
Денис
thanks
Mirco
Денис
Alright, seems like it'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't authenticated.
Денис
"POST /account/login/ HTTP/1.1" 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
Денис
Mirco
Really?
Yup, AuthenticationForm is the built-in
Денис
Mirco
Doragonsureiyā
Thanks,
You'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't working ... I don't know if I'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
Abhi
I have made a post request on view.py
Anonymous
Anonymous
Abhi
Actually I need to know adjact things to integrate it
Abhi
With form and ajax
Abhi
Things to work properly
Abhi
What'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
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 = 'core/contact-us.html'
form_class = UserCreationForm
Abhi
my views.py
Abhi
https://pastebin.com/stvLAxzV
Abhi
This is my ajax
Abhi
hello
Денис
AuthenticationForm sends POST to a LoginView, but after successful redirect there's no user in request. What could that be?