Re: Django 2.0 released

2017-12-02 Thread Adler Neves
I guess I noticed it updated the worst way possible: - A commit has been pushed - Continuous Integration tests passes - CI sends "it's safe to deploy" signal to production server - Downtime in production My mistake? My "requirements.txt" file did not mention package versions. Seei

Re: uwsgi stats middleware for Django

2017-12-08 Thread Adler Neves
Hello again, Etienne! The way you coded that, you are counting how many requests the server has replied before your request has been processed. A bit differently than you, I implemented it as a view (which is not hard to convert into middleware component) that uses bootstrap, so some small cha

Re: uwsgi stats middleware for Django

2017-12-08 Thread Adler Neves
forgot mentioning: the number of active requests is given by "Threads busy" progress bar and in "Busy threads" line of the table of the previous reply. Em sexta-feira, 8 de dezembro de 2017 14:07:42 UTC-2, Adler Neves escreveu: > > Hello again, Etienne! > >

Re: edit model properties in the admin

2018-02-14 Thread Adler Neves
You can have an OneToOneField in the profile referencing Django's User model with `related_name='profile'`, so you can access information from there as `user.profile.birthday`. An useful link: https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html About t

Re: Djangonauts: say no to selenium drug

2018-03-05 Thread Adler Neves
As you already saw the benefits from doing TDD, try looking at BDD ( django-behave ). It basically allows you to ensure that all usage scenarios from a feature you described works - it doesn't fully replace TDD. Em domingo, 4 de março de 2018 12:29:16 UTC