Most voted "django-1.8" questions
11 questions
Sort by count of
-
4
votes1
answer470
viewsHow to sort a query in Django by ignoring accents?
I’m returning the query Carro.objects.all().order_by(Lower('marca')), but the order is not respecting names that begin with accent, causing these results to appear at the end of the ordination. Is…
-
3
votes1
answer169
viewsHow to change the width of columns in the Admin listing in Django?
How do I specify the width for the columns that are displayed in the Admin listing, more precisely the ones I specify in list_display in admin.py. Researching I found similar question here, where I…
django python-3.x python-2.7 django-templates django-1.8asked 8 years, 5 months ago Marcio Luís 1,061 -
2
votes1
answer165
viewsHow to build a queryset that returns only the cars with the last approved revision?
I’m looking to create a queryset that returns only the cars that have had the last approved review. It is known that there may be n cars, and each car has a history of revisions, so there may be n…
-
1
votes1
answer354
viewsAutocomplete with jQuery and Django
Hello, I did a search on the site, but did not find, if anyone knows a link that already deal with this subject, please post. Next, I made an autocomplete in a form of Django with jQuery and…
-
1
votes1
answer932
viewsHow I create 2 Foms simultaneously Django
What I want is in a single templante bring these 2 Forms simultaneously, in separate pages works, but the two together still could not do. Do I need to make an intermediate form? Am I making a point…
-
0
votes1
answer274
viewsReturn values in Foreignkey and Manytomanyfield in Django
I have the following Models: Restaurant with a Foreignkey for Cardapio, Cardapio with a Manytomany for Product, Product with a Manytomany for Diapromocao, and I need in the template, display some…
-
0
votes1
answer514
viewsHow to work with Updateview and Forms in the template
I’m trying to render a client’s data in the template, but I’d like to do it without using it {{ form.as_p }} or {{ form.as_table }} I would like to know if you have any way of using the id of the…
-
0
votes1
answer40
viewsProblems with Custom Template Tags in Django 1.8.5
Good night! First, I would like you to help me improve this topic, if necessary. Well, I work with Django 1.8.5, Python 3.4, virtualenv and other dependencies as well. My problem is. I have two…
-
0
votes1
answer503
viewsImport attributes from models classes from another app
Good afternoon guys, I’m good a doubt! I am using 2 Apps in Django admin App1 = Registrations App2 = Controlling Fellows I imported into "Stock Changers" (App2) the app1 model, the "Person" class in…
-
0
votes0
answers27
viewsError: Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False
I’m having a problem in the pagseguro api, I’m using Django 1.8 when I try to send a payment it presents the error "Mysql backend does not support Timezone-Aware datetimes when USE_TZ is False." I…
-
-1
votes1
answer117
viewsExport data to a file . cfg
Could someone give me an example of how to export my models data by pk to a file . cfg? tried to use Mymodel.objects.get(pk=pk) but it didn’t work out so well.