first of all, when the user logs in, I want to display the user s information and get the data in the profile_ajax view. This corresponds to html html formuid . Here is the problem. I click here to view the details. Will the ajax of html not enter th...
how does django admin save the current user to model when adding articles? I want to use django to build a blog system with multiple users. I added a foreign key User, to Article but I don t know how to save the current user to the database when savin...
< H1 > problem description < H1 > I want to use docker to package my Django project, and then use docker-compose for service orchestration to run the database needed by the Django project. Suppose the content in docker-compose.yml is as follows: vers...
for example, in the template, I need to pass variables such as username,uid to the foreground to display user information, while data such as time,data needs to be updated in real time, so I use ajax to get the data in the frontend, but it is impossibl...
when using axios to send a POST request to the backend, the server cannot get the parameters that are included in the POST. the sending code of the front end is as follows: Http({ method: POST , url: signup , data:{ username:th...
sku : { 20509 : [ 28314 , 28315 , 28316 , 28317 , 6145171 ], 1627207 : [ 28324 , 28326 , 28341 , 28320 ] }, sku_map : { 20509 : , 28314 ...
I want to use django-mama-cas to complete the CAS login, but the login module that comes with the system is a little too simple. I want to add something by myself, but Form cannot set its own defined Form (LOGIN Template in the setting file. I would li...
this module is used to authenticate users from django.contrib.auth import authenticate A few days ago, you can use user = authenticate (username=username, password=password) to return a user, but today you try to return None . the following proble...
the server is written by nginx + uwsgi + djano, the project is relatively old, and it has been found to be unresponsive recently. After investigation, it is found that the uwsgi queue is slow and full, eliminating the problem of excessive number of reque...
I want to set permission, for a separate field in an API. If the user has permission, it will be displayed, and if there is no permission, it will not be displayed. What should I do? ...
how does django import tets.py data when conducting automated testing? I export the contents of the database as api.json. Then import to the unit test database, but the unit test database does not have data, what is wrong? where the json file of the...
want to put a picture on the web page, which cannot be realized according to the online writing method. Django 2.0 setting is like this . STATIC_URL = static STATIC_ROOT = os.path.join(BASE_DIR, static ) main_html app staticurls main.html ...
< H1 > problem description < H1 > is currently developing a Django project. If you want to use gunicorn as a http server, and then use nginx as a reverse proxy, you will eventually need to use https. my question is: can I run a statement like gun...
whenever I press Router, it will extract the ip, of the relevant router from the database and put it in the list-group on the right list-group ? < hr > def getdata(request): qd = request.GET[ ic-element-id ] print (qd) device_list = ...
django uses an online case for dwebsocket, local debugging (what else do you need to do to support local debugging?) after printing out the Websocket open, chrome reported an error: websocket connection to ws: localhost:8000 echo_once failed:Inv...
I want to make a book classification there are two categories: (id(), name) (id(), fist_type(), name) there is also a book information table () when you want to add book information in the xadmin background, select the first category first, and th...
as shown in the picture, how can I delete it if I don t want to see it in the admin sidebar? seems to exist by default. ...
Novice django, deletes the uploaded picture in the admin background only deletes the record of the database, but the picture still exists in the media img folder. How to deal with this? models.py class HomePageProductPictureDisplay(models.Model): d...
I now want to use django to make a knowledge graph query application, is there any way to enable django to deal with owl files and be able to do graphical display. ...
write a user registration with djang, passing four parameters in req.POST formdata form.is_valid()self.cleaned_dataenpassword,self.data Why the code is as follows: forms.py from django import forms class UserForm(forms.Form): email=forms.Em...
flutter doctor can pass, and it has been stuck in Initializing gradle. since the Android simulator point was run. timeout waiting for the application to start what to do? ...
problem description window.cacheundefined the environmental background of the problems and what methods you have tried window.cacheswindow.caches related codes Please paste the code text below (do not replace the code with pictures) window.c...
axios doesn t seem to be able to set up async to implement Synchronize requests like jquery does, which makes it difficult for me to implement some logic. methods: { funcA() { axios.post( a ) return a } }...
as shown in figure router-link jumps to the sub-component. In fact, the four components are the same, and the page structure style is all the same, but the request interface is different, so you need to pass different parameters according to differe...
Pictures can be uploaded on PC. Screenshot shows opened in Wechat on PC. excuse me, how to solve this problem? ...