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 =
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
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
3 matches
Mail list logo