Re: Errors in tests when working through contribution tutorial

2015-10-12 Thread Lee Cartwright
Hi Tim, I hadn't considered that. I'll try with a different version of Python 3. Thanks, Lee On Monday, 12 October 2015 18:54:51 UTC-7, Tim Graham wrote: > > Hi Lee, I think the issue is that the tests don't pass on Python 3.5 at > the commit where the contributing was tutorial was authored. I

Re: running migrate through views itself

2015-10-12 Thread kk
In the project, every year new books are opened and every organization has it's own database for ever every financial year. Happy hacking. Krishnakant. On Tuesday 13 October 2015 07:49 AM, Tim Graham wrote: You can execute management commands from Python code using call_command(): https://doc

Re: Get unversioned static file url while using CachedStaticFilesStorage

2015-10-12 Thread Tim Graham
If you used the "as var" syntax: {% static "myapp/css/base.css" as admin_base_css %}, then you could write a custom template filter that removes the version suffix and then apply it to that variable. On Sunday, October 11, 2015 at 11:28:10 AM UTC-7, Dheerendra Rathor wrote: > > Hello all, > > I

Re: is Django right choice for a financial app

2015-10-12 Thread kk
hello, On Tuesday 13 October 2015 04:09 AM, Avraham Serour wrote: Sqlalchemy is more performant? In what way? Do you have any reference or this was from personal experience? Personal experience and some online reviews. On Oct 13, 2015 1:11 AM, "kk" > wrote:

Re: Help with UnaccentExtension migration

2015-10-12 Thread Tim Graham
That migration file looks correct to me. How did you determine the query didn't get run? Are you logging all queries? On Sunday, October 11, 2015 at 9:30:19 AM UTC-7, pusateri wrote: > > I was trying to enable the unaccent postgresql extension using a database > migration as hinted here: > > > h

Re: running migrate through views itself

2015-10-12 Thread Tim Graham
You can execute management commands from Python code using call_command(): https://docs.djangoproject.com/en/stable/ref/django-admin/#running-management-commands-from-your-code It seems a bit risky to me to expose functionality to your users that allow them to change your database schema as a re

Re: Errors in tests when working through contribution tutorial

2015-10-12 Thread Tim Graham
Hi Lee, I think the issue is that the tests don't pass on Python 3.5 at the commit where the contributing was tutorial was authored. I suppose we'll have to update it to use a more recent patch or at least mention this caveat for now. On Monday, October 12, 2015 at 5:12:20 PM UTC-7, Lee Cartwri

Re: django.contrib.auth 1.8 failed if user.pk not int

2015-10-12 Thread Tim Graham
In the traceback it appears that to_python() is being called for AutoField, not CharField. Are you sure the custom user model with the CharField pk is properly configured? On Monday, October 12, 2015 at 7:03:25 AM UTC-7, Petr Bondarenko wrote: > > Apparently my problem is caused by the transitio

Errors in tests when working through contribution tutorial

2015-10-12 Thread Lee Cartwright
Hi, I'm not sure if this is the right group for this question, but I figured it was the best place to start. I'm interested in contributing to the Django project and have spent some time today working through the contribution tutorial. I've got to the initial 'running tests' stage and have a fe

Re: is Django right choice for a financial app

2015-10-12 Thread Avraham Serour
Sqlalchemy is more performant? In what way? Do you have any reference or this was from personal experience? On Oct 13, 2015 1:11 AM, "kk" wrote: > > > On Tuesday 13 October 2015 01:27 AM, bobhaugen wrote: > > krmane, google is misbehaving and will not allow me to reply to your reply > to me, so I

Re: is Django right choice for a financial app

2015-10-12 Thread kk
On Tuesday 13 October 2015 01:27 AM, bobhaugen wrote: krmane, google is misbehaving and will not allow me to reply to your reply to me, so I'll fake it and do some cutnpasting. You wrote: > I did not get the react concept. https://facebook.github.io/react/ I wrote: We use the django ORM, no

Re: HTMLDOC as a python view

2015-10-12 Thread James Schneider
> and then saves the result to a pdf file in /media/pdf > > but somewhere it would appear that the html is being lost and therefore not being converted or something. > I forgot to address this. When you say that the HTML is missing, do you mean that the CSS styling is missing? The HTML to PDF conv

Re: HTMLDOC as a python view

2015-10-12 Thread James Schneider
> Please excuse if this is the wrong forum and if a mod wants to move it please feel free, just please let me know where it went. > > I'm attempting to convert html to pdf on the fly with HTMLDOC. > > The fly in the ointment appears to be that the generated pdf is not viewable in that it opens Adob

Re: is Django right choice for a financial app

2015-10-12 Thread James Schneider
> The said project is an enterprise accounting (book keeping ) system. > It is not mere dynamic content such as that served by news rooms (the very foundation of Django's origin ). > It is going to be lot of dynamic views which actually have to conditionally serve ad-hock dynamic data. As long as

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Vasiliy Korol
Xavier, thank you! My bad, I missed it. Sorry for the fuss, it was my fault. Consider the question closed. понедельник, 12 октября 2015 г., 15:21:22 UTC+2 пользователь Xavier Ordoquy написал: > > Hi Vasiliy, > > > Le 12 oct. 2015 à 14:53, Vasiliy Korol > > a écrit : > > > > Hi. > > I find it

Re: is Django right choice for a financial app

2015-10-12 Thread bobhaugen
krmane, google is misbehaving and will not allow me to reply to your reply to me, so I'll fake it and do some cutnpasting. You wrote: > I did not get the react concept. https://facebook.github.io/react/ I wrote: We use the django ORM, not sqlalchemy, but that would probably just make it all b

Re: is Django right choice for a financial app

2015-10-12 Thread kk
On Monday 12 October 2015 08:06 PM, bobhaugen wrote: On Sunday, October 11, 2015 at 10:33:03 PM UTC-5, krmane wrote: The said project is an enterprise accounting (book keeping ) system. It is not mere dynamic content such as that served by news rooms (the very foundation of Django'

HTMLDOC as a python view

2015-10-12 Thread MikeKJ
Please excuse if this is the wrong forum and if a mod wants to move it please feel free, just please let me know where it went. I'm attempting to convert html to pdf on the fly with HTMLDOC. The fly in the ointment appears to be that the generated pdf is not viewable in that it opens Adobe Read

Re: is Django right choice for a financial app

2015-10-12 Thread bobhaugen
On Sunday, October 11, 2015 at 10:33:03 PM UTC-5, krmane wrote: > > The said project is an enterprise accounting (book keeping ) system. > It is not mere dynamic content such as that served by news rooms (the > very foundation of Django's origin ). > It is going to be lot of dynamic views which

Re: django.contrib.auth 1.8 failed if user.pk not int

2015-10-12 Thread Petr Bondarenko
Apparently my problem is caused by the transition to a new Model._meta API. It was: request.session[SESSION_KEY] = user.pk It became: request.session[SESSION_KEY] = user._meta.pk.value_to_string(user) As user.pk we use access_token - CharField(max_length=64, primary_key=True) An error occurs in a

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Xavier Ordoquy
Hi Vasiliy, > Le 12 oct. 2015 à 14:53, Vasiliy Korol a écrit : > > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order to ease the future transition to the next Django > LTS release. > After migrating to Django 1.8.5, we received some unexpect

Re: [REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Avraham Serour
could you contribute the list you made so it can be added to the release notes, it is never too late to add them even for past releases On Mon, Oct 12, 2015 at 3:53 PM, Vasiliy Korol wrote: > Hi. > I find it useful to turn DeprecationWarnings into exeptions on the > development server in order t

[REQUEST] Please list all the deprecations in the changelogs.

2015-10-12 Thread Vasiliy Korol
Hi. I find it useful to turn DeprecationWarnings into exeptions on the development server in order to ease the future transition to the next Django LTS release. After migrating to Django 1.8.5, we received some unexpected exceptions on the devel server, related to the recently deprecated feature