MASTER
STAGING
FEATURE/X
Modifica approvata
https://github.com/lotrekagency/handyman
NAS con
HANDYMAN
AUTOBACKUP & MONITORING
VPN
Rete esterna
Rete interna
gitlab.com/lotrekdevteam/internals/generator-lotrek/
{
"pretitle": "",
"title": "Cormancity",
"logo": "",
"favicon": "/static/img/favicon.png",
"languages" : {
"it" : "🇮🇹 Italiano"
},
"apiendpoint" : "/api",
"default_language" : "it",
"basehref" : "/",
"loadergif": "/static/img/loading.gif",
"theme": "./src/app/plugins/cormancity/app-theme-custom.scss",
"username_field": "email",
"role_field": "role",
"active_plugins" : [
{
"id": "camomilla",
"name": "Camomilla",
"exclude": ["Tag", "Contents", "Articles", "Pages", "Categories"]
},
{
"id": "cormancity",
"name": "Cormancity",
"exclude": [],
"dashboard": "cormancity/dash"
}
]
}
from camomilla.models import Page
def home(request):
context = {
'page' : Page.get(request, identifier='home'),
}
return render(request, 'website/home.html', context)
from camomilla.models import Article
from camomilla.exceptions import NeedARedirect
def blog_article(request, slug):
try:
context = {
'page' : Article.get(request, permalink=slug),
}
return render(request, 'website/blog_article.html', context)
except NeedARedirect as ex:
return redirect(ex.redirect_url)
{% load camomilla_filters %}
{% load djsuperadmintag %}
<div class="container text-center">
<img src='{% static "img/logo_ext.png" %}'>
{% with page|filter_content:'banner' as content %}
<h3>{{content.title}} </h3>
{% content_obj content 'content' %}
{% endwith %}
</div>