Django
Product detail page function realization The data to be displayed on the product details page are the product classification and specific product data. We add the view function detail in the views.py module of the goods application to process the display of product details def detail(request): UTF-8...
Posted by hbalagh on Tue, 18 May 2021 05:45:26 +0930
admin background management and database relation mapping 1. admin management background django provides a relatively complete background data management platform, which can load all registered model classes into the admin management background, and users can visually manage the data after loggUTF-8...
Posted by seodevhead on Fri, 21 May 2021 06:04:56 +0930
1. Routing Configuration # urls.py from django.conf.urls import url from django.contrib import admin from app01 import views urlpatterns = [ url(regular expression, views View functions, parameters, aliases), url(r'^admin/', admin.site.urls), url(r^test/[0-9]{4})/$,views.test # Combination of UTF-8...
Posted by mephistoo on Sat, 22 May 2021 02:00:03 +0930
Big data visualization of regional distribution of visitors in Django blog -- ecarts mapping, geoip2 obtaining geographical location Today, an idea came out. I want to visualize the geographical distribution of visitors to my personal blog and display it on my message board. Without saying mucUTF-8...
Posted by garyr on Sat, 29 May 2021 08:15:45 +0930
1. Introduction of Django Middleware What is middleware? Middleware is a framework of hooks into Django's request/response processing. It's a light, low-level "plugin" system for globally altering Django's input or output. Official statement: Middleware is a framework-level hook for handling DUTF-8...
Posted by weknowtheworld on Wed, 02 Jun 2021 04:04:08 +0930
1, What is the Auth module The Auth module is the user authentication module of Django When we develop a website, we inevitably need to design and implement the user system of the website. At this time, we need to implement functions including user registration, user login, user authenticationUTF-8...
Posted by gdboling on Thu, 03 Jun 2021 03:14:43 +0930
1 Introduction to middleware The middleware in Django is a lightweight, low-level plug-in system, which can intervene in the request and response processing of Django and modify the input or output of Django. The design of middleware provides a non-invasive development method for developers andUTF-8...
Posted by PHPTOM on Sat, 05 Jun 2021 05:50:09 +0930
ModelSerializer Tutorial source Dusai Django Vue series Blog links Portal In the previous chapter, we wrote a simple serializer with the help of DRF library # article/serializer.py from rest_framework import serializers class ArticleListSerializer(serializers.Serializer): id = serializers.IntegUTF-8...
Posted by mikeweb on Sat, 12 Jun 2021 02:29:09 +0930
01 Project Creation 1.1 Address Configuration Start the virtual environment first + open the interface of the pagoda Note that the previous version of mysql installed with the video was 5.5, but now you want to install 8.0 instead. Select Add Site in the Site Submenu Bar Settings forgot to capUTF-8...
Posted by greenie2600 on Mon, 21 Jun 2021 04:41:02 +0930
1: Preface When it comes to the data interaction between the front and back end, we often encounter cross domain problems. That's the mistake Access to XMLHttpRequest at 'http://127.0.0.1:8000/api/test/' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: No 'Access-Control-AllUTF-8...
Posted by jerastraub on Wed, 07 Jul 2021 03:20:06 +0930