In the documentation of django-comments-xtd, django-inline-media and django-dress-blog I explain how to install the demo site of each application. However, sometimes it's useful to see the demo up and running before putting our hands on the code. With that intention I have set up demo sites for the aforementioned django apps.
In order to see how they are integrated with the admin interface the three demos allow admin access too. You can see the already existing model instances, modify them and add new instances. Just keep in mind that the database is initialized every 30 minutes.
The user and password are admin, admin.
Django-comments-xtd comes with two demos.
The first live demo consist of just an app with one model, Article, whose instances accept comments. Simplicity helps to understand the basics.
The second live demo allows site visitors to add comments to instances of various models. The intention is to show that it's possible to list comments sent to instances of different models presenting them as a feed. Two templatetags,
render_last_xtdcomments, offers such functionality, that reveals to be very useful in sites where traffic comes from user comments.
The two demos for django-comments-xtd are:
Django-inline-media allows insertion of inline media content, pictures and picture sets, into text fields. The demo shows 6 articles with inline images. The first and second article show picture sets, while the rest present single images either centered or side aligned.
Django-inline-media allow to organize pictures by tags and by author. Picture and PictureSet are the two media models that come along with the package. A picture set is a collection of pictures the user chooses and establishes in a given order, selecting as well which of them will be the cover. See how the two existing picturesets look like using the admin app.
The code behind the demo consist of a single model with a
body field of a special field type:
from inline_media.fields import TextFieldWithInlines class Article(models.Model): body = TextFieldWithInlines()
The Article admin class that you can see in the admin interface shows an extra line below the
body that allows to add inline content to the textarea. In order to make the admin interface show this extra line called inlines the admin class for Article should inherit from
AdminTextFieldWithInlinesMixin. That's all:
from inline_media.admin import AdminTextFieldWithInlinesMixin class ArticleAdmin(AdminTextFieldWithInlinesMixin, admin.ModelAdmin): pass
You can use it in an admin inline class too. Like it's been used by the DiaryDetailInline in the admin site of django-dress-blog:
class DiaryDetailInline(AdminTextFieldWithInlinesMixin, admin.StackedInline): pass
The django-inline-media documentation has a detailed description of the demo site. I recommend you to read it along while you try the live demo.
And last but not least I have set up the django-dress-blog demo. That shows a complete blogging application, with stories, quotes, a microblogging app wrapped in the diary, comments for all them, separated tag clouds, a blogroll, and search functionality provided with django-haystack, probably the best application for the matter in the Django app sphere.
When giving a try to this demo please, take into account that it is under active development and thus less stable than the other two. Unlike comments-xtd or inline-media, django-dress-blog has no finished documentation and neither has tests. I haven't developed it in a test-driven style. But it's being used in production in this very site with no major issue. So consider it mature enough if you want to use for your own projects.
Django-inline-media is also present without further customization. See in use in the list of stories, where almost every abstract contain images or picture sets.
You are welcome to help improving these plug-ins with your code, bug fixes and suggestions. If you want to suggest a new feature feel free to leave a comment in this page or in the release page of each project.
Have questions? Get in contact and drop me a message.