dreipol / djangocms-spa Goto Github PK
View Code? Open in Web Editor NEWRun your django CMS project as a single-page application (SPA)
License: MIT License
Run your django CMS project as a single-page application (SPA)
License: MIT License
The class ReCaptchaFormMixin has the following init method:
def __init__(self, *args, **kwargs):
self.request = kwargs.pop('request', None)
super(ReCaptchaFormMixin, self).__init__(*args, **kwargs)
Why is the request popped rather then getted from kwargs. This is possibly dangerous if another Mixin or the form itself needs access to the request.
Are there any reason for the pop or should we exchange it with a get?
djangocms-spa/djangocms_spa/renderer.py
Line 104 in 73322d3
Since this is just an arbitrary name used by the client side code, we should add an option to customise these. Possible solutions:
cmp
in the settings (probably this is enough for most use cases)I tried to add djangocms-spa
as described. Unfortunately the package has a missing dependency: django-appconf
pip install django-appconf==1.0.2
Add dependency to pypi package.
Describe what you were trying to get done.
Being trying to integrate the pkg into my djangocms project. Following README.md step-by-step.
Tell us what happened, what went wrong, and what you expected to happen.
Not sure where some of those parts should go. Need help with the initial setup. Please provide a sample project.
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
The class DjangoCmsMixin
is not really a mixin, because it inherits from Model. We have two possibilities here:
DjangoCmsMixin
to something like DjangoCmsSPABaseModel
Model
inheritanceWith the last option we could guarantee backwards compatibility by creating a "new" class DjangoCmsMixin
with a deprecation warning
In the render pool objects are added. Maybe it would be better to register classes and then create a new renderer every time when using it.
djangocms does it this way with its plugin renderers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.