發表文章

目前顯示的是 4月 24, 2019的文章

Malmeneich

圖片
Chapel Malmeneich is a village in Hesse, Germany. It belongs to the municipality of Elz. Its post code is 65604 and its dialing code is 06433. It has 345 inhabitants. Geography and climate Malmeneich lies in the Westerwald. Its average elevation is 250 m above sea level. The highest point lies in the forest and is 292 m high. The average temperature is 9,9 °C and it rains 700–720 mm a year. Though this seems moderate, temperatures can vary between −20 °C and 35 °C. Malmeneich and the media There was an entry about Malmeneich in the Hessian television in 2002. This was for a project of hr3 which aimed to report about Hessian villages with less than 1,000 inhabitants. Every year Malmeneich is mentioned in the regional newspaper because of the "Malmeneicher Kirmes". At the European elections in 2005 there was a crime in Malmeneich. A citizen went to elect five times. He got judged and this crime went through the regional media. External links Officia

Django how to use a HTML tag attribute in views.py?

圖片
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } 0 I'm trying to create a view that change a boolean and switch images from it, I already done it but I need to iterate between 12 values (asiento) and i only can point to one of them this is my Django code. models.py: class Asientos(models.Model): asiento = models.CharField(max_length=2,primary_key=True) status = models.BooleanField() mesa = models.ForeignKey(Reserva) def __str__(self): template = 'Asiento {0.asiento} de la mesa {0.mesa}' return template.format(self) views.py: def reservacion(request): asientos = Asientos.objects.all() if request.method == "POST": estatus = Asient