-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upgrade django-wiki and Django #164
Comments
|
Just to update, I set the main django-wiki repo as an upstream and did a git pull from their master with the -Xtheirs option, meaning remote changes are automatically merged by favouring the remote django-wiki repo. ( i noticed this might be possible, since the main difference is the addition of the plugins/metadata folder in Xposition, but i'm not 100% sure). I'm testing this with Django==3.1.0 and django-wiki==0.7.3 (basically, the pull from the upstream master). Trying to get this to run, i now get this below, which suggests need to upgrade django-categories. I noticed this is configured as a fork from the main django-categories repo, and Xposition relies on the fork as a dependency, so i think I will need to also upgrade the nert-nlp/django-categories fork. I'm not sure, can I resolve merge conflicts like was done for the Xposition fork of django-wiki by generally favouring the upstream ( i can test this as well)
|
the merge of the upstream django-categories 1.8, to the nert-nlp/django-categories fork was a lot smoother than anticipated, but i had to install the django-categories from PyPI to resolve the error above (installing from setup.py didn't resolve the error). I'll continue testing to see if this has any impact. |
OK, it looks like its running on Django 3.1, django-wiki 0.7.3, django-categories 1.8, and the latest versions of the other django submodules. I ran manage.py [makemigrations --merge, migrate] before runserver. A lot of CSS (.less) files were removed (and replaced with a new scss format) in the latest django-wiki version , and the new website looks like this. The top navigation menu is notably missing (next steps..) |
Sounds great! Yes, django-categories is a dependency that we rely heavily on. Apart from the CSS, does the metadata on articles for adpositions, supersenses, etc. still display? If not this may indicate that some manual merging of upstream django-wiki changes is necessary, e.g. to views/article.py IIRC. But you're correct that we tried to make the Xposition code as modular as possible under plugins. |
I got the navigation bar back by adding some new bootstrap 0.4 js scripts to the html page, though the menu mow appears as a hamburger menu and it doesnt look good. Navigating to the language specific pages now throws a server side error, will look into that. I was then able to navigate to the other supersense / construal pages with the nav bar back. The metadata does display (screenshot below), i successfully tested editing the description for one of the pages, but the metadata displays on the bottom of the page instead of the side. Would you have any suggestions, for next steps? I thought, now the js scripts are added, I would start to try fix some of the CSS layout issues (and that server side bug). |
Yes please see if you can get it working as before. You may want to see if there are django-wiki default templates/CSS you can refer to. It may be that the Xposition ones were adapted from the older versions of those. |
I'm now working on cleaning up the webpage layouts in the upgraded website (upgraded to django-wiki 0.7.5 in addition to upgrades above). One place where i'm currently stuck is that Markdown has stopped rendering in the upgraded website. An example is in the screenshot below (preview window, but the same issue is present in the Article view): Trying to google some ideas, was wondering if anyone might have an idea how to tackle this. |
It's displaying Markdown, just not the Xposition-specific macros. So it might be that custom macros are turned off, or that the Xposition-specific ones are being ignored. |
Thanks, i had to add back the Xposition specific changes to the src/wiki/plugins/macros files which were overwritten when i did the merge from the latest django-wiki (0.7.5), and these macros now work. I tested the new site and made front-end changes to get the look (mostly) back to what it was before. Also fixed a few bugs while testing the pages (tested the admin functionality also and the login/signup functions). I think I am done testing the new site and making the fixes. I'm wondering what the next steps would be, maybe, host the new site on a test environment so maybe some more users can try it out? The new site is on the djangiwiki-upgrade branch that i created earlier. These are the screenshots of the home page and a page with positional macros: |
Great progress! Comparing the screenshot to http://flat.nert.georgetown.edu/Ancillary/, I see a few CSS issues:
|
^ |
Documenting a few more issues noticed:
|
Deployed djangowiki-upgrade to master and to production server. Two o/s issues, in the immediately prior comment. |
Consider whether it would be beneficial at this point to upgrade to django-wiki 0.5 and Django 2.2/3. Django 3 comes out in December.
The text was updated successfully, but these errors were encountered: