cursor = connection.cursor()cursor.execute()data = [r for r in cursor]return render(request, some_template_name, {'data': data})
refactor to use the ORM for those bits? and implement a team styleguide that says no direct connections unless its proven to work better?
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/TZ682yh2QfE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0b436954-3e31-4dd7-b1ae-2bf75d72f472%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/TZ682yh2QfE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b4e09fb6-b426-455d-aa3c-7191da404fc1%40googlegroups.com.
Currently in the process of evaluating Azure pipeline for CI/CD. So far, it’s been fairly simple to setup. Setup an Azure app this morning for a python/Django project, took 5 mins.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1245f937-1a92-4a64-90b5-63ad8a1ad53c%40googlegroups.com.
Are you sure?
My (possibly flawed) understanding is that if you can make the change in
a single transaction, no-one else can see what is happening until it is
committed. Effectively that would be an instantaneous change.
Depending on your data architecture you might need to make some parts
read-only for the 30 minutes prior to committing.