question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Oscar architecture proposal

See original GitHub issue

A 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:open
  • Created 4 years ago
  • Reactions:37
  • Comments:24 (19 by maintainers)

github_iconTop GitHub Comments

7reactions
sasha0commented, Apr 12, 2019

As for GraphQL: sounds like something that might go into oscar-api

Or perhaps, oscar-graphql.

4reactions
solarissmokecommented, May 11, 2019

As far as decoupling components goes, the two things I would like to start with are CheckoutSessionMixin and OrderPlacementMixin.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found