-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading django 1.9 #4
Comments
Perhaps we'd use tox. Here's an example of a tox.ini file of a django project testing everything on many environments. We would use it to check NRP with the different environments in the travis build. @XaviP would you like to take a look at it or do you prefer to make changes in the code base but perhaps not those related to the integration builds (I would take a look at tox)? I don't have experience in tox, but I could help you out, it's a really exciting technology ;) If you take on this task and have any doubts just ping me in telegram and we would even have a Skype call if you have the time. |
First aproach to 1.9 upgrade (edited):
Solved with:
->
IMPORTANT: django 1.9 in a ssl website requires PyOpenSSL-16.2.0 |
I'll do that either when the django upgrades are all done, or when anybody needs to use the API for something. |
In the meantime, @XaviP , great work once again on upgrading django! |
|
I don't know. Somebody (was it you or @escanda ) wanted to switch to the supported account app from the version we internalized. Do you intend to do that at the same time? If so, that would break the changes we made to the account app. Some were bug fixes, and some were to get it to work with the work app. We could probably do those some other way. I most likely did the simplest thing that could possibly work. |
It will break stuff :). I'd perhaps create a new branch in which to start committing your changes related to the upgrade and include externalizing the app as well. A first step (to see up to what degree it breaks stuff, could be to rename the account folder to _account). This way it will use the default pinax dependency, and you can start working from there. I'd create an app under django_rea.auth extending pinax auth. With signals and hooksets I think most of the functionality can be done without modifying the app itself. Also in the usage page they explain some ways to override behavior. |
I'm for it. |
You can see all these changes in https://github.com/django-rea/nrp/compare/upgrade_django
|
I wouldn't worry about it yet. We'll need to upgrade to their latest version and then do a makeover. But nobody is using the OCP or DEEP API yet, and I think Chris Troutner was the only user of the original valnet AP, and he cut his own fork: https://github.com/christroutner/valuenetwork |
Two more corrections made and pushed:
|
The login form in (anonymous) home doesn't appear. Some info:
Account app is an internalized app from django-user-accounts==1.0b3 |
Fixed in django-rea/nrp@dffebbb |
External package pinax-theme-bootstrap==2.0.4 uses {% load url from future %} in templates. |
IMPORTANT: django 1.9 in a ssl website requires PyOpenSSL-16.2.0 |
As pointed here, maybe it's necessary to upgrade django earlier in order to benefit from the new features of 1.9 version in the refactoring (Abstract Base Classes include Foreign Keys, and maybe others).
Workflow (can be easily converted into a script), to check upgradings:
In
python manage.py check
the errors arise. Studing them and correcting code to finally migrate and pass the tests.The text was updated successfully, but these errors were encountered: