ivirabyan / django-mentions Goto Github PK
View Code? Open in Web Editor NEWTwitter-like mentions for django
Twitter-like mentions for django
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?
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
Hi,
is still alive the project?
Thank's in advance
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.