Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
I'm trying to install django=1.9 on ubuntu using python and I'm getting the following errors for admin login

django error displayed on terminal:

Not Found: /favicon.ico [21/Apr/2017 07:33:24] 
"GET /favicon.ico HTTP/1.1" 404 1963
Not Found: /favicon.ico [21/Apr/2017 07:33:25] 
"GET /favicon.ico HTTP/1.1" 404 1963 [21/Apr/2017 07:34:23] 
"GET /admin/ HTTP/1.1" 302 0
Internal Server Error: /admin/login/
Traceback (most recent call last):
File "/home/priya/.local/lib/python3.5/site-packages/django/template 
/utils.py", line 65, in __getitem__
return self._engines[alias]
KeyError: 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/priya/.local/lib/python3.5/site-
packages/django/template/backends/django.py", line 126, in 
get_package_libraries

And this is the error message displayed on Browser:

InvalidTemplateLibrary at /admin/login/

Invalid template library specified. ImportError raised when trying to load 
'django.templatetags.future': cannot import name 'RemovedInDjango110Warning'

  Request Method:   GET
  Request URL:  http://localhost:8000/admin/login/?next=/admin/
  Django Version:   1.11 

I have installed django=1.9 version and it's showing 1.11

  Exception Type:   InvalidTemplateLibrary
  Exception Value:  

  Invalid template library specified. ImportError raised when trying to load 
  'django.templatetags.future': cannot import name 
  'RemovedInDjango110Warning'

   Exception Location:  /home/priya/.local/lib/python3.5/site-
   packages/django/template/backends/django.py in get_package_libraries, 
    line 130
   Python Executable:   /usr/bin/python3
   Python Version:  3.5.2
   Python Path:     

 ['/home/priya/Desktop/project/project',
 '/usr/lib/python35.zip',
 '/usr/lib/python3.5',
 '/usr/lib/python3.5/plat-i386-linux-gnu',
 '/usr/lib/python3.5/lib-dynload',
'/home/priya/.local/lib/python3.5/site-packages',
'/usr/local/lib/python3.5/dist-packages',
 '/usr/lib/python3/dist-packages']
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

url is removed from future template lib in django 1.9, so if you try to import in your templates like: {% load url from future %} it will give import error. If url is needed in your template, just use it and delete the import.

https://docs.djangoproject.com/en/1.11/releases/1.9/#features-removed-in-1-9

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda