diff --git a/accounts/templates/registration/login.html b/accounts/templates/registration/login.html
deleted file mode 100644
index 8566b0f..0000000
--- a/accounts/templates/registration/login.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{% extends 'base.html' %}
-
-{% load bootstrap3 i18n %}
-
-{% block logintab %} class="active"{% endblock %}
-
-{% block content %}
-
-
-
-
diff --git a/ponyconf/templates/ponyconf/home.html b/ponyconf/templates/ponyconf/home.html
new file mode 100644
index 0000000..cf50b1e
--- /dev/null
+++ b/ponyconf/templates/ponyconf/home.html
@@ -0,0 +1,11 @@
+{% extends 'base.html' %}
+
+{% load ponyconf_tags i18n %}
+
+{% block hometab %} class="active"{% endblock %}
+
+{% block content %}
+
+{% markdown site.conference.home %}
+
+{% endblock %}
diff --git a/ponyconf/templates/registration/login.html b/ponyconf/templates/registration/login.html
new file mode 100644
index 0000000..2293b3e
--- /dev/null
+++ b/ponyconf/templates/registration/login.html
@@ -0,0 +1,30 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 i18n %}
+
+{% block logintab %} class="active"{% endblock %}
+
+{% block content %}
+
+
+
+
+
+ {% bootstrap_form_errors form layout="horizontal" %}
+
+
+
+
+{% endblock %}
diff --git a/accounts/templates/registration/password_change_form.html b/ponyconf/templates/registration/password_change_form.html
similarity index 100%
rename from accounts/templates/registration/password_change_form.html
rename to ponyconf/templates/registration/password_change_form.html
diff --git a/ponyconf/templates/registration/password_reset_complete.html b/ponyconf/templates/registration/password_reset_complete.html
new file mode 100644
index 0000000..05382ba
--- /dev/null
+++ b/ponyconf/templates/registration/password_reset_complete.html
@@ -0,0 +1,7 @@
+{% extends 'registration/base.html' %}
+
+{% load bootstrap3 %}
+
+{% block content %}
+
Votre mot de passe a été réinitialisé, vous pouvez à présent vous connecter.
+{% endblock %}
diff --git a/ponyconf/templates/registration/password_reset_confirm.html b/ponyconf/templates/registration/password_reset_confirm.html
new file mode 100644
index 0000000..5502cc0
--- /dev/null
+++ b/ponyconf/templates/registration/password_reset_confirm.html
@@ -0,0 +1,22 @@
+{% extends 'registration/base.html' %}
+
+{% load bootstrap3 %}
+
+{% block content %}
+{% if validlink %}
+
+{% else %}
+
Ce lien de réinitialisation de mot de passe est invalide ou expiré.
+
+ Formulaire de réinitialisation du mot de passe
+ Login
+
+{% endif %}
+{% endblock %}
diff --git a/ponyconf/templates/registration/password_reset_done.html b/ponyconf/templates/registration/password_reset_done.html
new file mode 100644
index 0000000..b03086b
--- /dev/null
+++ b/ponyconf/templates/registration/password_reset_done.html
@@ -0,0 +1,9 @@
+{% extends 'registration/base.html' %}
+
+{% block content %}
+
+ Un e-mail contenant un lien vous permettant de réinitialiser votre mot de passe vous a été envoyé.
+ Si vous ne le recevez pas, celui-ci est peut-être arrivé dans votre dossier « spam ».
+
+
Se connecter
+{% endblock %}
diff --git a/ponyconf/templates/registration/password_reset_form.html b/ponyconf/templates/registration/password_reset_form.html
new file mode 100644
index 0000000..f292734
--- /dev/null
+++ b/ponyconf/templates/registration/password_reset_form.html
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+
+{% load bootstrap3 i18n %}
+
+{% block content %}
+
+
+
+
+
+
Pour réinitialiser votre mot de passe, veuillez saisir votre adresse e-email.
+
+
+
+
+{% endblock %}
diff --git a/ponyconf/templatetags/ponyconf_tags.py b/ponyconf/templatetags/ponyconf_tags.py
new file mode 100644
index 0000000..aaaf737
--- /dev/null
+++ b/ponyconf/templatetags/ponyconf_tags.py
@@ -0,0 +1,11 @@
+from django import template
+
+from ponyconf.utils import markdown_to_html
+
+
+register = template.Library()
+
+
+@register.simple_tag
+def markdown(value):
+ return markdown_to_html(value)
diff --git a/ponyconf/urls.py b/ponyconf/urls.py
index d23c1dd..bddb468 100644
--- a/ponyconf/urls.py
+++ b/ponyconf/urls.py
@@ -15,16 +15,20 @@ Including another URLconf
"""
from django.conf.urls import include, url
from django.contrib import admin
-from django.conf.urls.static import static
-from django.conf import settings
+#from django.conf.urls.static import static
+#from django.conf import settings
+
+from . import views
+
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('accounts.urls')),
+ url(r'^', views.home, name='home'),
url(r'^', include('cfp.urls')),
#url(r'', include('proposals.urls')),
#url(r'', include('planning.urls')),
#url(r'^volunteers/', include('volunteers.urls')),
#url(r'^conversations/', include('conversations.urls')),
#url(r'^select2/', include('django_select2.urls')),
-] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
+]# + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
diff --git a/ponyconf/utils.py b/ponyconf/utils.py
index 68a1fb1..09d7c73 100644
--- a/ponyconf/utils.py
+++ b/ponyconf/utils.py
@@ -2,6 +2,9 @@ from django.contrib.sites.shortcuts import get_current_site
from django.db import models
from django.utils.html import mark_safe
+from markdown import markdown
+import bleach
+
def enum_to_choices(enum):
return ((item.value, item.name.replace('_', ' ')) for item in list(enum))
@@ -20,3 +23,10 @@ class PonyConfModel(models.Model):
def get_link(self):
return mark_safe('
%s' % (self.get_absolute_url(), self))
+
+
+def markdown_to_html(md):
+ html = markdown(md)
+ allowed_tags = bleach.ALLOWED_TAGS + ['p', 'pre', 'span' ] + ['h%d' % i for i in range(1, 7) ]
+ html = bleach.clean(html, tags=allowed_tags)
+ return mark_safe(html)
diff --git a/ponyconf/views.py b/ponyconf/views.py
new file mode 100644
index 0000000..bd35f7a
--- /dev/null
+++ b/ponyconf/views.py
@@ -0,0 +1,5 @@
+from django.shortcuts import render
+
+
+def home(request):
+ return render(request, 'ponyconf/home.html')
diff --git a/requirements.txt b/requirements.txt
index be6a35b..7a35780 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,28 +1,11 @@
-#
-# This file is autogenerated by pip-compile
-# To update, run:
-#
-# pip-compile --output-file requirements.txt requirements.in
-#
--e git+git://github.com/Nim65s/django-YummyEmailOrUsernameInsensitiveAuth.git#egg=django-yeouia
-bleach==2.0.0
-chardet==3.0.4
-django-appconf==1.0.2 # via django-avatar, django-select2
-django-autoslug==1.9.3
-django-avatar==4.0.0
-django-bootstrap3==8.2.3
-django-bower==5.2.0
-django-colorful==1.2
-django-registration-redux==1.6
-django-select2==5.10.0
-django==1.11.3
-html5lib==0.999999999 # via bleach
-markdown==2.6.8
-olefile==0.44 # via pillow
-pillow==4.2.1 # via django-avatar
-pytz==2017.2 # via django
-six==1.10.0 # via bleach, django-bower, html5lib
-webencodings==0.5.1 # via html5lib
+django<1.12
-# The following packages are considered to be unsafe in a requirements file:
-# setuptools # via html5lib
+django-autoslug
+django-bootstrap3
+django-bower
+django-select2
+django-colorful
+
+markdown
+bleach
+chardet