Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arreglar compatibilidad con Django 1.5 #7

Open
dcabo opened this issue May 11, 2015 · 2 comments
Open

Arreglar compatibilidad con Django 1.5 #7

dcabo opened this issue May 11, 2015 · 2 comments

Comments

@dcabo
Copy link
Contributor

dcabo commented May 11, 2015

Parece que Vilanova tuvo problemas con Django 1.5. En un correo:

Error: direct_to_template has been deprecated. In django 1.5 try using a Class based view in urls.py

Cambiaron en el fichero project/urls.py la linea 4:

from django.views.generic.simple import direct_to_template

por

from django.views.generic import TemplateView

Y en la línia 60:

url(r'^robots\.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'})
@dcabo
Copy link
Contributor Author

dcabo commented May 11, 2015

Ver django_jasmine/urls.py para un ejemplo de cómo gestionar distintas versiones de Django:

if django.VERSION >= (1, 5):
    from django.conf.urls import patterns, url
else:
    from django.conf.urls.defaults import *

@dcabo dcabo changed the title Comprobar compatibilidad con Django 1.5 Arreglar compatibilidad con Django 1.5 May 18, 2015
@dcabo
Copy link
Contributor Author

dcabo commented May 18, 2015

Más info sobre los problemas de compatibilidad en este pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant