diff --git a/librebudget/settings.py b/librebudget/settings.py index 4508935..0c13fd7 100644 --- a/librebudget/settings.py +++ b/librebudget/settings.py @@ -34,9 +34,11 @@ INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', + 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', - 'librebudget_core' + 'registration', + 'librebudget_core', ) MIDDLEWARE_CLASSES = ( @@ -54,6 +56,11 @@ ROOT_URLCONF = 'librebudget.urls' WSGI_APPLICATION = 'librebudget.wsgi.application' +# Site + +SITE_ID = 1 + + # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases @@ -82,3 +89,10 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.7/howto/static-files/ STATIC_URL = '/static/' + + +# Registration + +ACCOUNT_ACTIVATION_DAYS = 1 + +LOGIN_REDIRECT_URL = '/' diff --git a/librebudget/urls.py b/librebudget/urls.py index 1709735..6729a69 100644 --- a/librebudget/urls.py +++ b/librebudget/urls.py @@ -5,4 +5,5 @@ urlpatterns = patterns( '', url(r'', include('librebudget_core.urls')), url(r'^admin/', include(admin.site.urls)), + url(r'^accounts/', include('registration.urls')), ) diff --git a/librebudget_core/static/css/main.css b/librebudget_core/static/css/main.css new file mode 100644 index 0000000..dd8420c --- /dev/null +++ b/librebudget_core/static/css/main.css @@ -0,0 +1,8 @@ +body { + padding-top: 50px; + padding-bottom: 20px; +} + +nav + .container { + margin-top: 16px; +} diff --git a/librebudget_core/templates/base.html b/librebudget_core/templates/base.html new file mode 100644 index 0000000..d0226f5 --- /dev/null +++ b/librebudget_core/templates/base.html @@ -0,0 +1 @@ +{% extends 'librebudget_core/layout.html' %} diff --git a/librebudget_core/templates/librebudget_core/index.html b/librebudget_core/templates/librebudget_core/index.html index d9d3a3a..4721454 100644 --- a/librebudget_core/templates/librebudget_core/index.html +++ b/librebudget_core/templates/librebudget_core/index.html @@ -5,10 +5,6 @@