GithubHelp home page GithubHelp logo

django-mentions's People

Contributors

ivirabyan avatar ysegorov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

django-mentions's Issues

Documentation Might Not Be Correct

I love the idea of this app, and I hope it can work for me. But I ran into some issues when setting it up.

First, it seems importing from mentions.providers import Provider doesn't work, as providers.py doesn't exist. I found Provider class in the registry.py module.

Second, while this seems reasonable to assume, how do I load the filter? When I set it up as per your docs, and then I use like so {{ post.text|urlize_mentions }} I get errors saying that filter is invalid.

Any hints or tricks or tips?

registry error

Getting a registry error when I include 'mentions' in my INSTALLED_APPS in my Django 1.9 project.

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x10186cb70>
Traceback (most recent call last):
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
    six.reraise(*_exception)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/utils/autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/django/apps/config.py", line 90, in create
    module = import_module(entry)
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 662, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/mentions/__init__.py", line 1, in <module>
    from .registry import Provider
  File "/Users/ujjwal/workspace/play/ph4/penv/lib/python3.5/site-packages/mentions/registry.py", line 69
    except ImportError, e:
                      ^
SyntaxError: invalid syntax

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.