I learned about JWT Authentication in Django 🔐 Session Token vs JWT Token Session Token – Server stores the session data and checks it for every request. JWT Token – The token contains the data and is verified by the server, making it more secure and scalable for APIs. The server gives an access token for authentication and a refresh token to get a new access token when it expires. #Python #Django #WebDevelopment #BackendDeveloper #Learning
Django JWT Authentication vs Session Token
More Relevant Posts
-
Learn Python web development with our comprehensive guide, covering frameworks, tutorials, and best practices for building robust web applications https://lnkd.in/gZUFX4qN #PythonWebDevelopment Read the full article https://lnkd.in/gZUFX4qN
To view or add a comment, sign in
-
-
If you’re still manually editing your settings in your Django project for every deployment, you’re doing it the hard way. Inheritance isn't just for models and views—it belongs in your configuration too. 🏗️ Check out my latest guide on splitting Django settings into Base, Dev, and Prod environments to save time and prevent "forgotten line" disasters. Check the guide below! 📄👇 #Django #Python #SoftwareEngineering #BackendDevelopment #CleanCode
To view or add a comment, sign in
-
Docker tip that every Python developer should know: 🐳 Always use multi-stage builds for production Python images. Stage 1 (builder): Install all deps, compile extensions Stage 2 (runtime): Copy only what you need Result: My AI agent image went from 1.2GB to 180MB. Smaller images mean faster deploys and smaller attack surface. Bonus: combine with `uv` instead of pip for 10x faster dependency resolution. What Docker optimization has saved you the most time? #Docker #Python #DevOps #CloudNative #BackendDev
To view or add a comment, sign in
-
Learn Python web development with our comprehensive guide, covering setting up a development environment, choosing a framework, and building a simple web application with Python https://lnkd.in/gTDFTgpV #PythonWebDevelopment Read the full article https://lnkd.in/gTDFTgpV
To view or add a comment, sign in
-
-
𝗙𝗹𝗮𝘀𝗸 𝗧𝗿𝗲𝗻𝗱𝘀 𝗮𝗻𝗱 𝗙𝘂𝘁𝘂𝗿𝗲 Flask is a micro web framework written in Python. It has a minimalist structure, giving developers flexibility to shape their applications as they want. You can use Flask to build your web applications. It is simple and easy to use. Source: https://lnkd.in/g2hRk_BN
To view or add a comment, sign in
-
🐍 Python Developer Nuggets — Day 17 Retries in APIs Why do APIs fail even when everything looks correct? Because failures happen… and your system doesn’t retry smartly. The problem: Request fails once and stops User sees an error Even though it might have worked on retry The solution: Retry the request Add delay between retries Limit number of retries request = call_api() # retried on failure What changes: First attempt → may fail Retry → succeeds Better user experience Fewer visible failures Don’t retry everything Retry only when: Retry when: Network issues Timeout Temporary failures Don’t retry when: Wrong input Validation errors Golden rule: Retry only when failure is temporary Retry turns small failures into success #Python #Django #BackendEngineering #SystemDesign #CleanCode #Performance #DeveloperTips
To view or add a comment, sign in
-
-
🚀 Just Built My First API Integration Project in Python! Today I worked on integrating a live Quotes API using Python and the requests library. GITHUB Repo Link:- https://lnkd.in/gdx-b94v The project fetches random motivational quotes from an online API and displays them in real-time. 💡 Key learnings from this project: How to work with APIs and endpoints Handling JSON responses in Python Using response.raise_for_status() for error handling Writing clean exception handling with try-except Saving API data into a file with timestamps 📌 Built Features: Fetch random quotes from API Display quote & author in terminal Save quotes in a text file for future use This small project helped me understand how real-world applications communicate with external services. Next step: Building a GUI-based Quote Generator App 🚀 #Python #APIs #BeginnerProjects #CodingJourney #100DaysOfCode #Developers #LearningByDoing
To view or add a comment, sign in
-
-
Managing dependencies for Python data projects can get messy fast. Docker helps you create consistent environments you can build, share, and deploy with ease. https://lnkd.in/emJPPWRT
To view or add a comment, sign in
-
Python - Internet Bandwidth https://lnkd.in/dNTcezPz Why download a monitoring app when you can just write 24 lines of Python? Created a custom bandwidth tracker to get live data flow straight to my terminal which is better than a GUI anyway(I am just being lazy with GUI).
To view or add a comment, sign in
-
🔗 Built a Simple URL Shortener using Django similar to bitly. it is a simple logic, but powerful at scale. 🎥 Sharing a quick 50-sec demo of how it works 💻 Code (GitHub): https://lnkd.in/g6VmhPa6 This is just the starting point — planning to extend it further. Architecture in comments. #Django #BackendDevelopment #SystemDesign #Python #LearningByBuilding
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development