
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
This is reusable blog app designed for use with django-widgy_. It can be utilized as a drop-in addition to a widgy project for creating a quick, run-of-the-mill blog or as an abstract guide to building your own custom app that takes advantage of all the wonderful features that widgy offers.
(This guide assumes that your project is already using widgy. Please see this tutorial_ if this is not the case.)
Install the package
$ pip install django-widgy-blog
Add widgy_blog
to your INSTALLED_APPS
.
Run python manage.py migrate
in
order to generate the relevant models in the database.
Configure the urls:
a. If you're using widgy's contrib.urlconf_include
package, you can
opt to use widgy_blog as a plugin. This allows admin users of the site
to take advantage of plugin-specific features, such as editing the url
route of the blog and customizing its addition to menus. See
urlconf_include_ for more information.
b. Alternatively, you can include the widgy_blog urls within your urls.py file as you normally would. Just remember to add them before the included Mezzanine urls if you're editing the root conf!
That's it. Log in to the admin center and start adding blog posts!
.. _django-widgy: https://github.com/fusionbox/django-widgy .. _tutorial: http://docs.wid.gy/en/latest/tutorials/widgy-mezzanine-tutorial.html .. _urlconf_include: http://docs.wid.gy/en/latest/tutorials/widgy-mezzanine-tutorial.html#urlconf-include
rel=prev
and rel=next
links.Add model attributes to AbstractBlogLayout and BlogAdmin that make them easier to subclass. Update AbstractBlogLayout published queryset function to use fewer queries [Scott Clark, #18]
Backwards Incompatible: Registered the BlogLayout
model with widgy.
If you weren't using this as your Blog layout, you will need to unregister
it::
import widgy
from widgy_blog.models import BlogLayout
widgy.unregister(BlogLayout)
If you were already registering the BlogLayout
yourself, you can just
remove that code.
FAQs
Reusable blog app for Django-Widgy
We found that django-widgy-blog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.