327 questions
Code (models.py)class UserProfile(models.Model): user = models.OneToOneField(User) schoolid = models.CharField(max_length=5,unique=True,null=False,db_index=True) phone_number = models.CharField(max_le...
As I studied django's class-based view,When overriding a function, the return value is super(class, self)... There are cases where it goes like this. No matter how much I look it up, I can't understan...
on the listJun 1 2005 1:33PMAug 28 1999 12:00AMThere are a lot of the same stringsYou want to replace all of this string with datetime format and save it to DB.How do I change a string to datetime?
Find the user's IP address in django When I run my code, I get an error, but I don't know where the problem is.# Create your viewsfrom django.contrib.gis.utils import GeoIPfrom django.template import ...
How can I save it in the format I want when I save it in db?(For example, '%Y/%m/%d %H:%M:%S)
Hello, everyoneWhen defining the Django model fieldDefine the primary key id = models.IntegerField()Is there a way to make the ID number automatically increase per row like AutoField?
I think you're asking a lot of questionsI'm leaving a question because I'm curious about what other people usually do!On Ubuntu Server (Typical Linux Environment)When I played node.js, when I turned t...
https://rk.edu.pl/en/capturing-images-webcam-django-jpegcam/I was following the tutorial on the page above. Not Found: /main/cap/webcam.swfThis error has occurred. I think there was an error in the ur...
Question about adding Django model field ^^class ActressInfo(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=100) birth = models.CharField(max_length=100) sta...
I'm studying janggu.Everyone in the lecture and on the internetTeach them to stop DoesNotExist using 'get_object_or_404'.Both are errors, but I wonder why you change 500 errors (server errors) to 404 ...
« | - 26 - | » |
© 2024 OneMinuteCode. All rights reserved.