Re: How force DJANGo choice MEDIA_URL or STATIC_URL in template?

2016-03-01 Thread Jonas Svensson
It seems like you want to use display a default picture if the user does not have one. {% load static %} {% static "images/default_pic.jpg" as default_pic %} {{ account.accountuserinfo.picture|default:default_pic }} Cheers On Monday, February 29, 2016 at 10:49:53 PM UTC+1, setivo...@

Re: How to install on windows?

2016-02-16 Thread Jonas Svensson
Hi, you already have virtualenv with python3.5. To create a new virtual environment you can do. c:\Temp>c:\Python35\python c:\Python35\Tools\Scripts\pyvenv.py myenv (https://docs.python.org/3/library/venv.html) Cheers On Monday, February 15, 2016 at 1:49:33 AM UTC+1, bob gailer wrote: > > I t