327 questions
I'd like to ask you a question about join of Django om.As far as I know, there are two ways to join using querySet.1 model = model.objects.select_related('field_name')2 model = model.objects.prefetch_...
I am posting because I have a question on the django regular form.In the book I'm reading now, the content of the model class is class Album(models.Model): name=models.CharField(max_length=50) descrip...
I started Django, I started with 1.10.I use Python 3.5, but MySQLdb only supports Python 2.So I chose pymysql.However, Django wants to use the session
I'm developing a site, but there's an error in the process of creating a login, how do I solve it ㅠ
Hello, while trying to make a simple web game using django + javascript I'm asking this question because I'm curious about route management.web game project name is lucifer├── lucifer####Client Web Ga...
I want to operate the same server code shared by github on two different PCs (A, B). (For testing) But I want to use DB only in A.To import the DB of the APC as it is when you run the server from B to...
if self.is_valid(): return redircet('/')In the above code, is_valid() internally calls clean() of the form to validate it, but in the case of clean(), the return value is dict data called cleaned_date...
I would like to test the web page I made using the class client for unit test provided by Jango.from django.conf import settingsfrom django.test import Clientsettings.configure()c = Client()response =...
Hi, how are you?I am a developer who is learning Django hard It's nothing but I'm going to study Django mailHow should I implement what others send me??Even if I look up Google data, there are many th...
post = get_object_or_404(Post_Notice, id = id)filename = post.file_attached.name.split('/')[-1] response = HttpResponse(post.file_attached, content_type = 'application/force-download') response['Conte...
« | - 20 - | » |
© 2024 OneMinuteCode. All rights reserved.