Re: Bind device with login id and password

2021-03-05 Thread Sachin Kumar
HI Mike, Thanks a lot for the reply I can capture the hostname of the localhost i also want to capture mac address of the local host. is there any way we can capture the Mac Address of the client? On Friday, 5 March 2021 at 12:21:31 UTC+5:30 Mike Dewhirst wrote: > On 5/03/2021 4:52 pm, Sachin

Re: Bind device with login id and password

2021-03-05 Thread Kasper Laudrup
On 05/03/2021 10.07, Sachin Kumar wrote: HI Mike, Thanks a lot for the reply I can capture the hostname of the localhost i also want to capture mac address of the local host. is there any way we can capture the Mac Address of the client? In general no. If the client is on the same network

Re: How to hide/disable ModelAdmin

2021-03-05 Thread zvo...@seznam.cz
Seems I know the answer: class HiddenAdmin(admin.ModelAdmin): has_module_permission = lambda self, req: False https://stackoverflow.com/questions/2431727/django-admin-hide-a-model https://stackoverflow.com/questions/49293901/hide-model-from-main-admin-list-but-allow-creation-in-inline-editor

Re: Bind device with login id and password

2021-03-05 Thread Benjamin Schollnick
> On Mar 5, 2021, at 12:52 AM, Sachin Kumar wrote: > > Hi Experts, > > Is there any way or logic in Django where we can bind user login id and > password with first device login id. > for example:- > If a user first time login into a PC A, he can't login into PC B using same > login id. He

login and signup form in one view

2021-03-05 Thread uma shankar
i have two forms in one html file and i want to write both of them in single view with and without submit buttons -- 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 t

Api's for another projects.

2021-03-05 Thread Sheldon Le Cooper
Hi Experts, I have requirement of Django Api's. Brief about the requirement: I have 2 projects (A and B), I did develop the API'S for Project A. The Project A has been deployed in CentOs with NGNIX server. Now I wanna use the Project A Api's in Project B. Kindly suggest me how to achieve t

Smaller project that would be payed

2021-03-05 Thread sebasti...@gmail.com
Hello, i need a freelancer that implement me a new widget bzw. modelclass that can represent a select with hierarichal structure like this: http://embed.plnkr.co/BRQtUKbxZdZItLslHflM/ i know that a implementation like django-mptt can store this in database. I am beginner so i want in my exist

Re: login and signup form in one view

2021-03-05 Thread Kasper Laudrup
On 05/03/2021 13.59, uma shankar wrote: i have two forms in one html file and i want to write both of them in single view with and without submit buttons OK. Sounds simple enough. Good luck. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google

Re: A very easy problem that I couldn't figure it out! PLEASE HELP^^

2021-03-05 Thread Kasper Laudrup
If you want someone to help you, please do take the time to write a proper question. Just posting an error message and screaming for help will most likely not get you a lot of help. Learning how to communicate with other people is an important part of being a developer. Kind regards, Kasp

Re: login and signup form in one view

2021-03-05 Thread Eugene TUYIZERE
Then, what is the problem Sent from my iPhone > On 5 Mar 2021, at 17:31, Kasper Laudrup wrote: > >> On 05/03/2021 13.59, uma shankar wrote: >> i have two forms in one html file and i want to write both of them in single >> view with and without submit buttons >> > > OK. Sounds simple enough.

RE: custom list_display in admin - problem in production server

2021-03-05 Thread dupakoor kannan
I have a form where users submit protein sequences that are stored in the user_submission model. In Django admin, I have added a custom list display naming_algorithm (like below). It takes the obj. sequence and runs an external script and displays the output in HTML. It works locally well. When I t

Re: login and signup form in one view

2021-03-05 Thread Kasper Laudrup
On 05/03/2021 16.39, Eugene TUYIZERE wrote: Then, what is the problem I have no idea. Doesn't seem like there is any. I guess Uma just wanted to share what he's currently working with for some reason. Would be nice if he shared it if he's come up with some clever solution though. Kind reg

Re: custom list_display in admin - problem in production server

2021-03-05 Thread Kasper Laudrup
On 05/03/2021 17.01, dupakoor kannan wrote: I have a form where users submit protein sequences that are stored in the user_submission model. In Django admin, I have added a custom list display naming_algorithm (like below). It takes the obj. sequence and runs an external script and displays the

Re: custom list_display in admin - problem in production server

2021-03-05 Thread dupakoor kannan
>>>First of all, create a new thread instead of just highjacking an existing one. I have created this thread. I didn't use the existing thread. >>>Second of all, set up some logging on your development server: Thanks for the suggestion. I will add logging and look for the error message. Thank

how to fix in Missing statements in pytest

2021-03-05 Thread Salima Begum
Hi all, I am using pytest for testing my django application. I have written test cases for models, views, urls all test cases are running successfully but In the coverage report of pytest I am getting some missing statements. Is there any packages or plugin to resolve this missing statements issue.

Re: login and signup form in one view

2021-03-05 Thread uma shankar
I want to connect my Html input tags with fields created in models .py using the name attribute of each input tag def user_login(request): if request.method=='POST': if request.POST.get('submit') == 'checkform1': user_form = SignupForm(data = request.POST) # i want this

Re: login and signup form in one view

2021-03-05 Thread uma shankar
please tell me how to do that On Friday, 5 March 2021 at 22:21:54 UTC+5:30 uma shankar wrote: > I want to connect my Html input tags with fields created in models .py > using the name attribute of each input tag > > def user_login(request): > if request.method=='POST': > if reques

Re: Smaller project that would be payed

2021-03-05 Thread Ahmed omar miladi
hello sebasty how are you? On Fri, 5 Mar 2021 at 16:31, sebasti...@gmail.com wrote: > Hello, > > i need a freelancer that implement me a new widget bzw. modelclass that > can represent a select with hierarichal structure like this: > > http://embed.plnkr.co/BRQtUKbxZdZItLslHflM/ > > i know tha

Re: A very easy problem that I couldn't figure it out! PLEASE HELP^^

2021-03-05 Thread Mohammad Anarul
[image: Screenshot_7.png] On Fri, Mar 5, 2021 at 9:36 PM Kasper Laudrup wrote: > If you want someone to help you, please do take the time to write a > proper question. > > Just posting an error message and screaming for help will most likely > not get you a lot of help. > > Learning how to commu

Re: A very easy problem that I couldn't figure it out! PLEASE HELP^^

2021-03-05 Thread Gabriel Araya Garcia
Kasper is right, we need more clear. But anyway, here is one example. In settings.py: from pathlib import Path import os ROOT_URLCONF = 'sclub.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['sclub/appsclub/templates'], 'AP

Re: Smaller project that would be payed

2021-03-05 Thread Sebastian Jung
Hello Ahmed, I am well but implementation new widget is not so easy. I hope that you want to help me. Regards Am Fr., 5. März 2021 um 11:11 Uhr schrieb Ahmed omar miladi < ahmedomarmil...@gmail.com>: > hello sebasty how are you? > > > On Fri, 5 Mar 2021 at 16:31, sebasti...@gmail.com < > sebast

Re: can we integrate html views that look far better then what is available with django

2021-03-05 Thread sridhar vumma
Does using bootstrap improve the view of each page, Thanks & Regards, Sridhar.V +91-9591729335 On Fri, Feb 19, 2021 at 12:21 PM sridhar vumma wrote: > The look and feel with typical example flows possible for html were not > looking similar to websites like stackoverflow.com so i had a doubt if