marazmiki / django-comments Goto Github PK
View Code? Open in Web Editor NEWYet another threaded deiscussion resuable application for Django Web Framework
Yet another threaded deiscussion resuable application for Django Web Framework
Downloading/unpacking django-comments
Downloading django-comments-1.0.0.b.tar.bz2
Running setup.py egg_info for package django-comments
Traceback (most recent call last):
File "", line 14, in
File "/home/brian/build/build/django-comments/setup.py", line 18, in
long_description = open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 14, in
File "/home/brian/build/build/django-comments/setup.py", line 18, in
long_description = open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
Такая настройка уже существует, её значение читается (тесты проходят). Нужно реализовать ограничение
django_comments_threaded/templatetags/comments_threaded_tags.py", line 154, in render if c.date_created > last_readed:
Сейчас комментирование абсолютно анонимно. Нужно что-то с этим делать =)
Рассмотреть варианты:
Хардкодить ничего не хочется. Возможно, имеет смысл сделать модель Author, которая будет связана с комментарием?
Шаблон в репозитории есть, больше подробностей на http://peak.telecommunity.com/DevCenter/setuptools
Сейчас нельзя написать цепочку фильтров вида Comment.objects.get_for_object(object).approved(), т.к. каждый из фильтрующих методов возвращает инстанцию родного джанговского QuerySet, в котором get_for_object и approved не определены.
Использование наследника QuerySet, в котором все фильтры будут определены, решит эту проблему.
README.rst file is missing
Python error:
IOError: [ Errno 2 ] No such file or directory: 'README.rst'
Добавить модели Comment следующие привилегии:
Для пользователей, имеющих права, сделать инлайновое выполнение этих функций
В функции comments.views.create в районе строк 85-87:
# Makes reply if parent comment specified
if parent:
comment.insert_at(parent, position='last-child', commit=False)
Не протестировано желаемое поведение, т.е. что это мы специально добавляем комментарий в качестве последнего потомка, а не, например, первого
Для подсчёта комментарев (особенно непрочитанных) выполняется слишком много аггрегирующих запросов. Нужно кешировать их и удалять кеш по сигналу создания объектов Comment и LastReadedComment
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.