Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:18:52+00:00 2026-05-26T18:18:52+00:00

I am using Django in built comments for allowing users to comment on my

  • 0

I am using Django in built comments for allowing users to comment on my posts. I have also customized the app to do the following thing

  • Registered users will see just the text area for comments
  • Unregistered users will see the whole form

Although the whole thing is working fine, I do not understand how can I link the user comment to the user’s profile. I want to make the comment name clickable such that it takes you to the user’s profile who posted that comment.

However in case of unregistered users I just want to display the name as it. Where and how do I have to make the changes in the comments form, such that it links it with the current user.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:18:53+00:00Added an answer on May 26, 2026 at 6:18 pm

    Check this answer: How can I include user profile's images/logos on django comments

    comment.user or comment.user.get_profile, if you use AUTH_PROFILE_MODULE, should give you the user who posted the comment.

    Now you can fetch all the data you need:

    <a href="{{ comment.user.get_profile.get_absolute_url }}">
      {{ comment.user.get_profile.firstname }}
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im building a customized comments app for django, using django comments itself. Ive followed
I am using the built in comment system with Django but it has started
I'm using django's built-in contrib.auth module and have setup a foreign key relationship to
We have a web based application in production built using django. It is deployed
I am using Django 1.3 with built-in static app. My static folder structure is
I've been using the built-in Django comments system which has been working great. On
When using Django's built in comment package, where is the table created when the
I built an app using Django 1.3 and am now attempting to deploy to
I have built a site using Django and I am receiving this annoying error
I have a flash message in Django that is built using a standard char

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.