257 questions
class Post(models.Model): created_date = models.DateTimeField( default=timezone.now ) def elasped_time(self): now = datetime.now() then = self.created_date timedelta = now - then minutes = timed...
Hi, everyone.I arranged the images rendered by django like an image gallery by inline-block.But I want to centralize the elements in the container div, but I don't know how ㅠ
I reported the sample code on the Internet to page on DjangoThe contents of the first page come out well, but if you press Next, nothing comes out.In url?I think it's getting weird with page=2, but I ...
I'm trying to load the xlsx file using python django and work on it The py file and filename.xlsx are in the same folder.In python environment import openpyxlwb = openpyxl.load_workbook('filename.xlsx...
Hi, everyone.Django relational model question.class Actress(models, model): Actress = models.CharField(max_length=30)class Movielist(models.Model): title = models.CharField(max_length=30) cast = model...
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...
« | - 13 - | » |
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
578 Understanding How to Configure Google API Key
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.