Missed existing files with patch...
This commit is contained in:
Родитель
e947d07661
Коммит
c510c21f11
|
@ -5,6 +5,14 @@ Login
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if messages %}
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<form action="{{ url('cas_login') }}" method="post">
|
||||
<fieldset>
|
||||
<legend>Log in to your account</legend>
|
||||
|
|
|
@ -135,6 +135,7 @@ INSTALLED_APPS = (
|
|||
|
||||
'cas_provider',
|
||||
|
||||
'registration',
|
||||
'sso',
|
||||
'users',
|
||||
)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<ul>
|
||||
{% if not user.is_authenticated() %}
|
||||
<li><a href="{{ url('cas_login') }}">Log in</a></li>
|
||||
<li><a href="#">Register a new account</a></li>
|
||||
<li><a href="{{ url('sso_register') }}">Register a new account</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ url('users.profile') }}">My User Profile</a></li>
|
||||
<li><a href="{{ url('cas_logout') }}">Log out</a></li>
|
||||
|
|
3
urls.py
3
urls.py
|
@ -2,12 +2,11 @@ from django.conf import settings
|
|||
from django.conf.urls.defaults import *
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = patterns('',
|
||||
('', include('sso.urls')),
|
||||
|
||||
(r'^users/register', include('registration.urls')),
|
||||
(r'^users/', include('cas_provider.urls')),
|
||||
(r'^profile/', include('users.urls')),
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче