import os from london.apps.themes.registration import register_template register_template("articles_base", mirroring="articles/base.html") register_template("post_list", mirroring="articles/post_list.html") register_template("post_view", mirroring="articles/post_view.html") register_template("post_edit", mirroring="articles/post_edit.html") from london.apps.ajax import site site.register_scripts_dir('articles', os.path.join( os.path.dirname(__file__), 'scripts'))
import os from london.apps.themes.registration import register_template from london.apps.ajax import site register_template("comments", mirroring="comments/comments.html") register_template("comment", mirroring="comments/comment.html") site.register_scripts_dir('comments', os.path.join(os.path.dirname(__file__), 'scripts'))
""" This application has a similar function of Django's contrib "messages", but works by a different point of view. Notifications in this approach can be sent as cookies or by Ajax requests as well. """ from london.apps.notifications.api import * import os from london.apps.ajax import site site.register_scripts_dir("notifications", os.path.join(os.path.dirname(__file__), "scripts"))