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

Django can't access Azure mounted storage

I am running my Djagno app (python 2.7, django 1.11) on an Azure server using AKS (kubernetes). I have a persistent storage volume mounted at /data/media . When I try to upload files through my app, I get the following error: Exception Value: [Errno…
ronenmiller
  • 1,117
  • 15
  • 25
1
vote
0 answers

Report lab Bar code Generation store file to S3?

I am following this (https://code.djangoproject.com/wiki/Barcodes) tutorial to handle bar code generation of my site MyBarcodeDrawing("HELLO WORLD").save(formats=['gif','pdf'],outDir='.',fnRoot='barcode') the line above saving the created bar code…
Hari
  • 1,545
  • 1
  • 22
  • 45
1
vote
1 answer

Generate Barcode In Django

I am working on asset management app using Django, Now I want to create barcodes for each asset. On the scanning of the barcode, I need to get all the information about the asset, which is the best library to achieve this?
Hari
  • 1,545
  • 1
  • 22
  • 45
1
vote
1 answer

How to create hierarchy of models?

How can I make hierarchy in django? I want to create a tree of Persons. I understand that I should add parent field to Person model. What do I need to change in model and view? Also I want to use tree-view to represent hierarchy. class…
Vladislav
  • 273
  • 3
  • 15
1
vote
1 answer

host-specific request breaks unrelated test cases

I have the following tests: from django.test import TestCase from django.core.urlresolvers import reverse class TestA(TestCase): def test_a(self): reverse('view1') class TestB(TestCase): def test_b(self): …
phihag
  • 278,196
  • 72
  • 453
  • 469
1
vote
1 answer

Password reset link generation

How Django version 1.11 generates a password reset link with uid and token generator for the given user. How it validates the link. After some digging, I found out they save the token in session to check afterwords, but in that case validity of such…
1
vote
1 answer

Error loading admin page after upgrading to django-1.11

So previously, I was using django-1.8 version & I am in the process of upgrading to django-1.11. When I load my /admin page, I get Exception Type: TemplateDoesNotExist Exception Value: admin/index.html I have tried multiple options and dont…
doubleo
  • 4,389
  • 4
  • 16
  • 19
1
vote
2 answers

Django migration error while performing migration on existing schema

I am upgrading my django application from 1.5 to 1.11. I am upgrading 3rd party packages too. While upgrading django-cms 2.4 to 3.5 I am facing some migration issues. I have an already existing mysql database. So after upgrading django-cms: 1) I…
Akhi
  • 221
  • 1
  • 3
  • 14
1
vote
0 answers

lambda inside lambda inside lambda

I'd like to use a decorator for a login page and I came across this post. It contains a funky bit of code that I don't quite follow: decorator_with_arguments = lambda decorator: lambda *args, **kwargs: lambda func: decorator(func, *args,…
pymat
  • 1,090
  • 1
  • 23
  • 45
1
vote
1 answer

JavaScript alert popup box not being called

I'm completely new to JavaScript and am trying to implement a popup box upon concurrency editing in Django. I've tried using the popUp function in js but to no avail. Here's my code html {% block content %}
pymat
  • 1,090
  • 1
  • 23
  • 45
1
vote
1 answer

Accessing specified database in migrate command django inside database router

Using Django 1.11, I am attempting to create a custom router to pick a database based on the URL that is used. For instance, if the URL is customer1.example.com, I want to pick the database 'customer1', and similarly if it is customer2.example.com,…
Chris Burrus
  • 187
  • 9
1
vote
0 answers

Django Social Auth logout Users Automatically?

I am using django-social-auth for authentication, which works fine, now i want to logout user on every 4 hours, how can i achieve this? Since access_token is valid for 1hour, should we need to write any custom logic(middleware) for automatic logout…
Hari
  • 1,545
  • 1
  • 22
  • 45
1
vote
1 answer

How To Implement Social Login With Django?

I have a website where users can log in with username and password, now I want to implement google login. so, i am planning to use social-auth-app-django, and I want to use sub field return by google as username, but the problem is when the user…
Hari
  • 1,545
  • 1
  • 22
  • 45
1
vote
3 answers

django.db.migrations.exceptions.NodeNotFoundError while upgrading django

I am upgrading my django project from django1.5 to django1.11.10. while upgrading when I run ./manange.py migrate I am getting django.db.migrations.exceptions.NodeNotFoundError django.db.migrations.exceptions.NodeNotFoundError: Migration…
Akhi
  • 221
  • 1
  • 3
  • 14
1
vote
1 answer

Problems Using Django 1.11 with Sql-Server database view

I am trying to use Django (django 1.11.4) to read data from a SQL-Server view (sql server 2012 - I use sql_server.pyodbc [aka django-pyodbc] for this), and nothing seems to work. Here's my model: class NumUsersAddedPerWeek(models.Model): id =…