Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
redsolutioncms.django-seo
Advanced tools
Seo fields for objects of any model registed in admin or for specified url.
Put seo
as LAST item to your INSTALLED_APPS
in your settings.py
within your django project.
Sync your database::
./manage.py syncdb
Add names of ModelAdmins to be override::
SEO_FOR_MODELS = [
'<app>.models.<Model>',
]
First of all, load the seo_tags in every template you want to use it::
{% load seo_tags %}
Use:: {% seo <title|keywords|description> [for ] %}
Or:: {% seo <title|keywords|description> [for ] as %} {{ }}
settings.py
::
INSTALLED_APPS = (
...
'app',
...
'seo',
)
SEO_FOR_MODELS = [
'app.models.Object',
'app.models.Another',
]
templates/object.html
::
{% load seo_tags %}
<html>
<head>
<meta name="description" content="{% seo description for object %}" />
<meta name="keywords" content="{% seo keywords for object %}" />
<title>{% seo title for object %}</title>
</head>
<body>
{{ object.content }}
<h1>{% seo title for object as seo_title %}{{ seo_title }}</h1>
</body>
</html>
templates/base.html
::
<html>
<head>
<meta name="description" content="{% block description %}{% seo description %}{% endblock %}" />
<meta name="keywords" content="{% block keywords %}{% seo keywords %}{% endblock %}" />
<title>{% block title %}{% seo title %}{% endblock %}</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
templates/object.html
::
{% load seo_tags %}
{% block description %}{% seo description for object %}{% endblock %}
{% block keywords %}{% seo keywords for object %}{% endblock %}
{% block title %}{% seo title for object %}{% endblock %}
{% block content %}
{{ object.content }}
{% endblock %}
templates/another.html
::
{% load seo_tags %}
{% block description %}{% seo description for another %}{% endblock %}
{% block keywords %}{% seo keywords for another %}{% endblock %}
{% block title %}{% seo title for another %}{% endblock %}
{% block content %}
{{ another.content }}
{% endblock %}
Content plugins
_
.. _Content plugins
: http://www.redsolutioncms.org/classifiers/content
FAQs
Adds generic SEO fields for objects in your site or specific urls
We found that redsolutioncms.django-seo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.