Mongodb – Django url issue while calling in Postman
I am creating CRUD operation in Django, REST API and Mongo DB. I have done the basic CRUD code. When I try to call the api in postman, I am not getting any responses. In the pycharm, I am seeing…
I am creating CRUD operation in Django, REST API and Mongo DB. I have done the basic CRUD code. When I try to call the api in postman, I am not getting any responses. In the pycharm, I am seeing…
When a user logs in, I want to see their profile picture if they have one; if not, the default profile picture should be displayed. Here is my view.py def header(request): if request.session.has_key('id'): user_id = request.session['id'] user = registertb.objects.get(id=user_id) return…
Hello in my login site I have a form that sends a POST request on submit. this is how I handle the forms POST request in my view def SignUp(request): if request.method == 'POST': stuff goes here else: form =…
I have a login page that has an auth form, 2 values, after validation, redirect it with these 2 parameters, but i get an error, what did i miss? The Views def LoginPage(request): if request.method == "POST": ordernr = request.POST.get('bestellnummer')…
I am new in Django and React Native. Im using Django rest framework to connect my front end to backend. and I am using "axios" in sending request to django I am trying send URL in django. After receiving, the…
I have created a simple Django application which features a single HTML page for each US state. Each state page extend base.html but features different content. URLs are stated in the URLs.py file and the rendering of the pages is…
Hey guys a fellow Django developer here. The static word is coming in red as an error. including the % and } <body id="bg" style="background-image: url({% static 'users/images/bg.png' %});"> Error recieved when server is running. Errors recieved in Editor. Base.html…
I created a post form and embedded with the template and view as usual, when I test the form and try to create a new post all the fields process and save the data correct to the object except the…
I have a web project what back-end is coded with django and front-end is coded with react. In my project, i want to create an order to a special user so this part of project needs to know the user…
I am trying to access data from a parent to a child via a foreign key. WHAT WORKS - the views The data in the child is not "ready to be used" and need to be processed, to be represented…