p2pu / lernanta Goto Github PK
View Code? Open in Web Editor NEWThis project forked from theinterned/batucada
Platform for running open online courses.
Home Page: https://courses.p2pu.org
License: Other
This project forked from theinterned/batucada
Platform for running open online courses.
Home Page: https://courses.p2pu.org
License: Other
When responding via email newlines doesn't show up when viewing the comment. See what ck editor does for replies submitted on the site and do the same for replies received via email.
Please ignore. I am testing a number of issues/task trackers for use at P2PU.
Though django-nose is one of the dev requirements, no instructions are provided in order to run the tests.
When I try to run Lernata via 'python manage.py runserver' I get the following error:
File "manage.py", line 16, in
import settings
File "/home/brylie/dev/python/lernanta/settings.py", line 6, in
import djcelery
ImportError: No module named djcelery
If one hovers over the menu that has the user tools (Dashboard etc.) before the page completes loading, then it seems to get stuck - I can't describe it so well (where can I put a screenshot?). I have only tested this in Firefox 13.
It will be very nice to be able to sign in to P2PU with BrowserID.
I just noticed, in Firebug, that on course pages there is a GET request for every generic member photo (gray silhouetted figure). This is slowing down my page loads and hampering usability on the client side.
The other images seem to cache successfully between page loads.
Would it be possible/difficult to generate a single image out of the member images for the course and then use CSS sprites to render the participants block? This would decrease the number of GET requests, on large courses and probably site wide, drastically.
Tasks (content.models.Page) associated with a course aren't guaranteed to have contiguous indexes after deleting tasks. This breaks task reordering
The current implementation of reply by email will send the user's email address as identifying the user. This isn't a problem currently, but in the future may expose user emails to external components using the notifications module.
Rather that using the email address, the username should be used!
In order to provide standards based authentication to the P2PU API, we'll need to implement support for OAuth 2.0. I've started a first cut of this with bd269c9. To test out what is currently there:
from django.contrib.auth.models import User
from oauth2app.models import Client
user = User.objects.get(...) # get some user
client = Client.objects.create(name='Sample App', user=user, redirect_uri='http://localhost:3000')
# print client credentials
print client.key
print client.secret
http://localhost:8000/oauth/authorize?client_id=<from_above>&redirect_uri=http://localhost:3000/callback&response_type=code
curl -X POST http://localhost:3000/oauth/token -d'client_id=from_above' -d'client_secret=from_above' -d'code=from_above' -d'redirect_uri=http://localhost:3000/callback' -d'grant_type=authorization_code'
If successful, the response should be a JSON object with information about the access token.
curl "http://localhost:3000/oauth/test?bearer_token=from_above"
Recommended steps to complete this issue:
Change the preflang field in RegisterForm to use a ChoiceField rather than a CharField. Make sure to set the initial value to the current locale (eg. if the user is browsing /en/register/ the initial value should be english)
See https://github.com/p2pu/lernanta/blob/master/lernanta/apps/users/forms.py#L124
Add a route to urls.py to serve files under /static/ when developing on your local machine and using 'manage.py runserver'
See (https://github.com/p2pu/lernanta/blob/master/lernanta/urls.py#L31) for how it's done for files served at /media/
Tags that displays in the sidebar when you navigate to /groups/ doesn't display the correct counts. This happens because the counts include courses that are still under construction.
See projects.views.learn, the learn template and included templates like this one
Currently dates on the site are displayed according to the timezone django is configured for. This should be changed so that dates displays according to the timezone of the user browsing the site
See badges.models.Submission.send_notification (https://github.com/p2pu/lernanta/blob/master/lernanta/apps/badges/models.py#L307).
Short term fix is to check permissions there, long term fix is to implement generic permissions for notifications
The current celery task that updates the pageview metrics takes to long to execute. This tasks should be modified to create a new tasks for every course.
See https://github.com/p2pu/lernanta/blob/master/lernanta/apps/tracker/tasks.py
The current reCaptcha field loads from an insecure URL causing it to not show up on some browsers. This should be fixed so that the reCaptcha loads via https
What could be missing here? djcelery can't be found, yet pip says it is already installed:
[bnesbitt@web309 myaskbot2]$ python settings.py
Traceback (most recent call last):
File "settings.py", line 221, in <module>
import djcelery
ImportError: No module named djcelery
[bnesbitt@web309 myaskbot2]$ python
>>> import djcelery
ImportError: No module named djcelery
>>> import django-celery
File "<stdin>", line 1
import django-celery
^
SyntaxError: invalid syntax
>>>
[bnesbitt@web309 myaskbot2]$ pip install django-celery
Requirement already satisfied (use --upgrade to upgrade): django-celery in /home/bnesbitt/lib/python2.7/django_celery-2.2.7-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): django-picklefield in /home/bnesbitt/lib/python2.7/django_picklefield-0.1.9-py2.7.egg (from django-celery)
Requirement already satisfied (use --upgrade to upgrade): celery==2.2.7 in /home/bnesbitt/lib/python2.7/celery-2.2.7-py2.7.egg (from django-celery)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=1.5.0,<2.0.0 in /home/bnesbitt/lib/python2.7/python_dateutil-1.5-py2.7.egg (from celery==2.2.7->django-celery)
Requirement already satisfied (use --upgrade to upgrade): anyjson>=0.3.1 in /home/bnesbitt/lib/python2.7/anyjson-0.3.1-py2.7.egg (from celery==2.2.7->django-celery)
Requirement already satisfied (use --upgrade to upgrade): kombu>=1.1.2,<2.0.0 in /home/bnesbitt/lib/python2.7/kombu-1.5.1-py2.7.egg (from celery==2.2.7->django-celery)
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.0,<2.0.0 in /home/bnesbitt/lib/python2.7/pyparsing-1.5.6-py2.7.egg (from celery==2.2.7->django-celery)
Requirement already satisfied (use --upgrade to upgrade): amqplib>=1.0 in /home/bnesbitt/lib/python2.7/amqplib-1.0.2-py2.7.egg (from kombu>=1.1.2,<2.0.0->celery==2.2.7->django-celery)
Cleaning up...
[bnesbitt@web309 myaskbot2]$ yolk --list
DecoratorTools - 1.7 - active
MySQL-python - 1.2.2 - active
setuptools - 0.6c9 - active
yolk - 0.4.1 - active development (/home/bnesbitt/lib/python2.4/yolk-0.4.1-py2.4.egg)
''''
When a user replies to a comment, the username should be used in the from address. Ex. if john replied on a message, the from address should be set as "john [email protected]"
This will require that the module sending the notification needs to include the user that causes the notification. This may require some consideration to avoid complicating the notification interface unnecessarily.
See https://github.com/p2pu/lernanta/blob/master/lernanta/apps/notifications/tasks.py#L23
Hi @dirkcuys, I am trying to install Lernanta without Chef and Vagrant but...
When I try to execute the app
python manage.py whatever
I get:
Error: cannot import name setup
sjkdh coiad
When generating a slug from فسfسل the slug is just empty. We need to generate something?
Allow for a simple setting of "Don't send me notifications when ...", without needing to set it for each new course.
I'm trying to get involved in a course, but I can't answer any of the questions on this form https://p2pu.org/en/groups/learn-php/sign-up/answer/ because none the the input fields are present. I'll upload a screenshot, I'm using FF 20.
Update jquery to version 1.8. Also ensure that other plugins (like jquery.ui) works with new version and update them if possible. JQuery is included in the base template
When a user is not logged in, only the participate button is showing up. When the user is logged in, both the follow and participate buttons shows up.
Both buttons should show up whether or not the user is logged in. Verify that the redirects work when a user that is not logged in presses the "Follow" button, both for login and after login (this may be the reason why it doesn't show up currently?)
Users that completed a challenge should be removed from the "Peers who have completed this challenge" list on the challenge front page.
See https://p2pu.org/en/groups/1-use-data-to-show-how-your-country-is-unique/ for an example where this is happening
There is a bunch of code in the projects view that applies conditions depending on fields supposedly coming from the filter form, but they don't seem to exist. One of them filters out everything that is not a Challenge.
Dirk, feel free to assign it to me (I can't assign it myself).
Use minified JavaScript for the production server, but still use the separate normal JavaScript for development.
See https://p2pu.org/en/groups/the-world-of-open-badges/content/welcome-to-open-badges-101/
Embedded resources should also be loaded using https
I applied for a badge in a course I have offered my help for (https://p2pu.org/en/groups/encrypt-and-sign-your-email/), and a few minutes later I received an email notification that someone wants a badge. I don't think this is intended behavior.
This is a test. Sorry for the email you're all about to receive.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.