=====
Sticky Messages
=====
Sticky Messages is a simple Django app to display "sticky" messages stored in
a message model that expire after a given time period.
Inspiration from:
http://stackoverflow.com/questions/3076365/how-to-make-django-messages-stackoverflow-style
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "stickymessages" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'stickymessages',
)
2. Add "stickymessages" to your TEMPLATE_CONTEXT_PROCESSORS setting like this::
TEMPLATE_CONTEXT_PROCESSORS = (
...
'stickymessages.context_processors.latest_sticky_message',
)
3. Run `python manage.py syncdb` to create the stickymessages models.
4. Start the development server and visit http://127.0.0.1:8000/admin/
to create a message (you'll need the Admin app enabled).
5. To display a message simply add
{% include "stickymessages/display_latest_message.html" %} to one of your
templates.
NOTE: Template file uses bootstrap 'alert alert-block' classes for styling.
You may create your own styling by using the sticky-message style.
Sticky Messages
=====
Sticky Messages is a simple Django app to display "sticky" messages stored in
a message model that expire after a given time period.
Inspiration from:
http://stackoverflow.com/questions/3076365/how-to-make-django-messages-stackoverflow-style
Detailed documentation is in the "docs" directory.
Quick start
-----------
1. Add "stickymessages" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'stickymessages',
)
2. Add "stickymessages" to your TEMPLATE_CONTEXT_PROCESSORS setting like this::
TEMPLATE_CONTEXT_PROCESSORS = (
...
'stickymessages.context_processors.latest_sticky_message',
)
3. Run `python manage.py syncdb` to create the stickymessages models.
4. Start the development server and visit http://127.0.0.1:8000/admin/
to create a message (you'll need the Admin app enabled).
5. To display a message simply add
{% include "stickymessages/display_latest_message.html" %} to one of your
templates.
NOTE: Template file uses bootstrap 'alert alert-block' classes for styling.
You may create your own styling by using the sticky-message style.
Release files for django-sticky-messages 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-sticky-messages-0.1.tar.gz | 3.8 kB | Details |
Release files / django-sticky-messages-0.1.tar.gz
| Download URL | django-sticky-messages-0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28a588011a07bcbcbf7142d53f3b2cc709bc680b143e9eb1c7ac1d9211f7ca3a
|
|
BLAKE2b-256 checksum How to use checksums |
ae1c3cc567d3adb2305829a697383db2ef1d6f6a3a1d0f57e2f20425f3bccc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |