A Pen by ElimuStuart on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"$matchOne": func(template, context map[string]interface{}) (interface{}, error) { | |
if err := restrictProperties(template, "$matchOne"); err != nil { | |
return nil, err | |
} | |
match, ok := template["$matchOne"].(map[string]interface{}) | |
if !ok { | |
return nil, TemplateError{ | |
Message: "$matchOne can evaluate objects only", | |
Template: template, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load static %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Readit - Free Bootstrap 4 Template by Colorlib</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab |
Easily create a superuser for your django project using this simple line.
I found this trick on the Quickstart guide from the django-rest-framework docs
$ python manage.py createsuperuser --username admin --email admin@example.com
Password: **********
Password (again): **********
Superuser created successfully.
OlderNewer