Re: Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
Okay!! I have solved it myself: the mistake was that 'subscribers' is itself a list, so 'to_email' should be 'sub' instead of '[sub]'. Thank You On Wednesday, 27 May 2020 14:01:28 UTC+5:30, Anubhav Madhav wrote: > > Hello everyone!! > > I have stuck in the middle of my project.

Re: Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
Please refer to this to understand the doubt more clearly: https://stackoverflow.com/questions/62038925/custom-model-action-function-in-django-admin On Wednesday, 27 May 2020 14:01:28 UTC+5:30, Anubhav Madhav wrote: > > Hello everyone!! > > I have stuck in the middle of my pro

Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
Hello everyone!! I have stuck in the middle of my project. Please help. I have created a custom function within a model, which sends a newsletter email to the subscribed users. I registered this model action in admins.py , so that I can perform that action using admin panel. After that, when

Re: TYPE ERROR at /login/: ; Help me Resolve

2020-05-23 Thread Anubhav Madhav
Exactly, django now supports is_authenticated as an attribute and not as a method is_authenticated(). Try is_authenticated. On Saturday, 23 May 2020 17:29:01 UTC+5:30, Ousseynou Diop wrote: > > Hello Guys, the problem is that you call the authenticated method, don't > do this. > Remove the

Re: CSS with Django forms

2020-05-16 Thread Anubhav Madhav
Okay!! I'll look into it, Thanks!! On Saturday, 16 May 2020 06:54:57 UTC+5:30, Clive Bruton wrote: > > You can use bootsrap4, or look at the output from the forms and set > up your CSS around that. > > > -- Clive > > On 14 May 2020, at 19:40, Anubhav Madhav wrote:

Re: CSS with Django forms

2020-05-15 Thread Anubhav Madhav
ing class on forms. > > On Fri, 15 May 2020 at 00:10, Anubhav Madhav > wrote: > >> Thankyou Clive!! I know I can use CSS like that, but if I do that the >> problem I'll face is that the 'form' or the 'input' tags or 'submit' >> button, which are rendered

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
:08 UTC+5:30, Clive Bruton wrote: > > > On 12 May 2020, at 22:41, Anubhav Madhav wrote: > > > Is there any way to display the forms with my HTML CSS files. > > Use {% include %} (https://docs.djangoproject.com/en/3.0/ref/ > templates/builtins/#include)

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
Thankyou Kasper :) On Wednesday, 13 May 2020 19:02:46 UTC+5:30, Kasper Laudrup wrote: > > > > On 13/05/2020 06.17, Bighnesh Pradhan wrote: > > you can use javascript it is good > > > > Oh yes, we all love javascript: > > https://www.destroyallsoftware.com/talks/wat > > :-) > > Seriously

Re: CSS with Django forms

2020-05-14 Thread Anubhav Madhav
Thankyou Bighnesh On Wednesday, 13 May 2020 18:57:36 UTC+5:30, Bighnesh Pradhan wrote: > > you can use javascript it is good > > On Wed, May 13, 2020 at 3:13 AM Anubhav Madhav > wrote: > >> My problem is, that I've made a beautiful 'Sign Up' and 'Login' Page >

CSS with Django forms

2020-05-12 Thread Anubhav Madhav
My problem is, that I've made a beautiful 'Sign Up' and 'Login' Page using HTML and CSS. Later on, in my project, I had to use 'forms' for registration and login. Is there any way to display the forms with my HTML CSS files. Please Help!! -- You received this message because you are subscribed

Re: How to make Custom User Registration and Login

2020-05-07 Thread Anubhav Madhav
o Garcia > wrote: > >> This might come in handy >> https://learndjango.com/tutorials/django-custom-user-model >> >> On Wednesday, May 6, 2020 at 5:09:29 AM UTC-5, Anubhav Madhav wrote: >>> >>> I am new to Django. I need to make a custom sign up and l

Re: How to make Custom User Registration and Login

2020-05-07 Thread Anubhav Madhav
Thankyou Camilo!! On Wednesday, 6 May 2020 20:42:10 UTC+5:30, Camilo Garcia wrote: > > This might come in handy > https://learndjango.com/tutorials/django-custom-user-model > > On Wednesday, May 6, 2020 at 5:09:29 AM UTC-5, Anubhav Madhav wrote: >> >> I am new to Djan

How to make Custom User Registration and Login

2020-05-06 Thread Anubhav Madhav
I am new to Django. I need to make a custom sign up and log in page. Because, during Sign Up, I also want to get User's Address and Contact Number. In Django's 'User' module, it isn't supported. So, how can I make a custom sign up and sign in page. Please Help!! -- You received this message