Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/t/statusboard-HEAD/statusboard/core/views.py   statusboard(Download)
 
from statusboard.core.models import Settings, GatherRequest
from statusboard.core.utils import hex_random, add_new_widget
from statusboard.plugins import load_plugins, plugin_registry
from statusboard.utils.json import JSONResponse
        # Key anonymous users off their session ID
        if 'name' not in request.session:
            request.session['name'] = hex_random(16)
        try:
            user = User.objects.get(username=request.session['name'])