Re: django widget radio button error save is not touch

2020-09-07 Thread José Luis Ruiz
Build your class like this one: class Card(models.Model): class Suit(models.IntegerChoices): DIAMOND = 1 SPADE = 2 HEART = 3 CLUB = 4 suit = models.IntegerField(choices=Suit.choices) https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.Field.choices Look at

Problem with sitemap.xml in django project.

2015-02-01 Thread José Luis
I am deploying a Django project with Gunicorn + Nginx. I create a sitemap.xml file with the sitemap framework . I use a 127.0.0.1:8001 proxy so when i access to example.com/sitemap.xml the result is similar to this: http://127