Add user and send mail

This commit is contained in:
ibuler
2016-09-01 01:12:02 +08:00
parent 5359da3ce2
commit 5940cec0e6
11 changed files with 96 additions and 35 deletions

View File

@@ -1,4 +1,17 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
from __future__ import unicode_literals
from django.shortcuts import reverse as dj_reverse
from django.conf import settings
def reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None, external=False):
url = dj_reverse(viewname, urlconf=urlconf, args=args, kwargs=kwargs, current_app=current_app)
if external:
url = settings.SITE_URL.strip('/') + url
return url