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...
the global bridge object of jsBridge is injected asynchronously. How to listen? The page can be rendered only after the injection is successful. Thank you ...
php is empty ...
...
problem description items produced with iview-cli do not know what to do after packaging, and index_prod.html accesses blank the environmental background of the problems and what methods you have tried the earlier vue project package is different ...
when I use vue-cli to build a project, I use npm run dev for packaging and deployment every time, but I always use npm run dev for packaging. Sometimes the project is very large and the packaging is very slow. Is there a good way to deploy files with hot...