Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Twitter
RT @DjangoConEurope: #djangocon 🚲 has three days full of jam packed days of amazing talks that aim to delight and enlighten the #django… -
swell.sh: Web-based Terminal for Bash designed for mobile with autocomplete suggestion & gesture typing keyboard
-
How to Configure Multiple Databases in Django the Simple Way
-
Django REST framework serializer without a model - Stack Overflow
-
Django REST framework ViewSet when you don’t have a Model
-
Home - Django REST framework
-
Asynchronous Tasks with Flask and Redis Queue | TestDriven.io
-
Deploying a Django App to AWS Elastic Beanstalk – Real Python
-
Query Expressions are Amazing | Caktus Group
-
The Dramatic Benefits of Django Subqueries and Annotations
-
How to Setup Amazon S3 in a Django Project
In this tutorial you will learn how to use the Amazon S3 service to handle static assets and the user uploaded files, that is, the media assets. First, I will cover the basic concepts, installation and configuration. Then you will find three sections covering: Working with static assets only Working with static and media assets Mixing public assets and private assets -
App Developers UK | Leading Software Development Agency | DabApps, Brighton, UK
Blog Post by Jamie Matthews -
python - Move models between Django (1.8) apps with required ForeignKey references - Stack Overflow
-
python - How to move a model between two Django apps (Django 1.7) - Stack Overflow
-
How to move a model between two Django apps | Mikalai Radchuk
-
OPUS - Data Search for Outer Planets NASA Mission Data - NASA PDS Ring-Moon Systems Node
-
python - Per-transaction isolation level in Django ORM - Stack Overflow
As far as I know, there's no way to temporarily change the transaction isolation level in Django for an existing database connection(s). However, you could setup another database connection(s) that mirrors your default database connection(s) but sets the transaction isolation level. e.g. in your settings.py: DATABASES = { 'default': { 'NAME': 'app_data', 'ENGINE': 'django.db.backends.postgresql', 'USER': 'postgres_user', 'PASSWORD': 's3krit', }, 'serializable': { 'NAME': 'app_data', 'ENGINE': 'django.db.backends.postgresl', 'USER': 'postgres_user', 'PASSWORD': 's3krit', 'OPTIONS': { 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_SERIALIZABLE, }, }, } To use the serializable transaction level, you could: Use the using() QuerySet method e.g. User.objects.using('serializable').all Add a custom manager that specifies the database connection with the transaction isolation level class SerializableUserManager(models.Manager): def get_queryset(self): return super(SerializableUserManager, self).get_queryset().using('serializable') -
Django ORM and locking table - Stack Overflow
from contextlib import contextmanager from django.db import transaction from django.db.transaction import get_connection @contextmanager def lock_table(model): with transaction.atomic(): cursor = get_connection().cursor() cursor.execute(f'LOCK TABLE {model._meta.db_table}') try: yield finally: cursor.close() -
App Developers UK | Leading Software Development Agency | DabApps, Brighton, UK
-
App Developers UK | Leading Software Development Agency | DabApps, Brighton, UK
-
Best Online Django Video Tutorials (2019) - Will Vincent
-
App Developers UK | Leading Software Development Agency | DabApps, Brighton, UK
Blog Post by Jamie Matthews -
GitHub - SectorLabs/django-postgres-extra: Bringing all of PostgreSQL's awesomeness to Django.
-
Simple or fancy UPSERT in PostgreSQL with Django - Peterbe.com
-
django/related_descriptors.py at master · django/django · GitHub
Source code for Django RelatedManager set() method.