python - Is there way to check feature deprecation against django version? -


Some features are disliked with newer versions of the system, so there is no way to check it on an existing project code. Github.

What a tool can do this

I think that in a way it may be possible to run through a special edition of Django / Python And then check for errors.

I'm just looking for something more elegant or direct, as it says - "Note that this feature has been disliked" , something that can be done in a strongly typed language as Java.

If someone wants to make such a device, then it may be possible to have a starting point for it.

I think this will be in unit tests for your project.

If your testing exercise code that will be demoted to you in the future version of Django, you will find If you jumped for a version of Django where the feature has already been disliked, you will get an exception and of course unsuccessful testing.

You can tell exceptions to the Python interpreter for promoting warnings, which can lead to testing failure.

Here are the instructions for applying the same trick for the popular test framework:

If you already know (from Django Docs), some code that you are writing to Depending on the dies, the changes will be required to be run under the version (for example you are distributing a reusable Django app) I recommend a form of using the ... Except ...

For example, I Yoga wanted the new transaction.atomic utility from Django: = 1.6:

As you might guess, I again used the Tex to help different versions of the Run the test against me:


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -