Use hosting resources instead of datacenterlight

This commit is contained in:
M.Ravi 2023-11-26 12:14:43 +05:30
parent 373254f98f
commit cbb7da3285
3 changed files with 7 additions and 7 deletions

View file

@ -151,7 +151,7 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
'dcl_text': dcl_text 'dcl_text': dcl_text
}, },
'template_name': 'user_activation', 'template_name': 'user_activation',
'template_path': 'datacenterlight/emails/' 'template_path': 'hosting/emails/'
} }
if account_details: if account_details:
email_data['context'][ email_data['context'][

View file

@ -13,7 +13,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
{% endif %} {% 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> </div>
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->

View file

@ -69,7 +69,7 @@ class SignupValidateView(TemplateView):
login_url = '<a href="' + \ login_url = '<a href="' + \
reverse('hosting:login') + '">' + str(_('login')) + '</a>' reverse('hosting:login') + '">' + str(_('login')) + '</a>'
home_url = '<a href="' + \ home_url = '<a href="' + \
reverse('datacenterlight:index') + '">Data Center Light</a>' reverse('hosting:login') + '">Data Center Light</a>'
message = '{signup_success_message} {lurl}</a> \ message = '{signup_success_message} {lurl}</a> \
<br />{go_back} {hurl}.'.format( <br />{go_back} {hurl}.'.format(
signup_success_message=_( signup_success_message=_(
@ -120,7 +120,7 @@ class SignupValidatedView(SignupValidateView):
email.send() email.send()
else: else:
home_url = '<a href="' + \ home_url = '<a href="' + \
reverse('datacenterlight:cms_index') + \ reverse('hosting:login') + \
'">Data Center Light</a>' '">Data Center Light</a>'
message = '{sorry_message} <br />{go_back_to} {hurl}'.format( message = '{sorry_message} <br />{go_back_to} {hurl}'.format(
sorry_message=_("Sorry. Your request is invalid."), sorry_message=_("Sorry. Your request is invalid."),
@ -274,14 +274,14 @@ class SSHKeyCreateView(FormView):
class AskSSHKeyView(SSHKeyCreateView): class AskSSHKeyView(SSHKeyCreateView):
form_class = UserHostingKeyForm form_class = UserHostingKeyForm
template_name = "datacenterlight/add_ssh_key.html" template_name = "hosting/add_ssh_key.html"
success_url = reverse_lazy('datacenterlight:order_confirmation') success_url = reverse_lazy('hosting:order_confirmation')
context_object_name = "dcl_vm_buy_add_ssh_key" context_object_name = "dcl_vm_buy_add_ssh_key"
# @cache_control(no_cache=True, must_revalidate=True, no_store=True) # @cache_control(no_cache=True, must_revalidate=True, no_store=True)
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
context = { context = {
'site_url': reverse_lazy('datacenterlight:index'), 'site_url': reverse_lazy('hosting:login'),
# 'cms_integration': get_cms_integration('default'), # 'cms_integration': get_cms_integration('default'),
'form': UserHostingKeyForm(request=self.request), 'form': UserHostingKeyForm(request=self.request),
# 'keys': get_all_public_keys(self.request.user) # 'keys': get_all_public_keys(self.request.user)