'googletools',
# 'telecaster',
'extra_views',
+ 'captcha',
)
TEMPLATE_CONTEXT_PROCESSORS = (
JQCHAT_DISPLAY_COUNT = 50
JQCHAT_DISPLAY_TIME = 48
-BOX_API_TOKEN = 'D2pBaN8YqjGIfS0tKrgnMP93'
\ No newline at end of file
+BOX_API_TOKEN = 'D2pBaN8YqjGIfS0tKrgnMP93'
+
+SOUTH_MIGRATION_MODULES = {
+ 'captcha': 'captcha.south_migrations',
+}
'django-jqchat',
'django-googletools',
'crocodoc',
+ 'django-registration',
'django-extra-views',
+ 'django-simple-captcha',
],
platforms=['OS Independent'],
license='CeCILL v2',
model = Student
exclude = ['options']
# inlines = [StudentPaymentInline]
+ search_fields = ['user__first_name', 'user__last_name', 'user__username',]
class ProfessorProfileInline(admin.StackedInline):
model = Professor
from registration.forms import RegistrationForm
from django.utils.translation import ugettext_lazy as _
from extra_views import CreateWithInlinesView, UpdateWithInlinesView, InlineFormSet
+from captcha.fields import CaptchaField
class ConferenceForm(ModelForm):
class UserForm(ModelForm):
# first_name = forms.CharField(_('First name'), required=True)
# last_name = forms.CharField(_('Last name'), required=True)
+ captcha = CaptchaField()
class Meta:
model = User
font-size: 1.2em;
}
+form.register {
+ width: 40%;
+ font-size: 1.1em;
+ float: center;
+ margin-top: 1em;
+ margin-bottom: 4em;
+ margin-left: 25%;
+ border: 0px dotted #888;
+ padding: 1em;
+ background-color: #FFF;
+ -moz-border-radius: 8px 0px 8px 8px;
+ -webkit-border-radius: 8px 0px 8px 8px;
+ border-radius: 8px 0px 8px 8px;
+}
+
+.register-error {
+ color: #BB0000;
+}
+
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
-<head>
-<title>{% block title %}{% endblock %}</title>
-<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{{ STATIC_URL }}admin/css/base.css{% endblock %}" />
-{% block extrastyle %}{% endblock %}
-<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{{ STATIC_URL }}admin/css/ie.css{% endblock %}" /><![endif]-->
-{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{{ STATIC_URL }}admin/css/rtl.css{% endblock %}" />{% endif %}
-<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{{ STATIC_URL }}admin/{% endfilter %}";</script>
-{% block extrahead %}{% endblock %}
-{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
-</head>
-{% load i18n %}
-
-<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
-
-<!-- Container -->
-<div id="container">
-
- {% if not is_popup %}
- {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %}
- {% endif %}
-
- {% if messages %}
- <ul class="messagelist">{% for message in messages %}
- <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
- {% endfor %}</ul>
- {% endif %}
-
- <!-- Content -->
- <div id="content" class="{% block coltype %}colM{% endblock %}">
- {% block pretitle %}{% endblock %}
- {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
- {% block content %}
- {% block object-tools %}{% endblock %}
- {{ content }}
- {% endblock %}
- {% block sidebar %}{% endblock %}
- <br class="clear" />
- </div>
- <!-- END Content -->
-
- {% block footer %}<div id="footer"></div>{% endblock %}
-</div>
-<!-- END Container -->
-
-</body>
-</html>
# EXAM
url(r'^', include('teleforma.exam.urls')),
- (r'^accounts/register0/$', RegistrationView.as_view(), {'form_class':CustomRegistrationForm}),
- (r'^accounts/register/$', UserAddView.as_view()),
+ # (r'^accounts/register0/$', RegistrationView.as_view(), {'form_class':CustomRegistrationForm}),
+ url(r'^accounts/register/$', UserAddView.as_view()),
+ url(r'^captcha/', include('captcha.urls')),
+
)