from django.conf import settings
from django.http import HttpResponseRedirect

DEFAULT_REDIRECT_URL = getattr(settings, 'DEFAULT_REDIRECT_URL', 'https://srturl.herokuapp.com') #'http://www.strurl.com')

def wildcard_redirect(request, path=None):
	# print("The grouped is :", path)
	new_url = DEFAULT_REDIRECT_URL
	if path is not None:
		new_url = DEFAULT_REDIRECT_URL + '/' + path

	return HttpResponseRedirect(new_url)
