go tag

327 questions


1 answers
50 views
0
Django error question!

In the process of entering the detail_view, the product and description are intended, but only the date comes out. Please help, masters ㅠ

2 years ago

1 answers
44 views
0
Django+Mysql+Apache2 Security Measures

Hi, everyone.I'm running a simple website with a long story.However, not long ago, the sql injection attack wiped out both DB and server settings and robbed Linux of administrator rights.So I had to b...

2 years ago

1 answers
95 views
0
Send images using Http Post

I'd like to send an image from the Android client to the Jango server using Http Post. The image will be selected in the instrument's gallery. We are currently using the NameValuePair list to send ess...

2 years ago

1 answers
43 views
0
I would appreciate it if you could tell me how to solve these syntax errors.

Hello, I'm a first-time Python student. It may be a very easy question, but I'm posting it here because I'm not very good at searching and understanding.Here's the whole story of views.py I wrote.def ...

2 years ago

1 answers
42 views
0
Python and Django Book Questions

Hello, I'm a sergeant who is interested in web development as a whole and wants to enter.First of all, my goal is to create a social SNS or interior O2O matching service on the web.HTml5 or css3 is st...

2 years ago

2 answers
46 views
0
I'd like to use a function that derives the time that has elapsed since the moment of writing, so please help me

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

2 years ago

1 answers
49 views
0
CSS inline-block margin question.

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 ㅠ

2 years ago

1 answers
103 views
0
Python Django Pagination error

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

2 years ago

1 answers
70 views
0
If django uses openpyxl to load_workbook(), an error occurs.

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

2 years ago

1 answers
45 views
0
This is a question in the django ManyToMany field.

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

2 years ago
« - 19 - »

© 2024 OneMinuteCode. All rights reserved.