question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey! Why is the link empty?

views.py ` class UserRegisterView(View):

def get(self, request, *args, **kwargs):
    if request.user.is_authenticated:
        return redirect('shop:index')
    else:
        form = UserRegisterForm()
        return render(request, 'account/register.html', context={'form': form})

def post(self, request, *args, **kwargs):
    form = UserRegisterForm(request.POST)
    if form.is_valid():
        cd = form.cleaned_data
        if cd['password'] != cd['confirm_password']:
            messages.error(request, 'Пароли не совпадают!')
            return redirect('account:register')
        elif CustomUser.objects.filter(email=cd['email']).exists():
            messages.error(request, 'Пользователь с таким email существует!')
            return redirect('account:register')
        else:
            user = CustomUser.objects.create_user(email=cd['email'], password=cd['password'])
            user.is_active = False
            send_email(user)
            messages.add_message(request, messages.INFO,
                                 'Вам на почту отправлено письмо с подтвержением регистрациии!')
            return redirect('shop:index')

`

I get this msg

<h1>You are almost there, namedima28@gmail.com!</h1><br>
<h2>Please click <a href="">here</a> to confirm your account</h2>
<h2>The token expires on 19:47</h2>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dima23113commented, Jan 17, 2022

It works! Thank you very much :3

0reactions
LeoneBacciucommented, Jan 17, 2022

Try installing version 0.1.1rc1 of this library. Also have you included the library urls in your urls.py?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Empty Link - example - Pope Tech Blog
Summary: Real world example on the Empty Link Error. You can review what this means technically and the impact inside of our Icon...
Read more >
Empty Link - Equalize Digital
An Empty Link error means that one of the links present on the web page is empty or contains no text describing where...
Read more >
Empty link - Web Accessibility Guidelines - About Steven Mouret
When a link has no text link, it is not read in the technical assistance or indicated as empty. A common error is...
Read more >
Link contain no text showing error in Wave accessibility ...
According to the WAVE tool the two <a> elements you provided both contain Empty Links which violate WCAG 2.0 Guideline 2.4.4 "Link Purpose ......
Read more >
Find and fix empty links | Webflow Accessibility Checklist
Empty links are links with no meaningful text or image alt text, like a social media icon inside a link block. This causes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found