Use hosting resources instead of datacenterlight
This commit is contained in:
parent
373254f98f
commit
cbb7da3285
3 changed files with 7 additions and 7 deletions
|
@ -151,7 +151,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
|
|||
'dcl_text': dcl_text
|
||||
},
|
||||
'template_name': 'user_activation',
|
||||
'template_path': 'datacenterlight/emails/'
|
||||
'template_path': 'hosting/emails/'
|
||||
}
|
||||
if account_details:
|
||||
email_data['context'][
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
{% endif %}
|
||||
<a class="navbar-brand topnav" href="{% url 'datacenterlight:index' %}"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
|
||||
<a class="navbar-brand topnav" href="{% url 'hosting:login' %}"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
|
||||
</div>
|
||||
{% if request.user.is_authenticated %}
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
|
|
|
@ -69,7 +69,7 @@ class SignupValidateView(TemplateView):
|
|||
login_url = '<a href="' + \
|
||||
reverse('hosting:login') + '">' + str(_('login')) + '</a>'
|
||||
home_url = '<a href="' + \
|
||||
reverse('datacenterlight:index') + '">Data Center Light</a>'
|
||||
reverse('hosting:login') + '">Data Center Light</a>'
|
||||
message = '{signup_success_message} {lurl}</a> \
|
||||
<br />{go_back} {hurl}.'.format(
|
||||
signup_success_message=_(
|
||||
|
@ -120,7 +120,7 @@ class SignupValidatedView(SignupValidateView):
|
|||
email.send()
|
||||
else:
|
||||
home_url = '<a href="' + \
|
||||
reverse('datacenterlight:cms_index') + \
|
||||
reverse('hosting:login') + \
|
||||
'">Data Center Light</a>'
|
||||
message = '{sorry_message} <br />{go_back_to} {hurl}'.format(
|
||||
sorry_message=_("Sorry. Your request is invalid."),
|
||||
|
@ -274,14 +274,14 @@ class SSHKeyCreateView(FormView):
|
|||
|
||||
class AskSSHKeyView(SSHKeyCreateView):
|
||||
form_class = UserHostingKeyForm
|
||||
template_name = "datacenterlight/add_ssh_key.html"
|
||||
success_url = reverse_lazy('datacenterlight:order_confirmation')
|
||||
template_name = "hosting/add_ssh_key.html"
|
||||
success_url = reverse_lazy('hosting:order_confirmation')
|
||||
context_object_name = "dcl_vm_buy_add_ssh_key"
|
||||
|
||||
# @cache_control(no_cache=True, must_revalidate=True, no_store=True)
|
||||
def get(self, request, *args, **kwargs):
|
||||
context = {
|
||||
'site_url': reverse_lazy('datacenterlight:index'),
|
||||
'site_url': reverse_lazy('hosting:login'),
|
||||
# 'cms_integration': get_cms_integration('default'),
|
||||
'form': UserHostingKeyForm(request=self.request),
|
||||
# 'keys': get_all_public_keys(self.request.user)
|
||||
|
|
Loading…
Reference in a new issue