Questions tagged [django-1.11]

Django 1.11 is a version of the Django framework, released April 2017. It is a Long Term Support (LTS) release, and will be supported until at least April 2020. Please only use this tag if your question relates specifically to this version.

Django 1.11 requires Python 3.4, 3.5, or 3.6. It is the last version of Django to support Python 2.

Here are some of the salient features of Django 1.11:

Django-1.11 was released in April 2017 as a long-term support release and will be supported until April 2020.

324 questions
1
vote
1 answer

How can I serialize list with an object relation produced from queryset TruncYear in Django 1.11

I manage to get time series data with TruncYear/TruncMonth/TruncDay/etc like below from Tracking table. However the data for the venue just produce the venue_id. I would like to have that serialized so that it returns the "name" from the relation…
Axil
  • 3,606
  • 10
  • 62
  • 136
1
vote
1 answer

Select for update statement not working when inside Celery task

I am developing some code where i need to save in database big amount of data. Response is taking about a minute or more. So I decided to move that code in celery task. I have view that calls celery task. Problem here is that you shouldn't be able…
1
vote
1 answer

Auto logged out user on inactivity still displaying as active use in Django

I'm working on a project using Python(2.7) and Django(1.11) in which I need to display only logged in users for a specific function. I have achieved to log out the user by the following settings in settings.py: SESSION_COOKIE_AGE =…
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
1
vote
0 answers

Django - Reverse for view function not found

I am using Django 1.11.21 and I am trying to load my application in a Django project. I keep getting this error: Reverse for 'wfpdocs_browse' not found. 'wfpdocs_browse' is not a valid view function or pattern name. This is how my template looks…
user1919
  • 3,818
  • 17
  • 62
  • 97
1
vote
0 answers

'FilterExpression' object has no attribute 'value'

I am migrating from Django 1.8.17 to 1.11.21. I re-installed all compatible packages and did required code changes. But it is still giving "'FilterExpression' object has no attribute 'value'" error and I am stuck. It should render the page template.…
1
vote
0 answers

KeyError at /url/ on Django site in prod. Not seen on local server. Using Django session

I need to save data for a session in Django and perform some action when the user clicks on a button. I am storing the data processed after a query in Django sessions. This was working well and good on my local server even after I tried hitting the…
1
vote
0 answers

Django Check boxes and progress bar

I'm new to Django a few week or two in to learning. Django Ver 1.11 Python Ver 2.7 I'm making a Todo app in Django and I'm done with the application, but I want to add some extra features to it. 1. Sub tasks Checkbox that update the progress bar on…
Talha Murtaza
  • 324
  • 1
  • 2
  • 17
1
vote
1 answer

Django - Cannot perform another query while using a queryset iterator()

I'm using Django 1.11 with MySQL. Upgrading to 2 isn't feasible in the short term so isn't an acceptable solution to my immediate problem, but answers referring to Django 2 may help others so feel free to post them. I need to perform a data…
Hamish
  • 2,763
  • 1
  • 17
  • 21
1
vote
1 answer

Django Admin Model on add fails to render related change link

Given following admin settings: class BrokerLocationSetForm(forms.ModelForm): class Meta: model = BrokerLocationSet fields = ('broker', 'program', 'label', 'locations') widgets = { 'locations':…
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
1
vote
0 answers

Disabled option in Django Select Widget using ModelChoiceField

I am trying to show inactive users as "disabled" in my form's Select widget. I have a worker who is a django user model. models.py class Task(models.Model): worker = models.ForeignKey(settings.AUTH_USER_MODEL, models.DO_NOTHING, blank=True,…
Ewanw
  • 728
  • 11
  • 30
1
vote
1 answer

How to fix tests after Django 1.10 to 1.11 update

I'm working on a project that uses Django 1.10 and DRF 3.6.4. When I upgrade Django to 1.11, many tests in classes that inherit from DRF's APITestCase fail with the following error: AttributeError: 'HttpResponseBadRequest' object has no attribute…
Ariel
  • 3,383
  • 4
  • 43
  • 58
1
vote
0 answers

GenericForeignKey Inline in Django admin

I have a multiple product models: class ProductModelA(.. class ProductModelB(.. class ProductModelC(.. Model Order and SubOrder which stores information about quantity. So every Order can have multiple SubOrders which stores tuple product and…
Milano
  • 18,048
  • 37
  • 153
  • 353
1
vote
0 answers

Custom login page with Django 1.11

I looked for an already existing answer but I didn't find one. For a school project I have to create a website with Django 1.11. My problem here is the following: I have to create the login page. Using Django class based view (login view in this…
1
vote
0 answers

Django 1.11 - Order Queryset by Postgresql xmin column

My objective is to order a queryset by last modified. I searched for a solution and found the "xmin" attribute (1). I couldn't find how to access this "pseudo" column, leading me to think about "annotate" each xmin from a queryset using raw SQL,…
1
vote
1 answer

How to implement Bootstrap DatePicker (Year/Month) to Django Admin Filters?

How do I include an inline bootstrap calendar selector into the Django admin page? I was creating a custom form and template from the following: Django admin add custom filter It works with a text field. I would like to add the calendar to…
Aero Chocolate
  • 1,477
  • 6
  • 23
  • 39