Did I find the right examples for you? yes no

All Samples(6)  |  Call(1)  |  Derive(0)  |  Import(5)

src/d/j/django-cas-provider-HEAD/cas_provider/utils.py   django-cas-provider(Download)
from random import Random
import string
 
from models import ServiceTicket, LoginTicket
 
def create_login_ticket():
    """ Creates a new login ticket for the login form. Uses _generate_string. """
    ticket_string = 'LT-' + _generate_string(29)
    ticket = LoginTicket(ticket=ticket_string)
    ticket.save()

src/d/j/django-cas-provider-HEAD/cas_provider/views.py   django-cas-provider(Download)
 
from forms import LoginForm
from models import ServiceTicket, LoginTicket
from utils import create_service_ticket
 

src/d/j/django-cas-provider-HEAD/cas_provider/admin.py   django-cas-provider(Download)
from django.contrib import admin
 
from models import ServiceTicket, LoginTicket
 
class ServiceTicketAdmin(admin.ModelAdmin):

src/d/j/django-cas-provider-0.3.1/cas_provider/views.py   django-cas-provider(Download)
from cas_provider.models import ProxyGrantingTicket, ProxyTicket
from forms import LoginForm
from models import ServiceTicket, LoginTicket
 
 

src/d/j/django-cas-provider-0.3.1/cas_provider/forms.py   django-cas-provider(Download)
from django.forms import ValidationError
from django.utils.translation import ugettext_lazy as _
from models import LoginTicket
import datetime