GithubHelp home page GithubHelp logo

samluescher / django-persistent-messages Goto Github PK

View Code? Open in Web Editor NEW
107.0 107.0 64.0 158 KB

A Django app for unified and persistent user messages/notifications, built on top of Django's messages framework

Python 100.00%

django-persistent-messages's People

Contributors

samluescher avatar thoas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

django-persistent-messages's Issues

django 1.4 USE_TZ compat

Ran into trouble running django 1.4 with USE_TZ=True

File "...\persistent_messages\storage.py" in _message_queryset

  1.     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.

Does not support changes to messages api.

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.

Add a setup.py

Could you please add a setup.py file to install this application via pip for example.

Thank you in advance.

I did a fork and rebuild the project

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.

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.