Django community: RSS
This page, updated regularly, aggregates Django links from the Django community.
-
Django, HTMX and Alpine.JS: A Match Made In Heaven - DEV Community π©βπ»π¨βπ»
-
Django Tutorial Part 10: Testing a Django web application - Learn web development | MDN
-
timonweb/django-tailwind: Django + Tailwind CSS = π
-
How to Use JWT Authentication with Django REST Framework
-
The Django HTMX Stack
βThis is an excerpt from a larger interactive course and a book about building Single Page Applications with HTMX and Django. Where we use advanced techniques to build eight different single-page applications without Javascript frameworks. β -
Djangonauts don't let djangonauts write Javascript | README.txt
-
Writing your first Django app, part 1 | Django documentation | Django
-
How to Learn Django (2020) | LearnDjango.com
A guide to learning Django (Python) for beginners and intermediate/advanced developers -
https://lukeplant.me.uk/blog/posts/django-pagni-efficient-bulk-properties/
-
Running Django on the App Engine standard environment | Python
-
djvue Β· PyPI
-
Dynamic forms with Django and Vue.js | by Fatime Selimi | The Startup | Medium
-
Vue + Django β Best of Both Frontends | by Mike Hoolehan | Vue.js Developers | Medium
-
jessielaf/django-scan-models: Django scan models: A validator agnostic parser for django models to frontend validation
-
How To Build a Universal Application with Nuxt.js and Django | DigitalOcean
-
Django Integration with MongoDB Tutorial | MongoDB
Learn how Django and MongoDB work together to build powerful and reliable web applications that can be easily scaled through MongoDB Atlas. -
Gajendra Deshpande - Securing Django Applications - YouTube
-
Django and htmx To Do App
-
Django Tutorial: How to Upload Large Files
This tutorial will show you how to upload large files with Django. We will store these files on an S3 bucket using Digital Ocean Spaces.Configure a Django ProjectInstall the required packages required for using S3:pip install django-storages boto3Add the following to settings.py. You will need to add the credentials of your bucket in here.AWS_ACCESS_KEY_ID = "" AWS_SECRET_ACCESS_KEY = "" AWS_S3_REGION_NAME = "" AWS_S3_ENDPOINT_URL = ""Start a Django app:python manage.py startapp uploaderAdd the app to the INSTALLED_APPS in settings.pyFile ModelCreate a model to store the uploaded file relationship:class UploadFile(models.Model): file = models.FileField() uploaded_date = models.DateTimeField(auto_now_add=True)Run python manage.py makemigrations and python manage.py migrateViewsThe first thing to do is created a view that returns a signed URL. The boto3 package can be used to generate temporary signed URLs that allow you to upload files directly to your S3 bucket. Instead of uploading files through the Django project, the files will now be uploaded directly to the signed URL.import json import boto3 from django.conf import settings from django.http import JsonResponse from django.views import generic class SignedURLView(generic.View): def post(self, request, *args, **kwargs): session = boto3.session.Session() client = session.client( "s3", region_name=settings.AWS_S3_REGION_NAME, endpoint_url=settings.AWS_S3_ENDPOINT_URL, aws_access_key_id=settings.AWS_ACCESS_KEY_ID, aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY, ) url = client.generate_presigned_url( ClientMethod="put_object", Params={ "Bucket": "media", "Key": f"uploads/{json.loads(request.body)['fileName']}", }, ExpiresIn=300, β¦ -
Rewriting Reddit (Aaron Swartz's Raw Thought)
-
python - Django: resize image before upload - Stack Overflow
from PIL import Image from io import BytesIO from django.core.files.base import ContentFile -
Resizing Image on upload in Django | dave dash
-
dabapps/django-zen-queries: Explicit control over database query execution in Django applications
Gives you control over which parts of your code are allowed to run queries, and which aren't. -
peterbe/django-fancy-cache: A Django `cache_page` decorator on steroids.
A Django `cache_page` decorator on steroids. Contribute to peterbe/django-fancy-cache development by creating an account on GitHub. -
django-es/django-elasticsearch-dsl: This is a package that allows indexing of django models in elasticsearch with elasticsearch-dsl-py.