teleren/devto huggingface dataset:
Django e-commerce tutorials
Published: 2023-01-10 12:42:37

Building an e-commerce site with Django can be a complex task that requires knowledge of various web development technologies and frameworks, including Django itself, as well as HTML, CSS, JavaScript, and more. However, with some effort and dedication, it can be done.

Here are the general steps you can take to build an e-commerce site with Django:

Set up a new Django project: Use the **django-admin startproject** command to create a new Django project. This will create a new directory with the basic structure of a Django project, including a manage.py file that you can use to manage your project.

Create a new Django app: Use the **python manage.py startapp** command to create a new Django app within your project. This app will contain the **models, views, and templates** for your e-commerce site.

Define your models: In your app's **models.py** file, define the models that will be used to represent the data for your e-commerce site. These models will define the structure of your data and the fields that will be stored in the database. For example, you'll likely need to create models for products, categories, orders, and customers.

Create a database schema: Use the **python manage.py makemigrations** command to create a database schema for your e-commerce site. This will generate a set of migration files that you can use to create and update the database tables for your models.

Create views: In your app's **views.py** file, create views that will handle the logic of what happens when a user visits a specific URL on your e-commerce site. These views will retrieve data from the database, pass it to a template, and return the rendered template to the user's web browser.

Create templates: In your app's templates directory, create templates that define the structure of the HTML that will be rendered and sent to the user's web browser. You can use Django's template language to include dynamic data from your views and models.

Create URLs: In your app's urls.py file, create URLs that map specific web addresses to specific views. This will determine which view will handle a request when a user visits a specific URL on your e-commerce site.

Test the site: Use the **python manage.py runserver** command to start the development server and test your e-commerce site locally. Make sure to test all the functionality of your site and fix any bugs or errors that you find.

Deploy the site: Once you have tested your e-commerce site and you're satisfied that it's working correctly, you can deploy it to a live web server. This will involve configuring the server, setting up a database, and transferring the files for your Django project to the server.

Add functionality such as shopping cart, checkout, and payment integration using packages as mentioned before.
A step-by-step guide on how to install Debian on an Android device
Tags: debian, linux, android, installation
Published: 2023-01-10 12:39:36

Installing Debian on an Android device can be a bit of a challenging task, but with the right instructions and tools, it can be done relatively easily. Here is a step-by-step guide on how to install Debian on an Android device:

Step 1: Prepare your Android device

Make sure your Android device is rooted. If it is not rooted, you will need to root it first before proceeding.
Make sure your Android device has at least 4GB of storage space available.
Make sure your Android device is running Android version 2.2 or higher.
Step 2: Download the necessary files

Download the latest version of the Debian netinstaller from the Debian website. This is a small file that you will use to install the full Debian system on your Android device.
Download the complete Linux Deploy app from the Google Play Store. This app will be used to install and run Debian on your Android device.
Step 3: Install Linux Deploy

Install Linux Deploy on your Android device. Once the app is installed, open it and tap on the "Install" button.
Step 4: Configure Linux Deploy

In the Linux Deploy app, select "Debian" from the list of available distributions.
On the "Distribution" tab, select "jessie" as the version.
On the "Installation" tab, tap on the "Download" button. This will download the necessary files to run Debian on your Android device.
Step 5: Install Debian

On the "Installation" tab, tap on the "Install" button to begin the installation process. This will take a few minutes to complete, depending on the speed of your internet connection.
Step 6: Start Debian

Once the installation is complete, tap on the "Start" button to start Debian on your Android device.
You'll see a terminal appear, You can use that terminal to start and run Debian on your android device
You'll also see your android's IP address in the Linux Deploy app, you can connect via SSH to your Android device and use it as normal Debian system
Congratulations, you have now successfully installed Debian on your Android device!

Please keep in mind, there is no direct GUI support for Debian on android and depending on your device some functionality might not work correctly. It's best to test it first before using it on your main device.
How to Hold a Corporate Knowledge Audit Successfully
Tags: knowledgemanagement, knowledgeaudit, business
Published: 2023-01-10 12:37:05

_Companies, large and small, often conduct knowledge audits to identify company strengths and weaknesses. By analyzing accumulated company knowledge, gaps in capacity can be identified and company operations improved._

A corporate knowledge audit is an essential process for companies looking to gain visibility into how corporate knowledge is captured, shared, and managed 🧠. Nonetheless, a successful knowledge audit needs to look at both the internal and external sources of corporate knowledge, including customer support sessions and training documents.

**Why do corporate knowledge audits matter? 📚**
Although the process may be time and effort-consuming, a company knowledge audit can offer a number of valuable business benefits. As such, reducing operational costs and increasing efficiency are a few notable advantages that can be achieved as a result.

**What does the corporate knowledge audit process imply? ✍️**
The process usually consists of five steps:

1. Understanding corporate objectives
2. Assessing corporate knowledge networks
3. Mapping corporate know-how
4. Analyzing corporate content
5. Developing a plan of action.

**Which things should companies keep in mind when performing internal knowledge audits? 📝**
To ensure that a company successfully performs its knowledge audit, it’s important to:

- define clear objectives for the process;
- focus on each step in turn;
- ensure you are targeting the right subject matter experts;
- measure results based on previously identified criteria.

All in all, with a thorough understanding of the knowledge base within an organization, businesses gain insight into possible areas of improvement that would otherwise go unnoticed or remain underutilized. 

👉 Keep reading to find a detailed explanation of each of the aforementioned steps, an example case, as well as a handy checklist by OneBar: [How to Perform an Internal Knowledge Audit: Process, Example, Checklist](https://blog.onebar.io/how-to-perform-an-internal-knowledge-audit-process-example-checklist-904a7faf4570).
What is the AWS Builder Programme all about?
Tags: aws, awsbuilderscommunity, technicalwriting, techcommunity
Published: 2023-01-10 12:36:45

This is a programme that offers growth and networking opportunities to AWS enthusiasts .

![A picture of the AWS Builders banner](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e7y6oj8xc4vp57w68e11.png)
Do you love teaching, writing and sharing about technology? The Builders programme is the right place for you.
You will have access to resources like human resource and materials to grow in your career and you would be  part of an **elite set of people** privy to AWS products and services before they are launched in the public.

That's not all! You have access to AWS staff, Product Managers and AWS Heros!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b3f34qhts0xgv93b7qco.gif)

Guess what? That's not all, you say impossible right?
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwxctqirqh8mee6hky2l.jpg) You also get swags!!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2opyj8o1d82lndaigkr5.jpg)
What are you waiting for? Apply [here](https://amazonmr.au1.qualtrics.com/jfe/form/SV_bJwBQXrT2LhBawS)

To know more about the programme visit this [website](https://aws.amazon.com/developer/community/community-builders/)
Debugging Like a Boss: A Decade's Worth of Tips
Tags: webdev, programming, beginners, codenewbie
Published: 2023-01-10 12:32:40

![Debugging code is harder than writing it](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yg6me0y5b4orcxcu6fbh.png)

If you're a developer, chances are you've spent countless hours debugging code. Debugging can be time-consuming, frustrating and fun at the same time.

In my career as a developer, I've encountered my fair share of bugs. From minor issues to major production outages, I've tackled them all.

Here are my learnings in 25 lessons that will help you elevate your debugging game.

1. Bugs are inevitable. You just get better at fixing them.

2. Train your mind to see debugging as an opportunity to learn.

3. Start with breaking down the problem. Obvious but overlooked.

4. Understand what happened *before* trying to fix the bug.

5. “But things are randomly failing” No, there’s always a reason. You just don’t know it yet.

6. Assume nothing. Bugs can come from ANYWHERE.

7. Identify “what’s wrong” before “where it’s wrong”.
<img width="100%" style="width:100%" src="https://i.giphy.com/media/NAiVkVJnlGyDC/giphy.webp">

8. Investigate - When did the code work last? What has changed since then?

9. Never skip reading the error message.

10. Google it. Your issue is (most likely) faced by thousands everyday.

11. When debugging code, never try to prove yourself right.

12. Stop blaming JavaScript runtime. It’s your code that needs fixing.

13. Debugging is hard if you do it without a plan.

14. Explain your code out loud. Step by step. (Check Rubber-Duck-Debugging).

15. When things stop making sense, start thinking on paper.

16. Getting stuck is normal. It’s a signal to approach the problem differently.
<img width="100%" style="width:100%" src="https://media.giphy.com/media/MHwZHOPD8ol4k/giphy.webp">

17. Ultimate debugging hack is taking a walk.

18. Debugging tools are your best friend if you value your time.

19. Fixing a bug with a friend or colleague is criminally underrated.

20. Learn to ask for help on an issue. Give back by helping others.

21. Bug in production? Revert breaking change rather than pushing a fix.

22. Debugging a production system is an independent skill.

23. Document your learnings and share them with the community.

24. Debugging teaches you what you *should* know but don't.

25. To improve debugging skills — fix more bugs. Cliche for a reason.

That's it!
 
Hope you found these lessons helpful.
 
If you liked this post, follow me for more of these 🙂
Also, would love to hear your best debugging tip in comments 👇
Moonly weekly progress update #31
Tags: javascript, blockchain, crypt, saas
Published: 2023-01-10 12:29:52


![](https://cdn-images-1.medium.com/max/3200/1*RQKEMgeT9m8EGI4LujV4Dw.png)

Hello everyone, I hope you are all feeling great!

Despite the holidays, many technical things have been completed, which are very important for us in this final phase. All the pieces are slowly coming together and we are very excited for the days ahead!

**Weekly devs progress:**

* Wrote save verification setting API

* Integrated API to create verification setting

* Wrote save verification rule API

* Added logic to get guildList during discord linking on Moonly

* Researched ways to optimize disk space

* Wrote API to match the user’s guild with the admin’s pre-defined guild and connect it with Moonly

* Wrote API to get block-chain metadata of NFTItem that related to the user and specific collection

* Integrated that API on moonly-bot

* Wrote logic to assign discord roles to users that fulfilled the admin’s rule

* Designed architecture to update the holder’s discord role

* Designed DB schema to track the holder’s role

* Wrote logic to check the holder’s role and NFT periodically

* Fixed the CLS jump on live events for all pages

* Fixed CSS issue on live event’s bottom divs

* Fixed ‘profile with no NFT in his wallet’ issue

**Staking (Locking):**

* Created Access controller for validating “Collection authority”

* Added ‘Collection authority check’ in “Collection owner access control”

* Updated frontend code for SC changes

* Upgraded anchor client library

* Added Recoil for storing data

* Added UI and connected API for initializing “global state”

* Fixed issue with SC and ‘Collection Remove’

* Added Token Deposit for a collection function and UI

* Added Token Withdraw function

* Added a generalized UI for “boost over time”

* Fixed Smart-Contract collection address related issues when staking

* Fixed Staking function in the frontend and better error handling

* Fixed Withdraw function frontend

* Fixed a broken API from the metadata library

Very interesting things are happening with Bonk Token, we wrote a small post about it:

[https://moon.ly/blog/what-is-bonk-token-should-you-buy-it/](https://moon.ly/blog/what-is-bonk-token-should-you-buy-it/)

Upcoming NFT projects to mint:

[https://moon.ly/nft/meltdown](https://moon.ly/nft/meltdown)

[https://moon.ly/nft/nitro-badge](https://moon.ly/nft/nitro-badge)

[https://moon.ly/nft/elite-emperors](https://moon.ly/nft/elite-emperors)

Minted projects worth mentioning:

[https://moon.ly/nft/degenerate-ape-academy](https://moon.ly/nft/degenerate-ape-academy)

[https://moon.ly/nft/simmple-labs](https://moon.ly/nft/simmple-labs)

[https://moon.ly/nft/dandies](https://moon.ly/nft/dandies)

[https://moon.ly/nft/solgods](https://moon.ly/nft/solgods)
Need advice
Published: 2023-01-10 12:24:03



I am a learner of a full stack web and mobile developer training (bootcamps) in Mali. My final project [](https://trello.com/invite/b/o4RaJ2bt/ATTI1c021c34a3caf3da4315a900007b9201C5AF0632/mon-projet) is to make a generic survey application ie collect, analyze and diffisuer data in Angular, ionic or flutter and springboot I am looking for help because there is not much example to follow in this area. Thank you in advance and I hope you will accompany me in this project which is very important to me.

I'm doing a study on figma [](https://www.figma.com/file/V9USsZ0v7KWjj42k07P1bd/Maquette-outil-d'enqu%C3%AAte?node-id=61%3A35&t=shVfhoNuPEokQ7Qq-1) and I'm hoping to get some advice on how to build an offline collection application and how to integrate an analysis api and make it easier to distribute in the application itself. I use the angular framework for the dashboard, flutter for the mobile application and springboot for the creation of the api, the 3 framework are mandatory to validate my training.
this is my api link [](https://github.com/Kalifasenou/Backend_surveyGenerikTool.git). I have start it but i some advice as what we write to have the function in a data collecte app on line and offline, with some basic analyse and import ou export data.

some app like jotform or CSPro wtih CSEntry.
What is Salesforce customer 360 in Salesforce?
Published: 2023-01-10 12:19:35

Salesforce Customer 360 is a suite of tools and capabilities within the Salesforce platform that allows companies to get a comprehensive view of their customers across different departments and systems. It enables businesses to unify and connect customer data from multiple Salesforce instances and external systems into a single source of truth, to deliver a personalized and seamless customer experience.

The main features of Salesforce Customer 360 include:

**Data Integration:** Salesforce Customer 360 provides a set of tools and capabilities for integrating customer data from different systems and sources, including other Salesforce instances, marketing automation platforms, and ERP systems.
Data Governance: Salesforce Customer 360 provides a set of tools for managing and governing customer data, including data quality, data security, and data privacy.
**Personalization: **[Salesforce Customer 360](https://www.advanz101.com/customer-360/) provides a set of tools for delivering personalized experiences to customers, including personalization rules, segmentation, and targeting.
Analytics: Salesforce Customer 360 provides a set of analytics and reporting capabilities for understanding customer behavior and preferences, including real-time analytics and predictive analytics.
The goal of Salesforce Customer 360 is to give companies a 360-degree view of their customers, enabling them to deliver personalized and seamless experiences across different channels, such as email, web, mobile, chat, and voice. It allows businesses to provide better customer service, increase sales and customer loyalty, and also improve the effectiveness of marketing campaigns.

To utilize the [Salesforce Customer 360 solution](https://www.advanz101.com/customer-360/), it's important that your organization has a strategy and plan for data governance, integration and personalization in place, and also ensure that your data is clean and consistent, otherwise it might be hard to get a holistic view of the customer. It's always recommended to consult a Salesforce Partner with experience in implementing [Salesforce Customer 360](https://advanz101.com.au/salesforce-cpq-solution/) to ensure the solution is correctly set up and configured to meet your organization's needs.
Events in react
Published: 2023-01-10 12:09:17

Events - Fundamentals

- Vanilla JS

```
const btn = document.getElementById('btn');

btn.addEventListener('click', function (e) {
  // access event object
  // do something when event fires
});
```

- similar approach
- element, event, function
- again camelCase

```
const EventExamples = () => {
  const handleButtonClick = () => {
    alert('handle button click');
  };
  return (
    <section>
      <button onClick={handleButtonClick}>click me</button>
    </section>
  );
};
```
**most common
**
- onClick (click events)
- onSubmit (submit form )
- onChange (input change )

```
function BookList() {
  return (
    <section className='booklist'>
      <EventExamples />
      {books.map((book) => {
        return <Book {...book} key={book.id} />;
      })}
    </section>
  );
}

const EventExamples = () => {
  const handleFormInput = () => {
    console.log('handle form input');
  };
  const handleButtonClick = () => {
    alert('handle button click');
  };
  return (
    <section>
      <form>
        <h2>Typical Form</h2>
        <input
          type='text'
          name='example'
          onChange={handleFormInput}
          style={{ margin: '1rem 0' }}
        />
      </form>
      <button onClick={handleButtonClick}>click me</button>
    </section>
  );
};
```
**Event Object and Form Submission**

```
const EventExamples = () => {
  return (
    <section>
      <form>
        <h2>Typical Form</h2>
        <input
          type='text'
          name='example'
          onChange={(e) => console.log(e.target.value)}
          style={{ margin: '1rem 0' }}
        />
      </form>
      <button onClick={() => console.log('you clicked me')}>click me</button>
    </section>
  );
};
```
How to improve the page speed index of your website?
Tags: webdev, javascript, programming, pagespeed
Published: 2023-01-10 12:08:14

Are you tired of dealing with sluggish website performance and wondering how to measure and improve it?

To measure a webpage’s performance, there is a standardly called [core web vitals](https://web.dev/vitals/).

You might know the advantages of a page-speed score for a website. However, I would like to mention a few.

1. **Better search engine rankings:** A website with a high page speed score may be more likely to appear at the top of search engine results.
2. **Improved user experience:** A fast-loading website can improve the overall experience for users, as they are less likely to become frustrated and abandon the site.
3. **Increased conversions:** A faster website can lead to higher conversion rates, as users are more likely to complete a desired action, such as making a purchase or filling out a form, if the site loads quickly.
4. **Improve Accessibility:** A higher speed score means that the site is easily accessible to a wider range of users.

Here's an outline of the blog.

- How to optimize images
    - Images with height and width property
    - Avoid lazy loading for above-the-fold content(first visible content)
    - Preload images
- How to optimize Javascript and CSS
    - Use a CDN (Content Delivery Network) links
    - Caching
    - Use async/defer
    - Minify files

For a detailed article, check out [canopas blog](https://blog.canopas.com/how-to-improve-the-page-speed-index-of-your-website-a727af7d4d9d).
AWS Prescriptive Guidance
Tags: aws, architecture, cloud
Published: 2023-01-10 13:39:45

---
title: AWS Prescriptive Guidance
published: true
date: 2023-01-10 12:00:00 UTC
tags: aws, architecture, cloud
canonical_url: https://jasonbutz.info/2023/01/aws-prescriptive-guidance?utm_source=dev.to&utm_content=aws-prescriptive-guidance
---

Did you know AWS has a library of guides, strategies, and patterns that have been reviewed and can help in a variety of situations? It wasn’t something I heard about until late last year, but the resources are fantastic. Whether you are solutioning for an RFP or getting ready lead your teams through the next quarter’s feature set you should look through the library.

I’m a big supporter of serverless architectures, and with serverless often comes queues (which means AWS SQS in this case). The prescriptive guidance library has a resource titled _[Efficiently process Amazon SQS messages by using AWS Lambda](https://docs.aws.amazon.com/prescriptive-guidance/latest/lambda-event-filtering-partial-batch-responses-for-sqs/welcome.html)_ that takes you through different considerations you need when using SQS and Lambda together. It’s a handy resource to provide to a senior engineer or tech lead on your project.

Not everything in the library is highly technical, for example, _[AWS Change Acceleration 6-Point Framework and OCM Toolkit](https://docs.aws.amazon.com/prescriptive-guidance/latest/strategy-ocm/welcome.html)_. Moving to the cloud can be a massive shift for some organizations and this change acceleration framework lays out steps to help your organization effectively move to the cloud. The entire strategy is very business-focused, but still accessible to technical leaders.

I’ve been able to leverage the library both with my teams as well as while designing solutions for sales endeavors. The prescriptive guidance library should be one of those bookmarks you use before you dig too deep into a new problem. A quick search could save you hours of work. The [AWS Prescriptive Guidance library](https://aws.amazon.com/prescriptive-guidance/) is available on the AWS website, and if you work for an AWS Partner there is a [separate library](https://apg-library.amazonaws.com/)that has some additional resources that may not be fully reviewed yet.
Tableau Training in Chennai
Published: 2023-01-10 11:53:57

Learn how to use Tableau to further your career in the Business Intelligence and Data Analytics field at SLA's [Tableau Training in Chennai](https://www.slajobs.com/tableau-training-institute-in-chennai/
). Learning about graphs, filters, parameters, maps, and Tableau dashboards are all part of the Tableau training course. Through the Tableau Certification program, you will learn how to use Tableau Reader, Tableau Public, Tableau Desktop, and the process of integrating Tableau with Big Data and R.
https://www.slajobs.com/tableau-training-institute-in-chennai/