Re: how to give permission to a logged in specific user in a list of users profile

2020-07-05 Thread Gabriel Araya Garcia
I also, I have build one program with health environment, and the user controlls is following manner: def login_ini(request): variable1 = 'Pantalla de Acceso al Sistema' error_log = 'ok' username = request.POST.get('username') password = request.POST.get('password') # valor del template user =

Materializecss issue with CKeditor dialog

2020-07-05 Thread Sherif Adigun
Replies -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: how to give permission to a logged in specific user in a list of users profile

2020-07-05 Thread Arpana Mehta
https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/ [image: Screenshot from 2020-07-06 03-15-34.png] On Mon, 6 Jul 2020 at 03:13, Arpana Mehta wrote: > You can user permission classes in your code. Or decorators before the > function view you want to be only visible

Trouble getting kwargs into filter

2020-07-05 Thread Clive Bruton
I am struggling with getting kwarg values into a queryset filter: class UsersItemsView(ListView): template_name = 'testapp/user_item_list.html' def get_queryset(self, **kwargs): print('kwargs-userlist') print(kwargs) #return

Re: how to give permission to a logged in specific user in a list of users profile

2020-07-05 Thread Arpana Mehta
You can user permission classes in your code. Or decorators before the function view you want to be only visible to logged in users. from django.contrib.auth.decorators import login_required @login_required def your_view_here(request): On Mon, 6 Jul 2020 at 01:28, Exactly musty wrote: >

Re: Trouble getting kwargs into filter

2020-07-05 Thread Stephen J. Butler
get_queryset() isn't documented as taking any args at all, let alone the kwargs of the request. You sometimes see people do "def get_queryset(self, **kwargs)" to future-proof themselves in case get_queryset does, one day, accept args. But it doesn't right now. To get the kwargs for the request

Re: How to add domain from GoDaddy to Heroku

2020-07-05 Thread Sherif Adigun
Simply point your domain nameservers from GoDaddy to cloudflare. Then from cloudflare, add the cname record. It's works flawlessly even with ssl -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: REUTILISER UN CITE DJANGO

2020-07-05 Thread Gabriel Araya Garcia
Je ne comprends pas ce que tu dis. Pourquoi n'utilisez-vous pas l'anglais Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos 99.7721.15.70 El dom., 5 jul. 2020 a las 18:36, FLAVIEN HERI () escribió: > je pense tu peux reutiliser tout en activant ton environement > > On 7/5/20, C L

Re: How to access custom template using auth_views?

2020-07-05 Thread Exactly musty
try this then clear cache on your browser path('logout/', auth_views. LogoutView.as_view(template_name='registration/logged_out.html'), name= 'logout'), On Sunday, July 5, 2020 at 8:58:25 PM UTC+1, Yasir Iqbal wrote: > > I am having difficulty to access my custom template when I tried to logout

Re: REUTILISER UN CITE DJANGO

2020-07-05 Thread FLAVIEN HERI
je pense tu peux reutiliser tout en activant ton environement On 7/5/20, C L A S S E 1 wrote: > *BONJOUR A TOUTES A TOUS* > > *si je décharge un site(une application django) est ce que je peut l > utiliser sur mon environnement de développement qui lui contient déjà > porte un site qui

Basic security check

2020-07-05 Thread Anirudh choudhary
Hello everyone I have deployed a website on heroku https://apnaganna.herokuapp.com/ What should be my next step to see that my website data is secured. How to stop unauthorised request to view your django rest api urls Thanks  -- You received this message because you are subscribed to the

Re: Unable to import HTML code

2020-07-05 Thread Akinfolarin Stephen
i guess the problem is syntax error in your load static at the top of the page put a spce between the percentage sign and the load below is a clearer explanation: your load static looks like this {%load static %} then change it to this {% load static %} the difference is that there is space

Re: Unable to import HTML code

2020-07-05 Thread 'Akash Sinha' via Django users
In your settings.py file you have to mention your static path , please check if you have mentioned that. 2nd if everything is good . Try to access that css file on the browser .start the server with python manage.py runserver and type the full path of the file in

How to access custom template using auth_views?

2020-07-05 Thread Yasir Iqbal
I am having difficulty to access my custom template when I tried to logout or password_change and I redirect to django built-in template. Only login is working fine with my login custom template.Can anyone help me please.Thanks Here is my code urls.py from django.urls import path from

how to give permission to a logged in specific user in a list of users profile

2020-07-05 Thread Exactly musty
how can i specify a user in django templates, for example i have a page which consist of list of users available but i want it to show "Talk to a patient" for only the logged in user on his own profile here is what am saying in picture and here is my code, i actually don't know how to put the

Re: How to access custom template using auth_views?

2020-07-05 Thread Exactly musty
i recommend you use django-allauth,for its easier, you won't have to struggle for authentication as django has taken care of everything for you On Sun, Jul 5, 2020 at 8:58 PM Yasir Iqbal wrote: > I am having difficulty to access my custom template when I tried to logout > or password_change and

Re: How to access custom template using auth_views?

2020-07-05 Thread Yasir Iqbal
Thanks for you response but in current scenario I have to use from django.contrib.auth import views as auth_views. Please help me out. Thanks On Monday, 6 July 2020 01:05:05 UTC+5, Exactly musty wrote: > > i recommend you use django-allauth,for its easier, you won't have to > struggle for

Re: How to get names of columns from QuerySet without executing it

2020-07-05 Thread Michael Fladischer
What about introspecting the model associated with the QuerySet: qs = SomeModel.objects.all() columns = [f.column for f in qs.model._meta.fields] Regards, Michael Am 04.07.2020 um 22:11 schrieb Eugene Kulak: How to get names of columns from QuerySet without executing it? If it is not

REUTILISER UN CITE DJANGO

2020-07-05 Thread C L A S S E 1
*BONJOUR A TOUTES A TOUS* *si je décharge un site(une application django) est ce que je peut l utiliser sur mon environnement de développement qui lui contient déjà porte un site qui existe déjà. ou je dois créer un environnement appart. si possible comment merci* -- You received

how to use a cite in my envir django

2020-07-05 Thread C L A S S E 1
if i download a cite how to use this cite in my envir django with my cite django... sould I do an auther envir . if possible how ? thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving