Questions tagged as 'django'

0
answers

Time zone django

The dates I keep return the month in English, as a change or reformat that date so that it remains in Spanish TIME_ZONE = 'America/Bogota' # https://docs.djangoproject.com/en/dev/ref/settings/#language-code LANGUAGE_CODE = 'es-co' # https://do...
asked by 26.07.2018 / 18:41
1
answer

How to use exclude to use in a form with django?

My doubt is to be able to make fields that are with exclude can be filled through a form but I still do not know how to show these same data models.py code class Producto(models.Model): nombre = models.CharField(max_length=100)...
asked by 27.07.2018 / 05:20
0
answers

Update Django Application Date?

I have an application in Django in which users enter a date by means of a calendar but the date shown on the calendar is always the same as the day I started the Django server. I explain if I start the server on 5/19/2018, the schedule of the...
asked by 24.07.2018 / 15:46
0
answers

make a field not mandatory in a Django form

I'm modifying an old django web project (1.5), I need to be able to go through all the registration forms freely, currently I can not go to the next form without registering the "email" field, I have tried to modify the model but not yet I get t...
asked by 24.07.2018 / 18:46
0
answers

Variables can not start with underscore in python / django

I'm doing an application with Python, Django and MongoDB, I'm just starting out. I'm trying to load a template with this user information, the query pulls perfectly: {% if users %} <ul> {% for user in users %} <li&g...
asked by 01.08.2018 / 21:52
0
answers

Heroku does not load statics files in Dejango framework

Heroku does not load statics files in Django framework Hello everyone, I am starting in the development of web applications with python 3.6 using the Django framework and I use the free Heroku service for tests, the issue is that after pushin...
asked by 27.07.2018 / 23:25
0
answers

Django: delete a record from my table in one view and add the record in another table

I'm doing an inventory application for my workshop. I have a view that generates a tool cart, in the cart the employee assigned to the cart is assigned, the tools it contains and the quantity of each of them. What I intend to do is the following...
asked by 20.07.2018 / 23:28
0
answers

Can I format a string in a Django queryset?

I'm trying to simulate this stringformat "% s03d"% (name.upper (), number), in a Django query. It is not as easy as doing the field query in the model because it is not stored in the database. DummyModel.objects.all().annotate( format_str=...
asked by 20.07.2018 / 09:18
0
answers

Visualization Bootstrap css with Django 2.0

What will happen to me? If I do not install the css file, it works, like this: print this in the browser: > Home Mascotas Registrar Listar Adopciones Solicitar Listar solicitudes Actualicese...
asked by 21.07.2018 / 00:28
1
answer

Implement datatable in Django

I have the following Model: class Coin(models.Model): name = models.CharField(unique=True,max_length=50) short_name = models.CharField(unique=True,max_length=6) url = models.CharField(max_length=200) transaction_fee = models.Fl...
asked by 17.07.2018 / 23:50