Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.
Integrate Django-Oscar-Accounts with Django-Oscar
This package uses double-entry bookkeeping where every transaction is recorded twice (once for the source and once for the destination). This ensures the books always balance and there is full audit trail of all transactional activity.
How to Customize Django Oscar Models, Views and URLs
In order to customize models, views and urls, you need to fork an Oscar core app in which model/view resides. Then you should be able to override any model/view classes.
Steps to fork/customize an app:
Python Memcached Implementation for Django Project
Memcache is a memory caching system that helps web applications and mobile app backends to improve performance and scalability. We should consider using Memcache when your pages are loading too slowly or your app is having scalability issues. In This Blog Post, Let's see how to use Memcached for server-side application caching.
CORS with Amazon S3 and CloudFront
CORS - Cross Origin Resource Sharing is a security measure to block macious scripts or resources loading from foreign domain origins. This security will become hurdle when want to load resources from Amazon CloudFront this is often encountered when we want to load fonts from CloudFront. Here are simple yet detailed steps to enable CORS on CloudFront.
Amazon AWS IAM Roles and Policies
When You want to Provide access to Amazon Web Services Console or if you're planning to provide REST API Keys to your Developers of a Third Party Person, Using Providing access to Root Account Console or API Keys is not advisable since they basically will have full level access. Instead, we can rely on IAM(Identity and Access Management). Require any support regarding AWS IAM Roles and Policies then contact development services to know more
Generic, Functional Based and Class Based Views in Django REST Framework
Writing Different Types of Views in Django-Rest-Framework.Writing Different Types of Views in Django-Rest-Framework. Django-Rest-Framework(DRF) supports three different types of views. They are Function Based Views, Class Based Views / Generic Views, ViewSets
Amazon SES - Handling Bounces and Complaints
In general while sending emails, we will prepare some recipient addresses as our mailing list, which is valid and our recipients want and expect our mail. But sometimes, some emails which are invalid will bounce, and if valid recipients do not want your mail, they may mark your email as spam in their email client. High bounce and complaint rates put your account at risk of being shut down. So in order to avoid such problem, we'll handle the bounces and complaints and will remove those emails for not sending any emails further.
Python Coding Techniques and Programming Practices
Coding techniques and programming practices are one of the features of a professional programmer. While writing code to solve a problem programmer should make simple choices and have to use basic techniques. This is completely depends on the programmers skill and expertise and how wisely he make choices.
Django Hosting on Amazon EC2 with Wordpress on Same Domain
Configuring the Wordpress as subdirectory can be tricky. In this tutorial, we will Setup a Django Website alongside a WordPress blog. Our Site Structure will be
example.com ------------> Django Website
example.com/blog -----------> wordpress
Django Custom Template Tags And Filters
Django Template Tags are simple Python functions that accept a value, an optional argument, and return a value to be displayed on the page.
First, In your application folder, create a "templatetags" directory at the same level as the models and views.
You want this directory to be recognized as a Python package, so make sure you create an empty "__init__.py" file. Next, create the Python file that will hold your tags and name it something like app_tags.py.