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 8215095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:40:24+00:00 2026-06-07T11:40:24+00:00

I am trying to build something very similar to like this using django activity

  • 0

I am trying to build something very similar to like this using django activity stream and honestly facing lots of difficulty to implement it. Also, not getting much reference documentation other than this but finding very difficult to understand.

Suppose User A belongs to Team 1. As soon as User A saved values to model, how should I broadcast this news to all members of Team 1 (except User A) and Team 2 using django activity stream.
Soemthing like ‘User A from Team 1 has challenged Team 2. The subject is “subject” on date “date_of_test” with total questions “total_questions”.

UPDATE:

It seems somewhere I am missing the line. I have created different sample model to test it but its not working.

models.py

from django.db import models
from django.db.models.signals import post_save
from actstream import action


class Name(models.Model):
    name = models.CharField(max_length=200)

def my_handler(sender, instance, created, **kwargs):
    action.send(instance, verb='was saved')

post_save.connect(my_handler, sender=Name)

urls.py

from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template


urlpatterns = patterns('',
    ('^activity/', include('actstream.urls')),
    (r'^$', direct_to_template, {'template':'base.html'}),
)

Now I want to display the action on template as soon as data gets saved.

base.html

{% load activity_tags %}
<html>
<body>
Hi Sunil
{% display_action action %}
</body>
</html>

But its giving error ‘str’ object has no attribute ‘verb’. I think the problem is with base.html.

Thank you very much for your time,

Sunil

  • 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-06-07T11:40:26+00:00Added an answer on June 7, 2026 at 11:40 am

    My mistake..was thinking django-activity stream has Comet kind of behavior to fetch data. Closing this question after reading this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build something similar to Facebook's privacy selection menu, except without the
I am trying to build something like an email client. In the list of
I've been whacking on this regex for a while, trying to build something that
I've been trying to build this small java app. I find it very difficult
I'd like to create something similar to the shirt-designer feature found on this site:
I am trying to build a dynamic Property Accessor. Want something which is like
I'm trying to find the best components I could use to build something similar
I'm trying to do something very simple. All I want to do at this
I'm trying to build something akin to Facebook's Share functionality for my website. I've
I'm trying to build something on javascript that I can have an input that

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.