Role based access

2020-01-19 Thread Doddahulugappa.B
Hi team, How to make role based access in django. For ex. If employee names and their department in one table. And also we assign department to user. With manytomany field.. So how can i display only the records of employees and their department which is assigned to the user. Kindly help.. --

Re: Role based access

2020-01-19 Thread Nitin Kalmaste
You can assign django groups from user model as department and give special permission to that group On Sun 19 Jan, 2020, 3:04 PM Doddahulugappa.B, wrote: > Hi team, > > How to make role based access in django. For ex. > > If employee names and their department in one table. > > And also we ass

Re: Role based access

2020-01-19 Thread maninder singh Kumar
Could it be that there is a user from each department and each user in a department has a role ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 3:04 PM Doddahulugappa.B wrote: > Hi team, > > Ho

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
Thank you for your response. Can you please Explain me how to do that.. On Sun, Jan 19, 2020, 2:09 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Could it be that there is a user from each department and each user in a > department has a role ? > > > [image: --] > > Maninder Kumar

Re: Role based access

2020-01-19 Thread maninder singh Kumar
Django has an authentication model of : 1. Creating users 2. Assigning them permissions or group permissions Use Authenticate() to authenticate users. Based on the assigned permissions they will have access to parts of your site. Basically you create views and the objects in the views are availa

i need some help about server

2020-01-19 Thread shubham shirbhate
hi guys, i set logo on my digital ocean django server page but still i not see this logo, but whenever i sit on my local server it see to me... actually i dont know whats the problem, how i set my logo on server page -- You received this message because you are subscribed to the Google Groups "

RE: Role based access

2020-01-19 Thread HULUGESH B
My use case is like this name age department user(manytomanyfiled) xyz 23 cs user1 abc 24 ec user1 pqr 25 me user2 Now my question is if user1 loged in means he has to see only name age department user(manytomanyfiled) xyz 23 cs user1 abc 24 ec user1 And if user2 login means name age departmen

wss (secure websocket) with Django Channels and Daphne webserver

2020-01-19 Thread Marc Mültin
Hello there, Who is fit in Django Channels and TLS handshakes? I am really stuck with configuring an SSL Context for the TLS server for secure websockets, which I thought is enabled through Django Channels. I posted my question on Stackoverflow: https://stackoverflow.com/questions/58881264/w

DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
Hi everyone. I'm doing #DjangoEveryday Challenge to myself. I set a goal for everyday and try to accomplish it. So I got practice and progress everyday :) I'm doing this for preparation of my resume. I'm looking for Django Job in Taiwan but CS is not my major. I want to share this with you guys

Re: i need some help about server

2020-01-19 Thread maninder singh Kumar
Could it be the path ? [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 4:33 PM shubham shirbhate < shubhamshirbhate...@gmail.com> wrote: > hi guys, i set logo on my digital ocean django server pa

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread maninder singh Kumar
Great to know [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 4:46 PM Jack Lin wrote: > Hi everyone. I'm doing #DjangoEveryday Challenge to myself. > I set a goal for everyday and try to accompl

Re: Role based access

2020-01-19 Thread maninder singh Kumar
it will work, it requires working out queries [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Sun, Jan 19, 2020 at 4:32 PM HULUGESH B wrote: > My use case is like this > > > > name > > age > > department > > user(ma

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
Thank you. I ll check it out. On Sun, Jan 19, 2020, 4:29 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > it will work, it requires working out queries > > > [image: --] > > Maninder Kumar > [image: http://]about.me/maninder.s.kumar >

Re: Role based access

2020-01-19 Thread maninder singh Kumar
Here's what you could do : def requestView(request): say : first_query =.objects.values_list(‘name’, age’, ‘department’, ‘user’).filter(user__icontains = ‘user1’) second_query = .objects.values_list(‘name’, age’, ‘department’, ‘user’).filter(user__icontains = ‘user1’) #the below pa

Re: Role based access

2020-01-19 Thread Doddahulugappa.B
Thank you so much. I will try this.. On Sun, Jan 19, 2020, 5:38 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Here's what you could do : > > def requestView(request): > > > > say : > > first_query =.objects.values_list(‘name’, age’, ‘department’, > ‘user’).filter(user__icontains

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Balaji Shetty
Great We follow you means ... Are you making code available on github to improve further.. On Sunday, January 19, 2020, Jack Lin wrote: > Hi everyone. I'm doing #DjangoEveryday Challenge to myself. > I set a goal for everyday and try to accomplish it. So I got practice and > progress everyday

Re: Django blog post not linking to detail.html page

2020-01-19 Thread Gerardo Palazuelos Guerrero
Hello, File: template/blog/post/list.html, line 7 It doesn’t sounds good at least for me. The way I do is: post.title --- Gerardo Palazuelos Enviado desde mi iPhone > El 19 ene 2020, a la(s) 9:25, amanda escribió: > >  > Hello, > I am new to Django, i follow a book : Django by Example 2. i

get data from html table

2020-01-19 Thread Luca Bertolotti
Hello there is a way to get data from html table like this {% extends "base.html" %} {% load static %} {% block content %} {% csrf_token %}Nuovo {% csrf_token %}Cerca ID Matricola Descrizione Disegno Peso in KgMatricola Fornitore QuantitàPrezzo

Django Lessons

2020-01-19 Thread Eugen Ciur
Hi everyone, I launched recently a new resource, django-lessons.com. I target mostly intermediate django developers but newcomers might find it usefull as well. Although main focus is Django Web Framework, I will post a lot of info about devops ecosystem around djan

Re: Django blog post not linking to detail.html page

2020-01-19 Thread John
/mysite/blog/urls.py, line 2 is bad syntax and should probably read: from .views import * You should also be seeing some kind of error from your webserver (are you running the site using runserver first?) which would give you a clue where the problem is. John On 19/01/2020 16:03, amanda wro

Re: Django Lessons

2020-01-19 Thread Karan Mittal
Hey Eugin, Your blogs are awesome. Let me know if you need some help in writing. I am a technical writer myself. I have also written a complete series on Django. You can check it out here. https://data-flair.training/blogs/django-tutorials-home/ Regards, Karan Mittal On Mon, 20 Jan, 2020, 1:25 A

Re: Using Daphne without altering nginx config on Google App Engine

2020-01-19 Thread Rahul Arora
Thanks for your reply. Is there really no way of using daphne without altering nginx/supervisord config like we use gunicorn? If not, I have some questions based on my efforts so far, please. I will be grateful for your attention to these. Apologies if they're silly questions since I'm a beginn

Re: Django blog post not linking to detail.html page

2020-01-19 Thread amanda
在 2020年1月19日星期日 UTC+1下午11:28:24,John写道: > > /mysite/blog/urls.py, line 2 is bad syntax and should probably read: > > from .views import * > > You should also be seeing some kind of error from your webserver (are you > running the site using runserver first?) which would give you a clue where >

Re: Django blog post not linking to detail.html page

2020-01-19 Thread amanda
Hi John, Thank you! I config setting DEBUG = True, but my webserver does not display any error message. i use pythonanywhere host, i do not need running: runserver. I did try your advise, if i did that, i got error message: 在 2020年1月20日星期一 UTC+1上午6:43:10,amanda写道: > > > > 在 2020年1月19日星期日 UTC+1下午1

Re: Django blog post not linking to detail.html page

2020-01-19 Thread maninder singh Kumar
I see you have put href as post.get_absolute_url You could for instance use a relative path. Put a page field in your model Post, to refer to the html that the post will be on. And then : {% for text in post_list%} {{text.content_Title}} {{text.content_Description}} {% endfor %} This

Re: Django blog post not linking to detail.html page

2020-01-19 Thread amanda
Hi Gerardo, i am not full understand, your mean is for example post.title ? post.title 在 2020年1月19日星期日 UTC+1下午6:45:11,Gerardo Palazuelos写道: > > Hello, > File: template/blog/post/list.html, line 7 > It doesn’t sounds good at least for me. > The way I do is: > %}”>post.title > > > > --- > Ger

How to render data from populated database (no user input) to html

2020-01-19 Thread nmaxbe...@gmail.com
I would like to render data from a populated database into a HTML (homepage_view). I am not sure if I create a GET method from the database (and if so how) or use (fix) the code listed below. The ultimate outcome is to have a table with three columns (models.py) with six rows. Note: In the

Re: Django Lessons

2020-01-19 Thread Bruckner de Villiers
Eugen, As a Newbie, I found  most of it useful. Well done. Bruckner de Villiers 083 625 1086 From: on behalf of Eugen Ciur Reply to: Date: Sunday, 19 January 2020 at 21:56 To: Django users Subject: Django Lessons Hi everyone, I launched recently a new resource, django-lesson

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
Oh yes, this is all on Github. I’ll update the page to include GitHub link today! Thanks for reminding. 在 2020年1月20日 於 上午1:43:43, Balaji Shetty (balajishe...@gmail.com) 寫下: Great We follow you means ... Are you making code available on github to improve further.. On Sunday, January 19, 2020,

Re: Django Lessons

2020-01-19 Thread maninder singh Kumar
Excellent work ! [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Mon, Jan 20, 2020 at 1:26 AM Eugen Ciur wrote: > Hi everyone, > > I launched recently a new resource, django-lessons.com. >

Re: DjangoEveryDay. My practice website!

2020-01-19 Thread Jack Lin
I’m not sure what this gonna be in the future. I think I’m just exlpore the way. I may want to make this reusable for the newbie in the future and make the community better. Open to any ideas and contribution. 在 2020年1月20日 於 下午2:49:48, Jack Lin (tkic...@gmail.com) 寫下: Oh yes, this is all on Gith

Re: How to render data from populated database (no user input) to html

2020-01-19 Thread maninder singh Kumar
Your path is as follows : urlpatterns = [ path('', views.homepage_view), but your view file is def currentReps_view(request) Make the change in the urls.py ] [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Mon,

Re: Using Daphne without altering nginx config on Google App Engine

2020-01-19 Thread Integr@te System
Hi Rahu, Plz scrutinize more info to differ, combine and select right one for your case. https://stackshare.io/stackups/google-app-engine-vs-nginx On Mon, Jan 20, 2020, 12:08 Rahul Arora wrote: > Thanks for your reply. Is there really no way of using daphne without > altering nginx/superviso