May 2015

Django
2015-05-29 11:31 (10 years ago)
Create a Simple Login URL with Django

url(r'^login/', 'django.contrib.auth.views.login', name='login', kwargs={'template_name': 'admin/login.html', 'extra_context': {'next': '/'}}), Write this link in the template as follows,

Linux
2015-05-13 01:35 (11 years ago)
Remove Trailing Slash from Variable in Bash

Strip a trailing slash from a Bash variable with the parameter expansion `${var%/}`. Useful for normalizing paths from arguments or env vars.

Django
2015-05-10 07:19 (11 years ago)
Using reStructuredText with Mezzanine

There is a system called Mezzanine for building a CMS on Python + Django. By default, blog entries are written using a WYSIWYG HTML editor, but I wanted to write them using reStructured Text (reST, rst), so I did some research.

Categories

Archive