Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-02 Thread Daviddd
it strictly depends on your requirements and budget, but certainly I can say I'm getting in love with DigitalOcean (Spaces with CDN for static files), Kubernetes (LTD) and Helm. Il giorno giovedì 2 maggio 2019 11:51:57 UTC+2, Balaji Shetty ha scritto: > > Hi > > I do not have any experience

Re: Creating a Custom User Model Extending AbstractUser

2019-05-02 Thread Daviddd
Lovely explanation: https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html further: https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#substituting-a-custom-user-model Il giorno giovedì 2 maggio 2019 07:34:07 UTC+2, sagar ninave ha scritto: > >

Re: Custom token based authentication in Django rest framework

2019-05-02 Thread Daviddd
I would suggest to have a look at: https://getblimp.github.io/django-rest-framework-jwt/ D Il giorno giovedì 2 maggio 2019 11:34:32 UTC+2, Shubham Joshi ha scritto: > > I have created a token based custom authentication, in which after > registration, the token is generated, now whats the next

Django 2.2 creates multiple migration files when AbstractUser is used

2019-05-02 Thread Daviddd
Dear All, Empty DB, no migration is applied, I have a core app like: #core.models class Institute(models.Model): phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message= institute_phone_help_text) name = models.CharField(_('name'), max_length=255) description =

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
, tom wrote: > > On Monday, 26 August 2013, Daviddd wrote: > >> Sincerely, I don't know how I can create the dict without using >> defaultdict. >> >> D >> > > You can create it using a defaultdict if you want to, but once it is > created, and befo

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
On Friday, August 23, 2013 5:58:38 PM UTC+2, Daviddd wrote: > > Dear All, > > In my view I create the following dictionary of lists from a queryset > > #view.py > queryset = MyModel.objects.filter(owner=user, > dashboard=tab).order_by('position') > my_dict = col

Re: django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-26 Thread Daviddd
called position (the format is N-N-N-N) and I need to create the dict as in my question. Sincerely, I don't know how I can create the dict without using defaultdict. D On Saturday, August 24, 2013 2:51:56 PM UTC+2, tom wrote: > > On 23 Aug 2013, at 16:58, Daviddd <davide...@gmail.com &

django template loop collections.defaultdict(lambda: collections.defaultdict(list))

2013-08-23 Thread Daviddd
Dear All, In my view I create the following dictionary of lists from a queryset #view.py queryset = MyModel.objects.filter(owner=user, dashboard=tab).order_by('position') my_dict = collections.defaultdict(lambda: collections.defaultdict(list))for obj in queryset: