Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Adds a view permission to all your models in Django · GitHub
-
res(ts): Auto-generate TypeScript models for Django projects
rests generates TypeScript "models" and querysets, and corresponding Django URLs/Views. The TypeScript models and querysets are functionally similar to their Django equivalents. - Create/update/delete/filter/exclude Django models via TypeScript. - The URLs/views for the functionality of the above are auto-generated. - All queryset "lookup" keys are generated, allowing for type hints in TypeScript akin to what you would expect in an IDE with Django support. - Filter relations. - Automatic retrieval of foreign key relations (i.e on get). - The generated TypeScript code is self-contained: there is no package to innstall. -
Rich Text Fields and Faster Horses | Torchbox
Different ideas about editing -
PauLoX – Updating a Django queryset with annotation and subquery
-
orm - Unique fields that allow nulls in Django - Stack Overflow
class CharNullField(models.CharField): """ Subclass of the CharField that allows empty strings to be stored as NULL. """ description = "CharField that stores NULL but returns ''." def from_db_value(self, value, expression, connection, contex): """ Gets value right out of the db and changes it if its ``None``. """ if value is None: return '' else: return value def to_python(self, value): """ Gets value right out of the db or an instance, and changes it if its ``None``. """ if isinstance(value, models.CharField): # If an instance, just return the instance. return value if value is None: # If db has NULL, convert it to ''. return '' # Otherwise, just return the value. return value def get_prep_value(self, value): """ Catches value right before sending to db. """ if value == '': # If Django tries to save an empty string, send the db None (NULL). return None else: # Otherwise, just pass the value. return value -
[Noob] Where to run database migrations? : kubernetes
-
Django Production Deployment on GCP with Kubernetes
-
Deploying Django, Postgres, and Redis Containers To Kubernetes (Part 2)
-
Running Django on Kubernetes Engine | Python | Google Cloud
-
Fine Uploader Live Demo and Javascript Code Examples
-
nginx - How do I get django static files actually styling in Kubernetes? - Stack Overflow
-
Creating websites using React and Django REST Framework
-
django-user-accounts/forms.py at master · pinax/django-user-accounts · GitHub
-
The Needle in the Haystack: Wrangling Celery Workflows | The Dog People by Rover.com
-
PauLoX – Updating a Django queryset with annotation and subquery
-
Ruby on Rails vs. Django: Two Great Web Development Frameworks | Netguru Blog on Ruby/Ruby on Rails
-
dgk/django-business-logic: Visual programming framework for django
-
GitHub - philgyford/django-docker-example: My example Django setup using Docker for local development.
-
peter-woyzbun/rests
-
[untitled]
-
Django project optimization guide (part 2)
This is the second part of Django project optimization series. The first part was about profiling and Django settings, it's available here. This part will be about working with database optimization (Django models). -
How to Use Bootstrap 4 Forms With Django
-
django - Why does models.User allow invalid characters in username? - Stack Overflow
-
Creating multiple objects with one request in Django and Django Rest Framework - Stack Overflow
-
Django and AJAX Form Submissions – Say 'Goodbye' to the Page Refresh – Real Python