Sunday, March 29, 2015

Re: Jinja2 with Django 1.8c1 & cannot import name 'Environment'

Hi Rolf,

Django 1.8+ adds built-in support but doesn't ship with Jinja2, the same way it has built-in support for PostgreSQL but doesn't ship the psycopg2 package.

You must install it in your environment just like you did with the Django package.

Simon
 
Le dimanche 29 mars 2015 16:40:33 UTC-4, Rolf Brudeseth a écrit :
Hello Simon,
 
Did you install jinja2 in your python environment (I assumed /www/pbs-venv was a virtualenv)?

No, Jinja2 is integrated into Django 1.8c1.

https://docs.djangoproject.com/en/dev/releases/1.8/

- I am using pyvenv which is integrated into Python, not the virtualenv pypi package.
pbs-venv was created this way:
./Python-3.4.3/python ./Python-3.4.3/Tools/scripts/pyvenv pbs-venv
 

What does /www/pbs-venv/bin/pip --freeze outputs?

www$ pip --freeze
Usage:  
  pip <command> [options]
no such option: --freeze

Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0fe3f13c-fb6a-482b-bba8-79a2d2b3a868%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment