Code Monkey home page Code Monkey logo

djangocms-spa's People

Contributors

chschuermann avatar melbic avatar nirazul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

djangocms-spa's Issues

Request is 'popped' in Mixin

  • djangocms_spa version: @73322d
  • Django version: 1.11
  • Python version: 3.6
  • Operating System: -

Description

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?

Remove hardcoded form component names

  • djangocms_spa version: f49db45
  • Django version: 1.11.11
  • Python version: 3.5.5
  • Operating System: macOS High Sierra (10.13.4)

Description

def _get_component_name(self):

Since this is just an arbitrary name used by the client side code, we should add an option to customise these. Possible solutions:

  • define the prefix cmp in the settings (probably this is enough for most use cases)
  • specify the names for each fieldtype manually in a settings dict or similar
  • do nothing and let the user overwrite the function every time he want's to have a custom name

Missing dependency: django-appconf

  • djangocms_spa version: 0.1.15
  • Django version: 1.10
  • Python version: 3.5
  • Operating System: macOS 10.12

Description

I tried to add djangocms-spa as described. Unfortunately the package has a missing dependency: django-appconf

Quickfix

pip install django-appconf==1.0.2

Todo

Add dependency to pypi package.

Trouble with the initial setup

  • djangocms_spa version: 0.1.20
  • Django version: 1.8.18
  • Python version: 2.7
  • Operating System: macOS High Sierra 10.13.2

Description

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.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Name of DjangoCmsMixin is misleading

  • djangocms_spa version: 0.1.3
  • Django version: 1.11
  • Python version: 3.6
  • Operating System: macos

Description

The class DjangoCmsMixin is not really a mixin, because it inherits from Model. We have two possibilities here:

  1. Renaming DjangoCmsMixin to something like DjangoCmsSPABaseModel
  2. Remove Model inheritance
  3. A combination -> Renaming and removing the inheritance

With the last option we could guarantee backwards compatibility by creating a "new" class DjangoCmsMixin with a deprecation warning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.