Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Blog is a simple Django Blog app.
Blogs can have tags, title, image, short description and a rich text blog.
Tags are created in Admin and Users can then add as many as they like.
Detailed documentation is needs writing.
pip install hexia-blog
Add "blog" and dependencies to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'ckeditor', 'ckeditor_uploader', 'blog', ]
Add "blog.context_processors.hexia_blog" to your context_processors::
'OPTIONS': {
'context_processors': [
...
'blog.context_processors.hexia_blog',
],
},
Include the blog URLconf in your project urls.py like this::
path('blog/', include('blog.urls')),
Run python manage.py migrate
to create the blog models.
Start the development server and visit http://127.0.0.1:8000/admin/ to create a Tag (you'll need the Admin app enabled).
There are 5 URLs provided.
Blog Detail provides the detail of a specific blog. Template: blog/blog_detail.html
Blog List will list all blogs. Template: blog/blog_list.html
There is a special case of list where 'tag' and/or 'search_string' get be set. When set, only blogs matching these criteria will be returned. See blog/blog_list.html to see it implemented.
Tag List provides a list of blogs with the associated Tag.
Month List provides a list of blogs within the associated Month.
Blog Create will allow you to create a new blog (or you can via admin) Template: blog/blog_form.html
When using create you must set the blog auther to the user who it is associated with.
7b. There aprev and next blog functions provided
For a given `blog` object you can access the previous and next blog with `blog.prev_blog` and `blog.next_blog`
8. Visit http://127.0.0.1:8000/.
Blog uses AUTH_USER_MODEL as the default user model. It will default to the Django User model if AUTH_USER_MODEL is not set in settings.py
BLOG_PAGINATION: The number of blogs shown on a single page when using listing. Default = 20
There is a single context_processor provided, 'hexia_blog_tags', which provides a list of all Tags. It is used in blog_list.html.
FAQs
A simple Django Blog app.
We found that hexia-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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.