change user creation form shown in Django admin

2022-01-07 Thread Anil Felipe Duggirala
hello, I am using a custom user model. I have created a form that includes an extra field: ## /users/forms.py class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = CustomUser fields = UserCreationForm.Meta.fields + ('phoneno',) I am using this

Re: are migrations the same regardless of database type?

2021-12-29 Thread Anil Felipe Duggirala
Thanks to all for your replies. Using the "sqlmigrate" command, as far as I can see, there are no differences between database types. I asked this question initially because I was unable to set up postgresql locally. I have solved those issues now and will follow your advice on using the same d

are migrations the same regardless of database type?

2021-12-28 Thread Anil Felipe Duggirala
hello, I running an app locally using an SQlite database (I have not been able to set up postgresql locally). I am running the same app in Heroku, using Postgresql. If I run "makemigrations" locally, then push those migrations to Heroku (which is using postgresql), will those migrations be app

Re: help

2021-11-01 Thread Anil Felipe Duggirala
On Wed, Oct 27, 2021, at 12:50 AM, waqar khan wrote: > pip uninstall django Your answer is not worth the electricity it is written on Waqar. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: Invalid parameter: redirect_uri

2021-10-12 Thread Anil Felipe Duggirala
On Mon, Oct 11, 2021, at 5:40 PM, Ammon Quackenbush wrote: > I can set the logout redirect url successfully with LOGOUT_REDIRECT_URL > in my project's settings.py, but I still get this error when I try to > log in. > > On Thursday, October 7, 2021 at 3:54:24 PM UTC-6 Ammon Quackenbush wrote: >> I

Re: DateTime widget in default CreateView form

2021-10-08 Thread Anil Felipe Duggirala
On Fri, Oct 8, 2021, at 10:57 AM, Iyanuoluwa Loko wrote: > The date-time has to accept a date, and if you input the date in the > textbox in the accepted django format, it will work fine. To have the > calendar icon, it is a widget, and you ycan call it by editing the HTML > input type, or addin

Re: DateTime widget in default CreateView form

2021-10-08 Thread Anil Felipe Duggirala
On Fri, Oct 8, 2021, at 8:41 AM, MR INDIA wrote: > Answer to this query on stack overflow > > Raw link: > https://stackoverflow.com/questions/27321692/override-a-django-generic-class-based-view-widget

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: >

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