Contests

18 views
Skip to first unread message

Jackson Gothe-Snape

unread,
Mar 25, 2013, 11:59:02 PM3/25/13
to miro-communit...@googlegroups.com
Hi there,

I'm working on a side project. It's a simple sport that incorporates mobile/GoPro video to allow players to record short snippets of action. Players upload their videos to YouTube, Vimeo etc, and I collect them for ease of viewing and development of a community at a single domain.

I'm currently running a MediaCore CE site but it's built on TurboGears 2/pylons and my knowledge doesn't extend much past Django - hence my interest in Miro Community.

I want to encourage players to upload videos of their victories, and tally these on a leaderboard. I also want to allow videos of great action that may not necessarily be the submitter's victories. I should be able to do this by adapting categories and moderating intelligently, and editing a view for a leaderboard without much trouble.

Then it gets more difficult. I want to create regular contest to determine the 'video of the week'.

I understand some work has been done, and is ongoing, for contests within Miro Community. The example at http://whyopenedmatters.org/ though doesn't show the voting mechanism (I assume that's because the contest has ended). Has any Miro Community contest work been released under AGPLv3?

Before I sink my teeth into the Github repo, I just want to make sure I'm not duplicating work that has already been carried out!

Looking forward to being part of the Miro Community... Community!

Regards,
Jackson

Stephen Burrows

unread,
Mar 26, 2013, 3:21:27 AM3/26/13
to miro-communit...@googlegroups.com
Hi, Jackson,

Yes, whyopenedmatters.org is no longer active, but the contest work behind it is all licensed under AGPLv3. The contest framework is not currently being worked on, but we would welcome any patches that are clear improvements. It would also probably be fairly easy to build a "contest of the week" without modifying the contest framework that already exists.

Best,
Stephen


--
You received this message because you are subscribed to the Google Groups "Miro Community Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-deve...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jackson Gothe-Snape

unread,
Mar 26, 2013, 7:32:34 AM3/26/13
to miro-communit...@googlegroups.com
Thanks Stephen.

Yes, since getting home and running Miro Community locally (and not from mirocommunity.org) I see the contests functionality exists.

Enjoying playing with it so far. Great work - even if I do feel a couple of years late to the party!

J
To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-development+unsub...@googlegroups.com.

Jackson Gothe-Snape

unread,
Apr 24, 2013, 9:56:17 AM4/24/13
to miro-communit...@googlegroups.com
I put MC aside for a few weeks until I had some more time.

In the last couple of days I have started tinkering with my own fork. I have hit an odd problem that I didn't seem to run into last time I was testing.

Here are the details:

It happens when I attempt to visit a contest page.

I have created a contest in the admin, added a couple of videos to it, but get this error when I click on the contest in the top right menu.

I have checked the code, including the 'through' ContestVideo model, but it all appears sound. 

Here is the Debugger:

FieldError at /contests/4/rfdg <<< this is the name of the contest

Cannot resolve keyword 'contestvideo' into field. Choices are: authors, calculated_source_type, categories, contact, contest, description, embed_code, feed, feedimportindex, file_url, file_url_length, file_url_mimetype, flash_enclosure_url, guid, id, last_featured, name, notes, playlistitem, playlists, search, searchimportindex, site, status, taggeditem_set, thumbnail, thumbnail_url, user, video_service_url, video_service_user, watch, website_url, when_approved, when_modified, when_published, when_submitted
Request Method:GET
Request URL:http://127.0.0.1:8000/contests/4/rfdg
Django Version:1.4.3
Exception Type:FieldError
Exception Value:
Cannot resolve keyword 'contestvideo' into field. Choices are: authors, calculated_source_type, categories, contact, contest, description, embed_code, feed, feedimportindex, file_url, file_url_length, file_url_mimetype, flash_enclosure_url, guid, id, last_featured, name, notes, playlistitem, playlists, search, searchimportindex, site, status, taggeditem_set, thumbnail, thumbnail_url, user, video_service_url, video_service_user, watch, website_url, when_approved, when_modified, when_published, when_submitted
Exception Location:/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/site-packages/django/db/models/sql/query.py in setup_joins, line 1316
Python Executable:/Users/jacksongs/.virtualenvs/hdballvenv/bin/python
Python Version:2.7.2
Python Path:
['/Users/jacksongs/Dropbox/Geek/mirocommunity/hdball',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg',
 '/Users/jacksongs/Dropbox/Geek/mirocommunity',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python27.zip',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/plat-darwin',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/plat-mac',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/jacksongs/.virtualenvs/hdballvenv/Extras/lib/python',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/lib-tk',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/lib-old',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/lib-dynload',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/site-packages',
 '/Users/jacksongs/.virtualenvs/hdballvenv/lib/python2.7/site-packages/PIL']
Server time:Wed, 24 Apr 2013 23:23:45 +1000

The problem seems to stem from the view not recognising the ContestVideo model/contestvideo field. It refers to line 40:

base_qs = Video.objects.filter(contestvideo__contest=self.object
                              ).filter(status=Video.ACTIVE)"

I'm running it locally, forked v1.9 from github, in a virtual environment built with the test MC project's requirements (plus South).

Any suggestions?

Thanks for your help - looking forward to contributing to the project.

Stephen Burrows

unread,
Apr 30, 2013, 8:12:39 AM4/30/13
to miro-communit...@googlegroups.com
Hi, Jackson,

The error that you're describing shows up when the view is accessed before localtv.contrib.contests.models is loaded. I'm not sure what exactly in your setup is causing this to happen. When you say you're running the code locally - you mean using runserver?

Could you try this out with the 1.10.X branch? We're no longer actively developing on 1.9.X.

--Stephen


To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-deve...@googlegroups.com.

Jackson Gothe-Snape

unread,
May 4, 2013, 4:34:54 AM5/4/13
to miro-communit...@googlegroups.com
Hi Stephen,

I've set up a new local install on 1.10.X, and yes using runserver. The same problem still happens.

The <class 'localtv.contrib.contests.models.ContestVideo'> is picked up when I run models.get_models() from shell (having imported the models: from django.db import models).

Now perhaps it's in the steps I've taken to clone my forked repo... I've had a local install working in the past as per the docs (https://mirocommunity.readthedocs.org/en/latest/installation.html) where the github repo is cloned into the virtual environment folder (and lives in src/). However, I've always worked with cloning into folders and just using the virtual environment to quarantine the dependencies. Hence I've tried to clone mirocommunity into a separate directory and just install the dependencies into the virtualenv from requirements.txt with pip. Perhaps that's causing the problems?

Other components of the site is working however.

Thanks for your ongoing help.

Jackson

To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-development+unsubsc...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jackson Gothe-Snape

unread,
May 5, 2013, 4:23:39 AM5/5/13
to miro-communit...@googlegroups.com
I've put a bit more time into this today.

I've abandoned trying to install with my preferred environment and am following the docs at https://mirocommunity.readthedocs.org/en/latest/installation.html.

As the docs stand, contests work awesomely with 1.9.1.

I went over the same instructions but with 1.10.X (I replaced pip install -e git+git://github.com/pculture/mirocomm...@1.9.1#egg=mirocommunity --no-deps with pip install -e git+git://github.com/pculture/mirocomm...@1.10.X#egg=mirocommunity --no-deps).

Syncdb worked, site loaded well running runserver, but creating a contest created the same FieldError when I went to the contest page: Cannot resolve keyword 'contestvideo' into field.

I'm happy to follow any suggestions about environments that work for you developing Miro Community.

Again, thanks for your help.

Jackson

Stephen Burrows

unread,
May 8, 2013, 11:54:45 PM5/8/13
to miro-communit...@googlegroups.com
Hi, Jackson,

This should be resolved by 52d49cc. Let me know if the latest 1.10.X works for you!

--Stephen


To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-deve...@googlegroups.com.

Jackson Gothe-Snape

unread,
May 11, 2013, 8:25:36 PM5/11/13
to miro-communit...@googlegroups.com
Hi Stephen,

Just wanted to say 1.10.X is working for me and I have it running on heroku & s3 without too many dramas.

Congrats on the 1.10 release.

Jackson

Stephen Burrows

unread,
May 17, 2013, 1:18:28 PM5/17/13
to miro-communit...@googlegroups.com
Glad to hear it's working for you! :-)


To unsubscribe from this group and stop receiving emails from it, send an email to miro-community-deve...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages