October 2015

Django
2015-10-29 08:35 (10 years ago)

Django's built-in django.views.generic.TemplateView is a powerful tool.

Bootstrap
2015-10-27 09:35 (10 years ago)

This method allows you to randomly change the initial position when displaying a large carousel in the hero area using Bootstrap.

Python
2015-10-19 07:34 (10 years ago)

Up until now, I had been writing custom thread pools using threading.Thread, but I thought there must be something provided by Python already. So, I did some searching and found that multiprosessing.pool.Pool was exactly what I was looking for. Creating a process pool is super easy with it. What was I doing all this time?

Python
2015-10-16 07:35 (10 years ago)

I should have used multiprocessing.pool.Pool orz

Django
2015-10-15 10:10 (10 years ago)

class Content(models.Model): content_name = models.CharField(...) group_id = models.PositiveIntegerField(...) volume_number = models.PositiveIntegerField(...) ... Assuming we have a typical Django model class, we want to search for its instances using a complex SQL query in a single shot. The results should be displayed on a web page, but since many rows are expected, we want to display a paginator.

Categories

Archive