samluescher / django-persistent-messages Goto Github PK
View Code? Open in Web Editor NEWA Django app for unified and persistent user messages/notifications, built on top of Django's messages framework
A Django app for unified and persistent user messages/notifications, built on top of Django's messages framework
Ran into trouble running django 1.4 with USE_TZ=True
File "...\persistent_messages\storage.py" in _message_queryset
qs = Message.objects.filter(user=get_user(self.request)).filter(Q(expires=None) | Q(expires__gt=datetime.datetime.now()))
Simple enough fix so as time permits I will test a backwards-compatible fix.
I am using Django 1.3
When following the simple example I get the following error:
** add() takes at most 4 arguments (9 given) **
It is traced to line 9 in api.py
* return request._messages.add(level, message, extra_tags, subject, user, from_user, expires, close_timeout)*
To recreate this error, just need a simple app and follow the guide posted in the README.
Could you please add a setup.py file to install this application via pip for example.
Thank you in advance.
Or do persistent messages override my usage of the built in django messages?
Could you please add a LICENSE file to your project? http://choosealicense.com/
Hi philomat, i did a fork, because i wanted add messages like "email is unverified" in a middleware, but i couldn't, then i do rebuild of all storages, and get a design more abstract and extensible like fallbackstorage of django(you can see here https://github.com/AliLozano/django-messages-extends) also i have changed the README, you can see there, my changes.. i don't know if put a pull request because it will loose backward compatibility, or keep there with other name, and either know if i change the author in setup.py and put you as co-author, because i want to upload it to pypi.. what do you think that i should do???...
Thanks by all.
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.