I need to create a web service in python for my Django application. My application was built using django and knockoutjs, however I do not use models or forms, I use the ko.observable knockout. I thought of using django Rest_Framework, but it us...
How to retrieve values from html elements in a custom validation with Django-rest?
How would django-rest be similar to the code below?
def clean(self):
password1 = self.cleaned_data.get('password1')
password2 = self.cleaned_data.get...
How to, for example, generate:
Autor 1
+-- Livro 1
+-- Livro 2
Autor 2
+-- Livro 3
+-- Livro 4
using django-rest-framework? This in one query only?
I searched for it with query and details .. but not exactly like this ..: /
How do I submit a post on Angular? I did a test here and required to report to PK:
index.controller('EditController', function($scope, $http) {
$scope.save = function() {
var in_data = { name: $scope.Job.name, description: $scope.Job.descr...
I'm new to Django and I'm creating a web environment that sends emails. I can send the email without the attachment, however I need to include attachment. I'm using the form with the FILE FIELD field, but when I send the email the following erro...
I need to change users from another user.
But when I call serializer.save () it is not saved in the database and does not display an error.
My user model:
class User(AbstractBaseUser, PermissionsMixin):
class Meta:
db_table='emp...
Well, I'm messing with an API and I want it to return the content only when the user sector is the same as the publishing sector.
Publications API:
The user has a sector field also equal to this, and
I am already getting the id of th...
I have classes Pessoas , Profissoes , ProfissoesPessoa and QualificacoesProfissoesPesssoa
In theory, my Models are as follows:
# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.model...
Well I'm still studying this framework, I researched a little tried some ways but they did not work.
Error:
'UnboundLocalError at / api / services / 1 / local variable' Service '
referenced before assignment '
Code:
Serializer...
Hello, I'm kind of lost as a user authentication by django-rest-framework, I was following the CodingEntrepreneurs channel tutorial in Blog API 32 video ( link ) it explains how to do user authentication via token with django-rest-jwt, but I fou...