Giter Club home page Giter Club logo

p2pu / badges Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 10.0 4.49 MB

At P2PU, learning is guided by people, passion, and projects. We’ve created this Badge platform to spark feedback between Experts and Learners about their learning projects. A Badge is symbol of mastery that comes out of those conversations. Here you’ll find out how Badges work, and some resources to build your own.

Home Page: http://badges.p2pu.org/

Python 30.21% CSS 29.43% JavaScript 9.05% HTML 22.27% Sass 2.72% SCSS 6.32%

badges's People

Contributors

brylie avatar dirkcuys avatar ercchy avatar mkcode avatar mozzadrella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

badges's Issues

Document the config options

Could you add a break down of what these config options are for in settings_local?

OAUTH_GRANT_URL = 'http://host.org/oauth/authorize/'
OAUTH_TOKEN_URL = 'http://host.org/oauth/token/'
OAUTH_CLIENT_ID = ''
OAUTH_CLIENT_KEY = ''
OAUTH_CLIENT_SECRET = ''
OAUTH_ID_URL = 'http://host.org/oauth/whoami/'

LERNANTA_API_KEY = ''
NOTIFICATION_URL = 'https://host.org/notification/url/'

DEFAULT_FROM_ADDRESS = 'Admin'

OPEN_BADGES_PUBLIC_URL = 'http://localhost:8000'
OPEN_BADGES_ORGANISATION_NAME = 'P2PU Org.'
OPEN_BADGES_ORGANISATION_URL = 'https://www.p2pu.org'
OPEN_BADGES_HASH_EMAIL_SALT = 'alivesea'

Thanks!

Install issues - DB

Hi guys, on a clean install, I am having issues with migrations and loading test data.

After doing syncdb, I get the following message:

Not synced (use migrations):
 - badge
 - project
 - media
 - p2pu_user
(use ./manage.py migrate to migrate these)

After running migrations I get:

> badge:0006_adding_featured_badges
 - Migration 'badge:0006_adding_featured_badges' is marked for no-dry-run.
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had
 ! to leave it in an interim state between migrations.

[...]

in get
    return self.get_query_set().get(*args, **kwargs)
  File "/Users/jos/.venvs/badges/lib/python2.7/site-packages/django/db/models/query.py", line 366, in get
    % self.model._meta.object_name)
badge.models.DoesNotExist: Badge matching query does not exist.

Skipping migrations and going directly to load test data I get:

  File "/Users/jos/.venvs/badges/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 344, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.DatabaseError: no such table: p2pu_user_user

Finally, loading the app in the browser I get:

Request Method: GET
Request URL:    http://127.0.0.1:8000/en/
Django Version: 1.4.5
Exception Type: DatabaseError
Exception Value:    
no such table: badge_badge

There seems to be a problem with table names; will dig in a bit more, but not sure how much I can do. This is a new install, with a new virtualenv only used for this project, on mac osx 10.8.3 and python 2.7.2

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.