From: zuber Date: Mon, 5 Oct 2009 11:34:01 +0000 (+0200) Subject: Changed imports to absolute. X-Git-Tag: 22.4~32^2~18^2~1^2~11 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/730895aa3ce52318f816e4d9146595b96fdeeeb4?hp=291b7802a119997fe7816034374cd9fbb4bd4d46 Changed imports to absolute. --- 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']