This worked as expected on Python 2 but not Python 3. The version
formatting code divides those version numbers to get the simplified output,
and so the root cause of this is due to the way division changed between
Python 2 and 3.

Thanks for the fix.

On Sat, Apr 18, 2015 at 12:40 PM, Graham <[email protected]> wrote:

>  Well its not a major but running
> SHOW server_version gives 9.3.6
> SHOW server_version_num gives 90306
>
> The Mezzanine code is here
>
> https://github.com/stephenmcd/mezzanine/blob/90912aff8a2858ac4466d8d4677e5be5d9da149f/mezzanine/core/management/commands/runserver.py#L56
>
> So we end up with a tuple (9.0306, 3.06, 6) which is then '.'joined to
> give 9.0306.3.06.6
>
> I am guessing that the desired outcome is 9.3.6
>
> I will have a look to see if I can see a solution and report back
>
> g
>
>
>
> On 18/04/15 13:27, Ken Bolton wrote:
>
>   If my memory serves -
> Server version: 9.0306.3.06.6
>  Client, aka psql, version: 9.3.6
>
>
>  hth,
>  ken
>
> On Fri, Apr 17, 2015 at 9:14 PM, Graham Oliver <[email protected]>
> wrote:
>
>> Just started using PostgreSQL and notice that on the terminal when I
>> execute the runserver command the PostgreSQL version comes up as
>>
>> PostgreSQL 9.0306.3.06.6
>>
>> When I run psql --version
>>
>> I get 9.3.6
>>
>> ot sure if they should match or not
>>
>> g
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> T : 021 081 71732
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to