Mr. Rude
So it would be something like {% request.user.last_login %}
Mr. Rude
Or just {{}}
Maz
Okay, I wanted an example of one of the user activity variables like 'last_login'. Thanks.
Mr. Rude
Cool
⟨ Simon |
!!cleanup
⟨ Simon |
!!cleanup
Not an Admin. But there are 8 Deleted Accounts here.
⟨ Simon |
@Inchidi
⟨ Simon |
!!cleanup
⟨ Simon |
!!cleanup
Removed 8 Deleted Accounts
inchidi
thanks
⟨ Simon |
tada
Jimmies San
hola @SitiSchu ! :)
Mirco
Hi 😀 @SitiSchu
⟨ Simon |
ello
Anonymous
Hello all
Anonymous
I am new to this group
Anonymous
Can anyone help me out for learning Django
Jimmies San
Can anyone help me out for learning Django
pay a teacher or buy a course or find one for free [check @pythonres ]
Mr. Rude
There are many tutorials there
Mr. Rude
Too many in fact
Mr. Rude
You can start with the one by max goodridge
Mr. Rude
He explains enough to get you started
Anonymous
hi friends is it recommended to use anaconda 3 to work with python?
Kori
hi friends is it recommended to use anaconda 3 to work with python?
Hey yeah It's what I use and I find no problem with it
Kori
Welcome 🙂
gaurav
hello what is the best online source to learn django
Combot
gaurav (0) has increased reputation of Mr. Rude (1)
Mirco
okk thanks
💪💪
Arseniy
What are your best Django projects, everyone?
Mr. Rude
Well
Mr. Rude
Incoming by the end of the year
Mr. Rude
Will let you know
Mr. Rude
Its a portfolio website with blogs games news rss and all
Mr. Rude
Also has my project documentations
Mr. Rude
Wth
^_^
the dark
can any one tell me how can i design a registration page in admin session of django project
Rajjix
if your gonna make your admin page public for users to register i think it’s a better idea to implement something similar to a optional coupon field in the registration form if filled with the right information u give desired privileges to the user
Rajjix
This is just my opinion tho
the dark
sir my project is school management website and in this registration of students or teacher is only in Admin login
Rajjix
sir my project is school management website and in this registration of students or teacher is only in Admin login
Registration form is still gonna be one it doesn’t matter if you make on the admin panel or not you have to find different ways to give group permission, again just my opinion
the dark
yes
the dark
how can i set for registration option only for admin hand's
Mirco
imho first you have to create registration flow, you can use the django default one then you should set permissions
the dark
yes i have created
the dark
how i can set permission
Mirco
https://docs.djangoproject.com/en/2.1/topics/auth/default/#permissions-and-authorization
Василий
https://t.me/django_framework
Mirco
English only please
Dmitriy
English only please
sorry, I messed up the chat )
N S
I need your help guys how do i get the group name of the user who is logging in to tge site
Mirco
Combot
Esquire (0) has increased reputation of Mirco (6)
Bhupesh
Esquire (0) has increased reputation of Mirco (6)
Can someone tell me how is this feature implemented ??
Anton
Hello, give me some advice please. I use standard contribute.auth.model.User in DetailView as model. On the url, using this view user is always authenticated, why?
Rajjix
You need to log out
Anton
user is logged out, user is logged out on all other templates, used all view including admin, but only one template, which use generic cbv view with standard model user show me that user is authenticated.
Anonymous
Can I make site similar to youtube by django?
inchidi
yes
Anton
share code
There is nothing anything strange view: from django.contrib.auth.models import User class UserDetailView(DetailView): model = User slug_field = "username" template_name = 'user/user_detail.html' urls: path('<str:slug>/', UserDetailView.as_view(), name='user_info'),
Anton
obiously raised Generic detail view UserDetailView must be called with either an object pk or a slug in the URLconf.
Anton
oh yeah sorry, i thought its another project. whats your problem btw?
user is always authenticated in this view and only in this view
inchidi
user is always authenticated in this view and only in this view
but seems like you didnt check user auth there
Anton
There used base template and this part checked in base template, all other templates show me that user is logout except this one
Leonardo
who's there has experience with elastic beanstalk django deploy?
Jimmies San
who's there has experience with elastic beanstalk django deploy?
i use it but i'm running away from beanstalk :D