Re: DateTime widget in default CreateView form

2021-10-07 Thread Anil Felipe Duggirala
On Thu, Oct 7, 2021, at 5:50 PM, sum abiut wrote: > You can use modelform. > > in your form.py you can do something like this > > # setup date picker start > class DateInput(forms.DateInput): > input_type = 'date' > > class Formname(forms.ModelForm): > class Meta: >

Re: DateTime widget in default CreateView form

2021-10-07 Thread sum abiut
You can use modelform. in your form.py you can do something like this # setup date picker start class DateInput(forms.DateInput): input_type = 'date' class Formname(forms.ModelForm): class Meta: model= yourmodel fields = ('datefield

DateTime widget in default CreateView form

2021-10-07 Thread Anil Felipe Duggirala
hello, I have tried to find an answer to this question online, with no clear response. I have created a simple class based CreateView for a model that has a DateTime attribute. Simply rendering the form using the {{ form.as_p }} tag in the template associated to the aforementioned view does not g

Invalid parameter: redirect_uri

2021-10-07 Thread Ammon Quackenbush
I am setting up keycloak with a django webapp and this is the error I am getting: WE'RE *SORRY* ... Invalid parameter: redirect_uri I have tried setting the LOGOUT_REDIRECT_URL and POST_LOGOUT_REDIRECT_URL settings in my project settings.py but that had no effect. Any ideas on how I can fix

Re: Keycloak & Django Setup Error - "UNIQUE constraint failed: auth_user.username" & usernames are being hashed

2021-10-07 Thread Ammon Quackenbush
I was able to solve this problem by removing commas from the end of lines from my models in models.py. On Wednesday, October 6, 2021 at 2:59:33 AM UTC-6 adeyem...@gmail.com wrote: > Hi, can you make a snapshot of your models.py file? > > On Wednesday, October 6, 2021 at 7:26:24 AM UTC+2 abubak..

Re: Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-10-07 Thread Sreebash Kumar Das
Did you solve it? I need a similar solution. On Saturday, May 1, 2021 at 5:13:21 AM UTC+6 wwran...@gmail.com wrote: > Hi Dudes, Im working with pisa from xhtml2pdf LIB in order to get a pdf. > That works OK, but i cant figure out how to attach the generated pdf to an > email in order to send

Re: Single page Application

2021-10-07 Thread Steven Mapes
You can use Django as a back-end for an SPA by using something like Django Rest Framework to put APIs in front of your models but it's not something that Django itself was planned to be. If you search online you'll find various other ways of making Django

Single page Application

2021-10-07 Thread KH. TAMAM
Hi Did Django Have plan to issue Django version with Single page application technic ??? Regards, -- 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-us