Re: pass parameter from one class view to another

2019-11-06 Thread sotiris moustogiannis
Thanks a lot for your help, but my problem is that i want to pass an additional parameter to ShopDetalview. I want to pass the datetimelst in order to handle it in ShopDetailView On Tuesday, November 5, 2019 at 5:28:17 PM UTC+2, Bruckner de Villiers wrote: > > I assume that you want to access

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Bezama Marolahy Randriamifidy
Visual studio code or pycharm are the best Le mer. 6 nov. 2019 à 13:56, Kasper Laudrup a écrit : > Hi Himanshu, > > On 06/11/2019 11.52, himanshu goyal wrote: > > To Community, > > > > Greetings! > > > > Could you suggest a good open source IDE for Django? URL to download > > will be helpful. >

Making A Field Read Only

2019-11-06 Thread Ray Z
Hey Everyone, Im very new to django and im trying to figure out how to make a field on a forum read only. The field is my date created field that has a automatic timestamp. The form structure im using is a modelform . Here is my code of my forms.py . I appreciate the help. Thank you everyone

Re: After changing User.username to PhoneNumberField I can't migrate

2019-11-06 Thread Laura Pérez
Great! thanks for sharing , I'm going to see the link. El mié., 6 de nov. de 2019 a la(s) 10:45, Ahmed Shahwan ( dev.ahmed.shah...@gmail.com) escribió: > Thank you, Laura, for your input. > I found the problem related to the `django-guardian` pacakge which seems > to create an anonymous user whe

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Fabio Caritas Barrionuevo da Luz
> > But free edition of PyCharm expires after 1 month or so. > This is not entirely true. The Pycharm has two versions: Pycharm Professional and Pycharm Community Pycharm Professional has a free trial that expires after 1 month. After the trial time, you must purchase a license to continue to

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread himanshu goyal
Thank you Kasper! I am intended to create a personal website to start with. It will have videos, text articles and images. I am planning to deploy it on GCP. Thanks. On Wed, 6 Nov, 2019, 6:26 PM Kasper Laudrup, wrote: > Hi Himanshu, > > On 06/11/2019 11.52, himanshu goyal wrote: > > To Commun

Re: After changing User.username to PhoneNumberField I can't migrate

2019-11-06 Thread Ahmed Shahwan
Thank you, Laura, for your input. I found the problem related to the `django-guardian` pacakge which seems to create an anonymous user when I issue `manage.py migrate` which has a username of "AnonymousUser" and that, of course, doesn't pass the validation error of `PhoneNumberField` which has t

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Ahmed Shahwan
Visual Studio Code is very easy to use and excellent for python. You just need to download the Python language support, django extension and you're good to go. On Wednesday, 6 November 2019 14:38:17 UTC+2, himanshu goyal wrote: > > To Community, > > Greetings! > > Could you suggest a good open s

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread himanshu goyal
But free edition of PyCharm expires after 1 month or so. On Wed, 6 Nov, 2019, 6:52 PM Jasim Ak, wrote: > PyCharm is fantastic in terms of code completion, linting etc and if > you're a student, you might get their professional edition for free as > well. Please note that they have a community e

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Jasim Ak
PyCharm is fantastic in terms of code completion, linting etc and if you're a student, you might get their professional edition for free as well. Please note that they have a community edition that is open source. On Wed, 6 Nov 2019, 18:26 Kasper Laudrup, wrote: > Hi Himanshu, > > On 06/11/2019

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Kasper Laudrup
Hi Himanshu, On 06/11/2019 11.52, himanshu goyal wrote: To Community, Greetings! Could you suggest a good open source IDE for Django? URL to download will be helpful. What is considered "good" is highly subjective, so you will get widely different answers depending on who you ask. I pe

Re: Open Source IDE to start with Django Web development

2019-11-06 Thread Laura Pérez
I am using Visual Studio Code, and I love it (https://code.visualstudio.com/ ). Em qua, 6 de nov de 2019 às 09:37, himanshu goyal escreveu: > To Community, > > Greetings! > > Could you suggest a good open source IDE for Django? URL to download will > be helpful. > > Thanks, > Himanshu > India >

Re: After changing User.username to PhoneNumberField I can't migrate

2019-11-06 Thread Laura Pérez
I was having a similar error yesterday, after adding another field to my model I ran the migrations and was giving me an error as if I was overwriting another field. After a time searching for an answer for me ,the solution was (and I know this is not a good practice) delete all the migration files

Open Source IDE to start with Django Web development

2019-11-06 Thread himanshu goyal
To Community, Greetings! Could you suggest a good open source IDE for Django? URL to download will be helpful. Thanks, Himanshu India -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

After changing User.username to PhoneNumberField I can't migrate

2019-11-06 Thread Ahmed Shahwan
Hello everybody, I work on a project started from the cookiecutter-django, and I altered the username of the User model to use `PhoneNumberField` from django-phonenumber-field package instead of the ordinary `models.CharField` and made the necessary changes, then I issued `manage.py makemigrati

Re: ElementTree problem saving images

2019-11-06 Thread Integr@te System
Hi Issuer, Plz select options : 1. Follow someone else convert xml to dict, and then process forward. 2. See this document python DOM XML doc, especial in 20.6.2.3 section https://docs.python.org/3.6/library/xml.dom.html#domimplementation-objects see nodelist.item(i) and __getitem__() method. On

Re: ElementTree problem saving images

2019-11-06 Thread Nuno Vieira
Thanks for your feedback. The problem is if i set all the urls to None before, and a property have only 6 images of 20, on database saves the 6 images of this property and saves also the other image columns with images from a different property, but when i use the else blocks instead of setting