Skip to content
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

Migrate to Django-CMS #581

Merged
merged 18 commits into from
Apr 24, 2023
Merged

Migrate to Django-CMS #581

merged 18 commits into from
Apr 24, 2023

Conversation

Bartvaderkin
Copy link
Contributor

@Bartvaderkin Bartvaderkin commented Apr 13, 2023

This installs a basic functional django-cms, using the regular templates.

This as a development basis to start building out and migrating existing apps and features to apphooks and plugins.

For now all new elements have a very ugly CSS style and outline (like the dynamic menu).

The existing homepage is moved to /oldhome so we can have django-cms as root in the url router. This also means url-resolving and reversing is a bit borky as existing urls take precedence.

(this also breaks dajngo-admin-index layout so that is disabled for now)

@Bartvaderkin Bartvaderkin force-pushed the feature/django-cms branch 2 times, most recently from 0bda414 to 398c808 Compare April 14, 2023 12:32
@codecov-commenter
Copy link

codecov-commenter commented Apr 14, 2023

Codecov Report

Merging #581 (d60b7b0) into develop (0bd2642) will decrease coverage by 0.60%.
The diff coverage is 95.65%.

@@             Coverage Diff             @@
##           develop     #581      +/-   ##
===========================================
- Coverage    96.76%   96.17%   -0.60%     
===========================================
  Files          554      564      +10     
  Lines        19602    19795     +193     
===========================================
+ Hits         18968    19037      +69     
- Misses         634      758     +124     
Impacted Files Coverage Δ
src/open_inwoner/accounts/forms.py 97.93% <ø> (ø)
src/open_inwoner/accounts/tests/factories.py 100.00% <ø> (ø)
src/open_inwoner/accounts/views/__init__.py 100.00% <ø> (ø)
src/open_inwoner/accounts/views/auth.py 69.23% <ø> (ø)
src/open_inwoner/accounts/views/registration.py 100.00% <ø> (ø)
...rc/open_inwoner/components/templatetags/helpers.py 91.30% <ø> (ø)
.../open_inwoner/components/templatetags/link_tags.py 92.72% <ø> (ø)
src/open_inwoner/openzaak/notifications.py 95.12% <ø> (ø)
src/open_inwoner/pdc/models/category.py 89.18% <0.00%> (ø)
src/open_inwoner/pdc/tests/test_logging.py 100.00% <ø> (ø)
... and 73 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@alextreme alextreme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed together with Bart, wish is to keep the Django admin style as-is (a la AFS setup) while integration Django CMS (but Bart did this on-the-fly so seems doable).

@Bartvaderkin Bartvaderkin marked this pull request as ready for review April 24, 2023 11:47
@@ -49,6 +49,17 @@ playwright
django-yubin
django-image-cropping

# django cms
django-cms
djangocms-text-ckeditor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now disable djangocms-text/link/file/picture

Copy link
Member

@alextreme alextreme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be merged, however a few remarks:

  • lets remove the djangocms-x plugins for now before merging (to avoid having to style these properly, it'll be quite a bit of work)
  • the 'fixed' home-templates are commentted out (which is useful for the transition but will need to be cleaned up later)
  • See what's possible with a django cms fixture, but that can be done after merging on the testenvironment. Alternatives would be to use a wizard or setting up the various environments manually.

@alextreme alextreme merged commit 112f337 into develop Apr 24, 2023
@alextreme alextreme deleted the feature/django-cms branch April 24, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants