How much memory does my server use uploading files? Say you are creating a voice recording app and a user records 30 minutes audio clip and sends it to your django server. How much system memory do you eat up? The browsers media capture will record in its favored compressed audio format and send about…
All posts in django
Django Stripe integration tutorial – high level
High level flow of recurring product Django entities vs Stripe entities On the django side you’ll need a user column to store the tier of your user With stripe, you interact based on their entities. Note: below you only own “Django user” Concept Purpose Customer Represents our Django user on Stripe Product + Price Recurring…
Django and pgvector for semantic search
Goal: Semantic Search Setup pgvector You have a model with a field you want to make semantically searchable. Installation comes from: https://github.com/pgvector/pgvector-python Step: install pgvector on your machine Step: create a migration to activate Step: add a VectorField to your model Step: make migrations and migrate Setup sentence transformers for embeddings We will use the…
Create Django Project with scaffolding from Django Cookiecutter
I use Django Cookiecutter (link) 🍪 because its awesome! Find your python version Hit the github page to see what python version it supports, you should match whichever provider support you have. Create project: use pyenv to set python version Note: if your pyenv install –list is not listing the newest versions, you’ll need to…