New Oscar architecture proposal
See original GitHub issueA while ago we discussed this with the @django-oscar/core team and finally I got to write it down as a proposal.
Since more and more projects implement only API and do not require frontend and/or dashboard, I came up with the raw idea of splitting Oscar into the parts, which would ease it customization:
oscar-core
- the main core functionality;oscar-storefront
- basically all storefront views and templates;oscar-dashboard
- all dashboard functionality.
On my latest projects we don’t use storefront or dashboard at all (basically only core functionality and API), so in this case it won’t need to disable almost all views.
Any feedback appreciated.
Please thumbs up or down if you support or down support the change.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:37
- Comments:24 (19 by maintainers)
Top Results From Across the Web
oscar niemeyer's last project is château la coste's new pavilion
Vineyard Château La Coste celebrates the entrance of a new pavilion designed by renowned Brazilian architect Oscar Niemeyer.
Read more >The Met Announces Architect for Oscar L. Tang and H.M. ...
Mexican architect Frida Escobedo has been selected to realize the renovation of The Met's modern and contemporary galleries, the Oscar L.
Read more >DDes Proposal Presentation: Oscar Kang
Based on recent efforts towards transdisciplinary education and the integration of theory and practice, this research proposes to develop, ...
Read more >Oscar Niemeyer | Tag - ArchDaily
See the latest news and architecture related to Oscar Niemeyer, ... public housing proposal in South Korea, the Dianju Village Library in China...
Read more >Oscar Niemeyer - Dezeen
Stories about Brazilian modernist architect Oscar Niemeyer (1907-2012) including buildings, furniture designs and news.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or perhaps,
oscar-graphql
.As far as decoupling components goes, the two things I would like to start with are
CheckoutSessionMixin
andOrderPlacementMixin
.Both of these implement a huge amount of business logic in the views, which is extremely problematic for anyone that wants to use that logic outside of a view context. I think most projects end up basically reimplementing this logic.
I’d like to move the business logic currently living in those views into separate code that doesn’t rely on a request/view context. This will also mean that things like sending order confirmation emails are not tied to views.
More generally I think we need to go through all the views and identify where there is business logic taking place that should be separated out.