Blog
Page 127 of my articles, tutorials, and thoughts
Latest Articles
How to access the local Django webserver from outside world
# š How to Access the Local Django Web Server from the Outside World So you've successfully set up the Django web server using the built-in `runserver` command, and it's working like a charm when accessed locally. But now, you want to take it a step furt
How can I enable CORS on Django REST Framework
## Angular is not Django's Brother.. but they can be Friends! š¤ So, you're working on your Django project and want to take advantage of the Django REST Framework to build a powerful API. But, uh-oh! You're running into that pesky pesky CORS (Cr
How to get Request.User in Django-Rest-Framework serializer?
š Title: "Unlocking the Power of Request.User in Django-Rest-Framework Serializer š" Introduction: Hey there, tech enthusiasts š! If you're diving into the Django Rest Framework and finding yourself scratching your head over how to access the Request.U
Django - How to rename a model field using South?
# š» Django - How to Rename a Model Field using South? šŖš Have you ever found yourself in a situation where you needed to rename a field in your Django model? It can be quite a challenging task, especially if you are not familiar with the South migratio
Should I be adding the Django migration files in the .gitignore file?
# Should I be adding the Django migration files in the .gitignore file? š¤ So, you've been experiencing git issues because of migration conflicts in your Django project? Well, fret not! We've got you covered with a simple solution: adding the migration fi
Does SQLAlchemy have an equivalent of Django"s get_or_create?
# SQLAlchemy vs Django: Get or Create š **Introduction** When it comes to dealing with databases in Python, both SQLAlchemy and Django offer powerful features to simplify the process. One common requirement is retrieving an object from the database if i
Django CSRF check failing with an Ajax POST request
ššš¤ Django CSRF check failing with an Ajax POST request? Let's solve it! š©āš» Have you ever encountered a situation where your Django project's CSRF protection mechanism is rejecting your AJAX post request? Don't worry, we've got your back! š”ļø In thi
Django stops working with RuntimeError: populate() isn"t reentrant
## Django Stops Working with RuntimeError: populate() isn't reentrant So, you're happily coding away on your Django web application, everything is going smoothly, until one day you make a minor change to your `admin.py` file and boom š„, your website stop
Django REST Framework: adding additional field to ModelSerializer
# Django REST Framework: Adding Additional Field to ModelSerializer So, you're working with Django REST Framework and want to add an additional field to your ModelSerializer. You've come to the right place! š ## The Problem Let's take a look at the cod







