Create your own _blank.html file and add your own CSS and JS files
{% extends '_seo.html' %}
...
{% block stylesheets %}
{{ block.super }}
{# Bootstrap is included with _seo.html #}
{# Overload after block.super if you don't want the Qux version #}
<link rel="stylesheet" href="{% static 'css/site.css' %}">
{% endblock %}
{% block javascript %}
{{ block.super }}
{# Bootstrap is included with _seo.html #}
{# Overload after block.super if you don't want the Qux version #}
{# Site Javascript #}
<script src="{% static 'js/site.js' %}"></script>
{% endblock}}Qux is a django template with augmented models, extra template tags, and useful utilities.
It is similar in intent to django_extensions, a massively useful tool.
- Core
- Auth
- SEO
- Templates
- TemplateTags
- Utils
mysqldatephone
CoreModeldtm_createddtm_updatedto_dict(self)get_dict(cls, pk)slug- CharField() that also indicates if the model requires auto-slugsAUDIT_SUMMARY- AuditSummary modelAUDIT_DETAIL- AuditDetail model
CoreModelPlus- where all deleted rows are soft-deleted onlyAbstractLeadCoreModelAuditSummaryCoreModelAuditDetail
CompanyProfile-OneToOne(User)
Abstractions
AbstractCompanyAbstractContactPhoneAbstractContactEmailAbstractContact
Logging
DownloadLogUploadLogCoreURLLogCommLog
urlpatterns += [
...,
path("", include("qux.auth.urls.appurls", namespace="qux_auth")),
...,
]- login/
- logout/
- change-password/
- password-reset/
SEOSite-OneToOne(Site)SEOPage
- SEOMixin
_blank.html
multiplydivideatleastqux_minqux_maxdate_beforeaddstrurl_replace{% lineless %}{% endlineless %}
is_checkbox→Boolean
Add these configuration in project/project/settings.py file after adding qux app in your project
LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'
SHOW_USERNAME_SIGNUP = False
ROOT_TEMPLATE = "_app.html"