django-affiliate | Affiliate system for django | Application Framework library

 by   st4lk Python Version: 0.4.0 License: No License

kandi X-RAY | django-affiliate Summary

kandi X-RAY | django-affiliate Summary

django-affiliate is a Python library typically used in Server, Application Framework applications. django-affiliate has no vulnerabilities, it has build file available and it has low support. However django-affiliate has 4 bugs. You can install using 'pip install django-affiliate' or download it from GitHub, PyPI.

[Pypi version] Affiliate system to reward partners with their visitors payments. Contains abstract models with basic functionality, so it is easy to subclass them and add your custom logic and relations. Note: version 0.2.0 is backwards incompatible with previous versions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              django-affiliate has a low active ecosystem.
              It has 61 star(s) with 35 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 5 have been closed. On average issues are closed in 271 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of django-affiliate is 0.4.0

            kandi-Quality Quality

              django-affiliate has 4 bugs (0 blocker, 0 critical, 2 major, 2 minor) and 12 code smells.

            kandi-Security Security

              django-affiliate has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              django-affiliate code analysis shows 0 unresolved vulnerabilities.
              There are 10 security hotspots that need review.

            kandi-License License

              django-affiliate does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              django-affiliate releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              django-affiliate saves you 550 person hours of effort in developing the same functionality from scratch.
              It has 1287 lines of code, 65 functions and 59 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed django-affiliate and discovered the below as its top functions. This is intended to give you an instant insight into django-affiliate implemented functionality, and help decide if they suit your requirements.
            • Process the request
            • Return the active Affiliate instance
            • Remove url from url
            • Return the AffiliateModel instance for the given aid_code
            • Handle login form
            • Create a new Affiliate instance
            • Returns success URL
            • Return the Affiliate object
            • Returns the associate model
            • Creates a new affiliate
            • Decorator to handle login required
            Get all kandi verified functions for this library.

            django-affiliate Key Features

            No Key Features are available at this moment for django-affiliate.

            django-affiliate Examples and Code Snippets

            No Code Snippets are available at this moment for django-affiliate.

            Community Discussions

            QUESTION

            What is meant by required-api: param name=”#target” in config.xml file of AGL widgets?
            Asked 2020-Mar-06 at 09:53

            I am trying to understand various available AGL specific options that we can give in config.xml and I am referring to the link below

            https://docs.automotivelinux.org/docs/en/halibut/apis_services/reference/af-main/2.2-config.xml.html

            This is the sample config.xml file

            ...

            ANSWER

            Answered 2020-Mar-06 at 09:48

            I figured out why we need this

            required-api: param name="#target"

            OPTIONAL(not compulsory)

            It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.

            Source https://stackoverflow.com/questions/60561230

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install django-affiliate

            Install this package to your python distribution.
            Install this package to your python distribution pip install django-affiliate
            Add affiliate to INSTALLED_APP: INSTALLED_APPS = [ # ... 'affiliate', ]
            Add affiliate.middleware.AffiliateMiddleware to MIDDLEWARE_CLASSES: MIDDLEWARE_CLASSES = ( # ... 'affiliate.middleware.AffiliateMiddleware', )
            Define your custom affiliate model (similar to custom user model): # our_app/models.py from django.db import models from affiliate.models import AbstractAffiliate class Affiliate(AbstractAffiliate): pass # or add some your custom fields here # settngs.py AFFILIATE_AFFILIATE_MODEL = 'our_app.Affiliate'
            Create tables # django <= 1.6 python manage.py syncdb # django <= 1.6 & south python manage.py schemamigration our_app --auto python manage.py migrate our_app # django >= 1.7 python manage.py makemigrations our_app python manage.py migrate our_app
            Finally, reward affiliate from django.views.generic import FormView from affiliate.tools import get_affiliate_model Affiliate = get_affiliate_model() class SomeView(FormView): # ... def form_valid(self.form): product = self.get_product() if self.request.affiliate.exists() and self.request.affiliate.is_active: # reward affiliate here, your custom logic is here Transaction.objects.create( user=self.affiliate.user, amount=Affiliate.calc_affiliate_reward(product.price)) return super(SomeView, self).form_valid(form)

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install django-affiliate

          • CLONE
          • HTTPS

            https://github.com/st4lk/django-affiliate.git

          • CLI

            gh repo clone st4lk/django-affiliate

          • sshUrl

            git@github.com:st4lk/django-affiliate.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link