Re: Dynamic querysets?

2016-12-16 Thread orzodk
In your single view that processes every state I would define the queryset you're interested in: state_infos = { # 'Explicit is better than implicit.' 'AK': Jurisdiction.objects.get('Alaska'), 'AL': Jurisdiction.objects.get('Alabama'), } Then in the view: try: state_data =

Re: Django Password Validation

2016-05-18 Thread orzodk
Arun S writes: > Hi , > > I have a small issue with the Validation of Passwords in the Change Password > Page. > > Due to certain different requirements, i have written my own Custom Forms for > Change Password. > > Now in this, I would want to first Validate the Old

Re: Scaling Django

2016-02-03 Thread orzodk
While optimizing the code will bring you improvements and you shouldn't stop doing this, for the most part (as noted from Rafael's resources) you should update your architecture to support Django in scaling. As you mentioned, instead of hitting the DB for every multi-second API call you scale it