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
mysql
date
phone
CoreModel
dtm_created
dtm_updated
to_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 onlyAbstractLead
CoreModelAuditSummary
CoreModelAuditDetail
Company
Profile
-OneToOne(User)
Abstractions
AbstractCompany
AbstractContactPhone
AbstractContactEmail
AbstractContact
Logging
DownloadLog
UploadLog
CoreURLLog
CommLog
urlpatterns += [
...,
path("", include("qux.auth.urls.appurls", namespace="qux_auth")),
...,
]
- login/
- logout/
- change-password/
- password-reset/
SEOSite
-OneToOne(Site)
SEOPage
- SEOMixin
_blank.html
multiply
divide
atleast
qux_min
qux_max
date_before
addstr
url_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"