Code Monkey home page Code Monkey logo

djangocms-instagram's Introduction

djangocms-instagram

image

Latest Version

Downloads

License

image

Use djangocms-instagram to display your latest photos or other users photos (from any non-private Instagram account), tagged photos, photos from a place or location or your liked photos.

This project requires django-connected and django-cms v3.0 or higher to be properly installed and configured. When installing the djangocms-instagram using pip, django-connected will also be installed automatically.

Preview

image

image

image

Quickstart

  1. Install djangocms-instagram:

    pip install djangocms-instagram
  2. Add djangocms_instagram to INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'connected_accounts',
        'connected_accounts.providers',
        'djangocms_instagram',
        ...
    )
  3. To enable Instagram as a provider for django-connected:

    CONNECTED_ACCOUNTS_INSTAGRAM_CONSUMER_KEY = '<instagram_client_id>'
    CONNECTED_ACCOUNTS_INSTAGRAM_CONSUMER_SECRET = '<instagram_client_secret>'
  4. Sync database (requires south>=1.0.1 if you are using Django 1.6.x):

    python manage.py migrate

Configuration

Plugin(s) Module - If module is None, plugin is grouped Generic group:

DJANGOCMS_INSTAGRAM_PLUGIN_MODULE = _('Generic')

Name of the plugin:

DJANGOCMS_INSTAGRAM_PLUGIN_NAME = _('Instagram')

Can this plugin only be attached to a placeholder that is attached to a page:

DJANGOCMS_INSTAGRAM_PAGE_ONLY = False

A list of Plugin Class Names. If this is set, this plugin may only be added to plugins listed here:

DJANGOCMS_INSTAGRAM_PARENT_CLASSES = None

Is it required that this plugin is a child of another plugin? Or can it be added to any placeholder:

DJANGOCMS_INSTAGRAM_REQUIRE_PARENT = False

Whether this plugin can be used in text plugins or not:

DJANGOCMS_INSTAGRAM_TEXT_ENABLED = False

The path to the default template used to render the template:

DJANGOCMS_INSTAGRAM_DEFAULT_TEMPLATE = 'djangocms_instagram/default.html'

or override the Design dropdown choices to have different design options:

DJANGOCMS_INSTAGRAM_TEMPLATES = (
    ('djangocms_instagram/default.html', _('Default')),
)

You may also like...

djangocms-instagram's People

Contributors

itcrab avatar mishbahr avatar

Stargazers

 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

djangocms-instagram's Issues

ImportError: cannot import name 'patterns'

When we do:
python manage.py migrate

We see error:
File "/usr/local/lib/python3.5/site-packages/djangocms_instagram/cms_plugins.py", line 74, in get_plugin_urls
from django.conf.urls import patterns, url
ImportError: cannot import name 'patterns'

Environment:
Python: 3.5.2
Django: 1.10.5
djangocms-instagram: from master

KeyError 'data'

I'm getting this error after choosing "Media published by the user" and saving the plugin

selection_339

selection_337

Am I missing something?

Thanks

KeyError during template rendering

Hello, mishbahr and community.
I have encounter a problem, that after installing and configuring the plugin, when i add plugin to my page and choose to show all media posted by user, i select the right user and after clicking Save button i am getting an KeyError saying that something is wrong with a template.
Here is a traceback: http://dpaste.com/08D5HV4
Please, help me to resolve the problem

Is there any way to load more media?

I am using the plugin and set the count of media to 9, but I would like to include a load more button that allows me to load more media in the same amount (the first time would fetch from 10 to 18, the second from 19 to 27, and so on).

Is there any way to do this with the current code?

RuntimeError: Model class menus.models.CacheKey doesn't declare an explicit app_label

Hello there, we try this djangocms-instagram under Django==1.9.5, and we getting the error like this.
Thanks so much before..

(instagram-env) official ~$ ./manage.py makemigrations
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
    django.setup()
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/djangocms_instagram/models.py", line 6, in <module>
    from cms.models import CMSPlugin
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/cms/models/__init__.py", line 3, in <module>
    from .pagemodel import *  # nopyflakes
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/cms/models/pagemodel.py", line 27, in <module>
    from menus.menu_pool import menu_pool
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/menus/menu_pool.py", line 19, in <module>
    from menus.models import CacheKey
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/menus/models.py", line 30, in <module>
    class CacheKey(models.Model):
  File "/home/agaust/ENV/instagram-env/local/lib/python2.7/site-packages/django/db/models/base.py", line 102, in __new__
    "INSTALLED_APPS." % (module, name)
RuntimeError: Model class menus.models.CacheKey doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

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.