go tag

327 questions


1 answers
135 views
0
Django Primary Key Error Question!

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...

2 years ago

1 answers
49 views
0
About the Python super function used in django

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...

2 years ago

1 answers
114 views
0
To change string to datetime format

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?

2 years ago

1 answers
46 views
0
I want to find the IP address of the user in django

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 ...

2 years ago

1 answers
54 views
0
To change the format of Django DateTimeField

How can I save it in the format I want when I save it in db?(For example, '%Y/%m/%d %H:%M:%S)

2 years ago

1 answers
43 views
0
When making ID in django

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?

2 years ago

1 answers
64 views
0
To run from shell to background

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...

2 years ago

1 answers
50 views
0
There was a problem following the tutorial.

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...

2 years ago

1 answers
48 views
0
Django field additional question.

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...

2 years ago

1 answers
92 views
0
What's the reason for changing to 404 error? 'get_object_or_404'

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 ...

2 years ago
« - 26 - »

© 2024 OneMinuteCode. All rights reserved.