Django community: RSS
This page, updated regularly, aggregates Community blog posts from the Django community.
-
Scale-up your E-Commerce Business with Salesforce Commerce Cloud
The Salesforce e-commerce cloud comes with powerful qualities that help businesses to connect with their prospective leads and turn them into customers. -
New and Upcoming Features of Salesforce Sales Cloud
Salesforce has launched its latest cloud technology 'sales cloud 360' that combines new sales features and helps businesses generate more revenue. -
Difference between Salesforce Service Cloud and Salesforce Sales Cloud
By knowing the difference between Salesforce Sales Cloud and Salesforce Service Cloud will you give the clarity what your business requires to improve. -
AWS Lambda - Best Practices
After Years of Developing Lambda Scripts from creating Serverless Applications to Pipelining your Tasks, Here are the Best Practices that we follow. -
Famous Apps Built with React Native
Famous Apps built with React Native -
Django: How to let user download a file
<![CDATA[ Django: How to let user download a file In this post, we will look at how to download a file with Django. Specifically how to let users download ImageField or FileField content. While there are a few ways to accomplish this, using FileResponse works really well. The most basic version is as simple as returning the FileResponse from your view like this: return FileResponse(model.image.open()) Here the image property is ImageField on a model. This won’t download the file; rather the browser will open it in a new tab in most cases. A similar thing will also happen for other file types that browsers can preview. To download it, we should specify the as_attachment parameter: return FileResponse(model.image.open(), as_attachment=True) The downloaded file will keep whatever filename used during upload (assuming you aren’t generating those yourself during save), which may not be optimal. Custom filename Wanting to “override” the filename was the main reason for this blog post. It turns out, you can pass any filename you wish to FileResponse, and that is the one browser will use when saving the file. Passing the filename parameter will allow you to offer descriptive filenames and possibly avoid embarrassing moments. return FileResponse(model.image.open(), as_attachment=True, filename="Export.png") … -
Django News - Django 4.1 release candidate 1 released - Jul 22nd 2022
News Django 4.1 release candidate 1 released Django 4.1 release candidate 1 is the final opportunity for you to try out the profusion of new features before Django 4.1 is released. djangoproject.com Distinguished Service Award Granted to Naomi Ceder Naomi Ceder, a longtime Python activist, and organizer has been recognized with the PSF’s Distinguished Service Award. blogspot.com Sponsored Ad Hiring Senior Software Engineer- Backend Python Engineer (Remote) Collins Aerospace is hiring a Remote Senior Backend Python Engineer to support the Connected Aviation Solutions organization. For expedited referrals/questions, please send resume/CV to jason.bowman@collins.com or mention Jason Bowman in your application submission. rtx.com Articles How To Test Django Models (With Examples) A beginner-friendly guide to testing models that includes good ideas around what to test: slugs, uniqueness, date added defaults, etc. ctrlzblog.com It’s Time to Say Goodbye to These Obsolete Python Libraries Forget about os.path, random, pytz, namedtuple and more and start using the latest and greatest Python libraries. plainenglish.io "Building the blog while flying it" Series Building the blog while flying it is a five-part series on adding Tailwind CSS to your projects. dev.to Tutorials The Great Continuum: Getting Started with the ButterCMS Django Starter Kit A tutorial on using the … -
Postgresql Installation and Management Basics
PostgreSQL or simply postgres is the most advanced, SQL-compliant and open-source objective-RDBMS. In This Article, you will learn how to Install, Connect and Manage a postgres database. -
How to Do Page Redirections with Nginx
Here we learn how to redirect a www to non-www or vice-versa also we see how to redirect pages. We will see differences between 301 and 302 redirection. -
Configuring WordPress Blog as Sub-Directory Alongside Django in Nginx
Using regular expressions within Nginx we can bind urls to particular application servers, below we will configure wordpress blog and django site to be deployed on same domain name with each having their respective application servers i.e. ‘fastcgi’ for wordpress and ‘uwsgi’ for django. -
Web Hooks for Gitlab using PHP and Shell Scripts
Web-hooks play vital role if you are in Continuous Integration(CI). Higher Level organizations follow GitLab for CI purposes if they operate on open source solutions and at times every developer needs to check his code integrity. At times like that, web-hooks can help us. -
ELK Stack for Parsing your Logs
In This Tutorial we will look onto parsing your syslog files and store and display it in interactable website. We will be using ELK Stack for this purpose, before Jumping Into ELK Stack Lets see what each meansE - Elasticsearch: open source search and analytics engine, which stores data and relies on Apache Lucene for searching.L - LogStash: Logstash is an open source data collection engine with real-time pipelining capabilities. -
Elastic Search Security Measures
After Installing Elastic Search in production, many new developers leave it unconfigured. In this Post, we will look into important config file changes and its implications -
ELK Stack for Parsing your Logs- Part 2
In Previous Tutorial we looked into Setting up EL Server which can ingest your Syslog files. In this Post, you will learn about pushing your Log Files to EL Server and How we will Display it in Kibana with Interactive Graphs. -
Using Flexbox with React Native
React Native is very similar to React, but one of the major difference is styling the components. For styling we use similar to CSS, is called Flexbox Layout. Mainly Flexbox purpose is to provide fixed layout on different screen sizes. -
Daemonizing any Command with SUPERVISOR
Daemonizing a command means to make it run as a background process.so when we have a command that we want to daemonize there are many ways to do it, most common methods are:using upstart2. adding it to /etc/rc.local3. creating a script in /etc/init.d and adding them to runlevel folders manually (i.e. incase you want to start, stop a command) -
Tracking Location Using React Native in Android
To track the location in react native we have ‘geolocation’. Geolocation support both ios and android. Before using the geolocation we need to request to access the user location by adding below line in android/app/src/main/AndroidManifest.xml. -
Best Cross Platform Framework for Mobile App Development
React Native is an open-source cross platform for mobile application(Android and IOS) development, developed by Facebook. Important things to consider React Native for mobile apps: High Development speed, Low-cost and High Performance. -
Django on GAE (Google App Engine)
Google App Engine (often referred to as GAE or simply App Engine) is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand. -
Celery With Supervisor
Celery is a task queue with focus on real-time processing, while also supports task scheduling. Task queues are used as mechanisms to distribute work across multiple threads or machines. A task queues input is a unit of work called a task,dedicated worker processes and constantly moniter the queue for new work to perform. Celery communicates via messages using a broker to mediate between workers and clients. -
Django Hosting on Nginx with Uwsgi for High Performance
Quick guide to host django application using uwsgi and nginx which offers better resource utilization and performance . -
TMUX - Sharing Terminal between Users
More Often you wouldve come across sharing screens with applications like Teamviewer, Windows Remote Desktop Connection or remmina (if you're a linux user). But if you want to share only your terminal, you can look upto Tmux. -
Securing Elastic Search Instance with Shield
Shield allows you to protect elastic search data with a username and password. It provides additional functionalities like encryption, role-based access control, IP filtering. It is Official Plugin of Elasticsearch which embeds well with other elastic search products like kibana and log stash. Initially, Shield is available for 30days try after which you can renew the license -
Ansible Galaxy Introduction
Ansible Galaxy is the hub of ansible scripts contributed by users. To follow this article its important that you know about ansible. We have a simple, easy to follow blog about ansible scripting here(https://micropyramid.com/blog/how-to-deploy-django-with-uwsgi-and-nginx-using-ansible-play-book/). -
MONGODB GROUP() VS MAPREDUCE VS AGGREGATION Framework
The group() command, Aggregation Framework and MapReduce are collectively aggregation features of MongoDB. group(): Group Performs simple aggregation operations on a collection documents. Group is similar to GROUP_BY in mysql. Output format : Returns result set inline. Sharding: Its not support in shared environment. Limitations: