Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Cloudinary with django
Cloudinary provides a cloud-based image and video management services. It enables users to upload, store, manage, manipulate, and deliver images and video for websites and apps. the reason why i'm using cloudinary is because, i onced deployed my dja... -
How to download Pandas Dataframe as Excel or CSV in Django?
Implementation of downloading a file using Django and Pandas with information about HTTP Response. -
Phoenix vs Django - The battle of brave and wise
This is something I thought of on the toilet and decided to write about :D I'll also compare the two languages with JavaScript, but I won't compare the framework because, in my opinion, there's no Node framework that compares to their frameworks' fe... -
Django News - DRF 3.12.3, PyPI API tokens, articles, and more! - Mar 26th 2021
News Django REST framework 3.12.3 DRF 3.12.3 is out which includes a bunch of bugfixes. django-rest-framework.org The Python Package Index is now a GitHub secret scanning integrator GitHub and the Python Package Index (PyPI) are collaborating to help protect you from leaked PyPI API tokens. github.blog Sponsored Link Migrating from Django 1.7 to 3.1 is no small task. Learn how to successfully leapfrog a massive Django/Python upgrade. sixfeetup.com Articles Understand Django: Deploy a Site Live The 13th in a series of articles by Matt Laymn, the latest explains how and why to properly deploy a Django site. mattlayman.com Effectively Using Django REST Framework Serializers A look at how to use Django REST Framework (DRF) serializers more efficiently and effectively by example. Along the way, we'll dive into some advanced concepts like using the source keyword, passing context, validating data, and much more. testdriven.io How I built API for iOS Feeds in 10 minutes How to quickly add an API to an existing project. nemecek.be How managers should respond to defensiveness after feedback From Jacob Kaplan-Moss, some sage advice on managing developers. jacobian.org Carlton Gibson - Releasing Django 3.2rc1 Django Fellow Carlton Gibson's notes on the release process for Django 3.2 … -
Thoughts on Setting Up a Blog
This post was first sent to my newsletter on March 19th, 2021. You really ought to subscribe :) I blame Mahe for this post. Hey, Jason! Can you please write an article on how to build a website like yours, where I can post my blogs? Check out her blogs, here and here. Read more… (6 min remaining to read) -
The Complete Django Authentication System
This is the final step in making a basic Authentication system or App in Django. There are many other concepts that we will cover in our further tutorials. So in our previous section, we have successfully added models to admin and access them via the... -
Building Admin Dashboard Using Django Admin
In this section, we will learn what is Admin in Django and how to create a superuser account for your website and access the admin interface from the browser. So in our previous section, we have successfully created our URLs. Let's create a Post mode... -
What Are Django URLs?
In this section, we will learn what are URLs in Django and how to create them and link them with the view functions that we have created in views.py file. So in our previous section, we have successfully created our Templates. Let's create URLs for e... -
Understanding Templates In Django
In this section, we will learn what are Templates in Django and where to store templates or HTML pages in Django. Along with Templates, we will also see how to handle and store Static files in Django. Static files include Javascript, CSS, Images. So ... -
Python Web Conf 2021
The Python Web Conf is the most in-depth Python conference for web developers -
Effectively Using Django REST Framework Serializers
This article looks at how to use Django REST Framework (DRF) serializers more efficiently and effectively. -
What are Django Views?
In this section, we will learn what are Views in Django and how to use views.py to display webpage onto the browser on a web request. So in our previous section, we have successfully created our UserCreateForm form. Let's see what are Views in Django... -
What are Django Forms?
Django Forms In this tutorial, we will learn what are Forms in Django and how to use forms.py to connect with models to directly save the result into the database table. So in our previous section, we have successfully created our User model. Let's s... -
How I built API for iOS Feeds in 10 minutes
<![CDATA[ How I built API for iOS Feeds in 10 minutes Recently I added an API to my iOS Feeds project and I would like to share what it took to create it. Because I am mostly involved in the iOS development community I wanted to share a story from "the other side". If I had no experience with backends, I would think that these are always pretty complicated and involve a lot of moving parts.. So I want to show that that's not the case. If you select the right tools anyway. iOS Feeds runs on Django and it wouldn't be that hard to build the API without any packages. However since Django Rest Framework (DRF) exists and it is wonderful package, I decided go to with it. While I have a lot of experience with Django itself, DRF is different story. Anyway, let's see how I added the API. Django projects are usually separated into a smaller parts called "apps". So I created new API apps with this command: python3 manage.py startapp api And of course install the package: pip install djangorestframework This will do the basic scaffolding. Next I went by the DRF tutorial and created serializers.py … -
How managers should respond to defensiveness after feedback
I had a call a few weeks ago with a friend and fellow engineering manager, and we spent most of it talking about someone on her team who wasn’t responding well to feedback. He was performing several parts of his job pretty poorly, but when each time she told him that his work wasn’t acceptable, he pushed back. He argued, sometimes loudly, and refused to make the changes that she was asking for. My friend came to me pretty frustrated, not entirely sure how to respond to this guy. Most managers know this feeling: they’re doing their job as a manager, giving clear, specific, professional feedback but it’s going poorly. What should you do in a situation like this? -
Deploy A Site Live
In the previous Understand Django article, we looked at automated testing and how writing tests to check your Django project can be very valuable to save you time and make sure your site works for your users. Next, we’re going to look into how to share your site on the internet by understanding what it means to deploy a Django project. Deployment is the act of making your application live to your audience, and this article explains the actions you should consider to deploy effectively. -
Fluent in Django: First steps
Intro Knowing a language will only get you so far. If you have to build everything by yourself, you'll never get things done before the deadline. After you learned a programming language, it's smart to add a framework to your arsenal. Django is the m... -
Where do I begin? (repost)
This is a repost of an article I originally wrote for the Imaginary Realities e-zine, Volume 7, issue 3 back in 2015. It's not Evennia-specific but meant for a wider audience interested in making a text-based multiplayer game (MUD/MU*). Since IR is no longer active, I repost it here with only some minor cleanup. Where do I begin?by Griatch (image from deviantart.com/griatch-art)When a new user has everything installed and drops into Evennia’s IRC support chat or mailing list, there is one question that we regularly get in various variations: “Where do I begin?”How to actually start down that long road towards your own game is an important question. Unfortunately it has no one-size-fits-all answer. So it usually leads to a series of counter-questions. In this article I will try to (without being Evennia-specific) pose those questions in a way that would not fit in a chat window. What is your motivation for doing this?So you want to make a game. First you need to make a few things clear to yourself. Making a multiplayer online game is a big undertaking. You will (if you are like most of us) be doing it as a hobby, without getting paid. And you’ll be doing … -
Weeknotes (2021 week 11)
Weeknotes (2021 week 11) django-simple-redirects Django‘s built-in django.contrib.redirects app has a hard dependency on django.contrib.sites. I’m a big fan of NOT hardcoding the current site into the database or into settings except where absolutely necessary. Because of this I extracted the parts I liked into a standalone package with a questionable and needlessly derogatory name a few years ago. The old package is still around (no need to break setups) but the package has been renamed to django-simple-redirects, cleaned up for current versions of Python and Django and also been uploaded to PyPI. django-simple-redirects on PyPI django-simple-redirects on GitHub CKEditor instances in Django’s admin interface without IFRAMEs Currently incubating in feincms3. I have a strong dislike for scrollables inside scrollables, the proposed interface is much better. Of course I’m still thinking about reimplementing the whole editing interface using ProseMirror, but oh well… maybe another time, when I do not have any projects for months to come. -
How to download Pandas Dataframe as Excel or CSV in Django?
Implementation of downloading a file using Django and Pandas with information about HTTP Response. -
Django News - Django 3.2 rc1, DjangoCon(s) updates, and a whole lot more! - Mar 19th 2021
News Django 3.2 release candidate 1 released Django 3.2 release candidate 1 is the final opportunity for you to try out the mezcla of new features before Django 3.2 is released. djangoproject.com Django and Wagtail in Google's Summer of Code 2021 [volunteer opportunity] Django is a mentor organization for the 2021 Google Summer of Code. The project is looking for both Mentors and Students. djangoproject.com DjangoCon AU 2021? [volunteer opportunity] DjangoCon AU is looking for new organizers who are interesting in making the conference happen. djangocon.com.au Events DjangoCon Europe 2021 Early Bird tickets are on sale and will end on April 30. djangocon.eu Sponsored Link RSVP for the 3rd Annual Python Web Conference (Virtual) | March 22-26, 2021 50+ talks on hard Python problems including Machine Learning, AI, Big Data, Django, Plone, CI/CD, Containers, etc. Join JetBrains and Six Feet Up to discuss what the future holds. pythonwebconf.com Articles Show the timezone for datetimes in the Django admin by Simon Willison This is a nice tip to show timezone in the Django Admin. simonwillison.net Five Django Packages We Love at Monadical An overview of five popular 3rd party Django packages. monadical.com Dockerizing Wagtail App An article on Docker Compose and … -
How to Create a Simple Blog Using Python as Well as Django
Are you one of those people who has been dreaming of creating a simple blog to share your work? Does the idea of having that platform on your name to share your writing, has been making you feel excited to a great extent? However, the process seems vague because coding and web designing are a bit difficult. Is this the same with you? We get you! You are a complete beginner here, and that is fine. We assure you that you would celebrate the win here as a milestone. You need a little guidance and the knowledge of the right tools, and then you have your blog up and running in less than the expected time. Sounds good? Then let us swim into the world of Django Python and get started to create a milestone. What is a Django Application? As per the explanation by Django software foundation, "A Django application is just a Python package that is specifically intended for use in a Django project. The Django framework may use common Django conventions, such as having models, tests, URLs, and views submodules.” A Django Python blog application permits its users to create, edit, and delete posts. The homepage will … -
Disabling Python's Garbage Collection in Tests
In 2017, Instagram blogged about disabling Garbage Collection in production for their Django app. Recently Michael Kennedy tweeted about reducing Garbage Collection frequency for the Talk Python training app. Both reported about a 10% performance improvement! How? Where garbage comes from CPython uses a reference counting system for memory management. Each object has a count of the number of other objects that reference it. When the final reference to an object is removed, the count hits zero, so Python deletes it and frees up the memory. This works well, except for objects in a reference cycle. For example: a tree node might refer to its parent, and the parent refers to the child. Such objects never hit zero references, but the cycle as a whole can be freed when it only has internal references. The garbage collector runs periodically to detect and delete objects in such cycles. It pauses execution of Python code and does a sweep of all objects. Since this can take some time, CPython has some optimizations, such as checking older objects less frequently, but the garbage collection overhead is still noticeable. Let the garbage pile up Inspired by the reports of improvements from disabling garbage collection, … -
Python Web Conference - Calvin Hendryx-Parker
Six Feet UpPython Web Conference 2021@PythonWebConf on Twitter@calvinhp on TwitterLoud SwarmSupport the ShowThis podcast is a labor of love and does not have any ads or sponsors. To support the show, please consider recommending a book from LearnDjango.com, signing up for the free weekly Django News newsletter, or learning more about Button a simpler deployment story for Django. -
Considerations For Fat Models / Skinny Views
Currently at Giant our approach to building models for MVT (Model, View, Template) applications could be nestled under the methodology of Fat Models / Skinny Views (mantra: models should be ...