From 730895aa3ce52318f816e4d9146595b96fdeeeb4 Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 5 Oct 2009 13:34:01 +0200 Subject: [PATCH 1/1] Changed imports to absolute. --- cas_provider/admin.py | 2 +- cas_provider/forms.py | 2 +- cas_provider/urls.py | 2 +- cas_provider/utils.py | 2 +- cas_provider/views.py | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cas_provider/admin.py b/cas_provider/admin.py index 5091f8e..5934487 100644 --- a/cas_provider/admin.py +++ b/cas_provider/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from models import ServiceTicket, LoginTicket +from cas_provider.models import ServiceTicket, LoginTicket class ServiceTicketAdmin(admin.ModelAdmin): pass diff --git a/cas_provider/forms.py b/cas_provider/forms.py index f270c37..ba77b62 100644 --- a/cas_provider/forms.py +++ b/cas_provider/forms.py @@ -2,7 +2,7 @@ from django import forms from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import authenticate -from utils import create_login_ticket +from cas_provider.utils import create_login_ticket class LoginForm(forms.Form): username = forms.CharField(max_length=30) diff --git a/cas_provider/urls.py b/cas_provider/urls.py index 4fad62c..2bdbe79 100644 --- a/cas_provider/urls.py +++ b/cas_provider/urls.py @@ -1,6 +1,6 @@ from django.conf.urls.defaults import * -from views import * +from cas_provider.views import * urlpatterns = patterns('', url(r'^login/$', login), diff --git a/cas_provider/utils.py b/cas_provider/utils.py index 04a5c12..68b791c 100644 --- a/cas_provider/utils.py +++ b/cas_provider/utils.py @@ -1,7 +1,7 @@ from random import Random import string -from models import ServiceTicket, LoginTicket +from cas_provider.models import ServiceTicket, LoginTicket def _generate_string(length=8, chars=string.ascii_letters + string.digits): """ Generates a random string of the requested length. Used for creation of tickets. """ diff --git a/cas_provider/views.py b/cas_provider/views.py index c898b78..cdd5d7b 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -5,9 +5,9 @@ from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login, logout as auth_logout -from forms import LoginForm -from models import ServiceTicket, LoginTicket -from utils import create_service_ticket +from cas_provider.forms import LoginForm +from cas_provider.models import ServiceTicket, LoginTicket +from cas_provider.utils import create_service_ticket __all__ = ['login', 'validate', 'service_validate', 'logout'] -- 2.20.1