# HG changeset patch # User Jordi GutiĆ©rrez Hermoso # Date 1277693817 18000 # Node ID d9658d30b8144a5e060bc40ead5ce3e8746997a4 # Parent 37ced16ff95e7d82dc91522ae0df51985587e037 Implement initial user registration and authentication. Still way buggy. diff -r 37ced16ff95e -r d9658d30b814 apps/bundle/urls.py --- a/apps/bundle/urls.py Sun Jun 27 16:21:58 2010 +0200 +++ b/apps/bundle/urls.py Sun Jun 27 21:56:57 2010 -0500 @@ -2,7 +2,5 @@ urlpatterns = patterns('agora.apps.bundle.views', (r'^(?P.*)/(?P.*)/$', 'detail'), - (r'^(?P.*)/$', 'index'), - ) diff -r 37ced16ff95e -r d9658d30b814 settings-example.py --- a/settings-example.py Sun Jun 27 16:21:58 2010 +0200 +++ b/settings-example.py Sun Jun 27 21:56:57 2010 -0500 @@ -93,6 +93,9 @@ "templates", #Relative paths are ok for testing ) +#For how long a registration link will remain active +ACCOUNT_ACTIVATION_DAYS = 1 + INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', @@ -102,6 +105,9 @@ 'django.contrib.admindocs', 'django.contrib.admin', + #Third-party apps + 'registration', + #Agora-specific apps 'agora.apps.snippet', 'agora.apps.bundle', diff -r 37ced16ff95e -r d9658d30b814 templates/base.djhtml --- a/templates/base.djhtml Sun Jun 27 16:21:58 2010 +0200 +++ b/templates/base.djhtml Sun Jun 27 21:56:57 2010 -0500 @@ -5,7 +5,11 @@ - Agora Octave — {% block title %}Free your math!{% endblock %} + Agora Octave — + {% block title %} + Free your math! + {% endblock %} + - {% block extrahead %}{% endblock %} + {% block extrahead %}{% endblock %}