Over the last year, we’ve been adapting DBSSIN (Database-Spreadsheet-Ingestion) to better fit current projects, and it’s come with its share of development challenges. The ARCsoft team has been pushing the library forward, cleaning up the mapping system, and handling some unique security and access issues.
One of the most powerful features that come with Django is the ORM
(object-relational mapping). It allows you to easily fetch data from the
database by writing intuitive Python code. However, if you don’t know (maybe
read a different article if you do), there is more to
Django’s ORM than the simple objects.get
and objects.filter
. This article
aims to take your ability to use the Django’s ORM to the next level.
At ARCsoft we have begun building a repository of custom Helpers libraries that will be included in future projects. First on the docket was looking at several giant UI test code blocks in Django. These often span dozens of modules and thousands of lines of code. Quite common throughout was the use of repetitive and non-descriptive JsonResponse
calls. Let’s walk through how we compartmentalized these calls into a more cohesive set of custom JsonResponse
classes and how we added them to our repository of custom methods that we will use here at ARCsoft. Along the way we will document the setup of the Helpers repository and the essential inclusions to a project for the package to be able to be used, imported, and published.
Authentication and authorization are two vital concepts in web development. You don’t want somebody to break into your house, view your private rooms, rearrange furnitures, or take away your stuffs. The same thing applies for your web app. You don’t want a random person to see private contents, make changes or delete important information. Fortunately, Django provides developer an easy way to implement authentication and authorization out of the box.
Are you eager to add a touch of magic to your Django web applications? Well, look no further than Django signals! These little messengers enable different components of your app to communicate seamlessly, without the hassle of tight coupling. Let’s dive into how Django signals work and how they can elevate your development experience.
We found as development on ZooDB progressed and the amount of data involved increased, especially with intricate queries involved in each view, page loads became slower than we'd like. In this blog post we describe some of the strategies we used to improve performance.
In today’s digital landscape, where security and performance are paramount concerns, developers strive to implement robust solutions to monitor activities within their applications while optimizing performance. Django, a high-level Python web framework, offers a great set of tools and packages to assist developers in achieving these goals. In this blog post, we will explore a powerful Django package: Django Easy Audit for logging and integration of Django applications with Redis for caching.
It is common and considered good pratice for applications to be containerized in production environments. Conterization allows apps to run in a separate environment from the host machine, which results in performance reliability, to implement multiple micro services that work closely with each other, and to be shipped with ease. In this article, Archie will show a surface-level way of how a Django application can be containerized with Docker.
Django is an extensive web framework with a rich set of libraries, functions and tools to aid the developer. This blog post is a quick reference on some features you may find useful.
Recently I did some work on our models and ingestion script and learned about some unique cases in Django’s Object Relational Model (ORM) which I’d like to describe here. For an overview of the ingestion process see Priya’s blog post.