python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Django migrations: base data with tests
I am adding some base data to database with Django's database migrations. Base data consists of predefined values of types which are accessible to all users. There is also possibility to create custom...
TCFDS
Votes: 0
Answers: 0
Testing Views in django/Python
class UserProfile(APIView):
permission_classes = (IsAuthenticated,)
def get(self, request):
user = self.request.user
user_id = user.id
client_info = ClientInformation.objects.filter(user_i...
Aristoteles Cajiza
Votes: 0
Answers: 0
AttributeError: Class1 object has no attribute 'class2_set' with ManyToMany Field Django
Model :
class Groupe(models.Model):
name = models.CharField(max_length=255)
autoAddingMail = models.CharField(max_length=255,null=True,blank=True)
association = models.ForeignKey(
...
enzo.masson
Votes: 0
Answers: 1
The Django test client redirects to the login page with a logged-in superuser
The Problem
I am trying to connect a superuser to the Django test client, and then access a page in the Django administration interface with a GET method. However, I get a redirect to the login page, ...

Raida
Votes: 0
Answers: 1