diff --git a/config/requirements.txt b/config/requirements.txt index 160789c..fda17a5 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -1,3 +1,9 @@ +# Base Django==1.6.2 South==0.8.4 + +# Admin django-suit==0.2.6 + +# Fixes +longerusername==0.4 diff --git a/shelfzilla/apps/__init__.py b/shelfzilla/apps/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/shelfzilla/settings/base.py b/shelfzilla/settings/base.py index 0d68ab7..c6aa2e9 100644 --- a/shelfzilla/settings/base.py +++ b/shelfzilla/settings/base.py @@ -17,7 +17,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'byceao!)=3(+ipvd+oh8t3zlhm3^ed-d3xh^#y=8xzz4%kfqv_' +SECRET_KEY = '0123456789' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -30,17 +30,35 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = ( + # Longer username to use the email! + 'longerusername', + + # Admin 'suit', 'django.contrib.admin', + + # Django 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + # DDBB 'south', ) +TEMPLATE_CONTEXT_PROCESSORS = ( + 'django.contrib.auth.context_processors.auth', + 'django.core.context_processors.debug', + 'django.core.context_processors.i18n', + 'django.core.context_processors.media', + 'django.core.context_processors.static', + 'django.core.context_processors.tz', + 'django.contrib.messages.context_processors.messages', + 'django.core.context_processors.request', +) + MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', @@ -50,6 +68,11 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) +TEMPLATE_DIRS = ( + os.path.join(BASE_DIR, "themes", "_base"), + os.path.join(BASE_DIR, "themes", "bootflat"), +) + ROOT_URLCONF = 'shelfzilla.urls' WSGI_APPLICATION = 'shelfzilla.wsgi.application' @@ -68,9 +91,9 @@ DATABASES = { # Internationalization # https://docs.djangoproject.com/en/1.6/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'es-es' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Europe/Madrid' USE_I18N = True @@ -83,3 +106,6 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.6/howto/static-files/ STATIC_URL = '/static/' + +# Max username length (longerusername) +MAX_USERNAME_LENGTH = 75 diff --git a/shelfzilla/themes/_base/admin/base_site.html b/shelfzilla/themes/_base/admin/base_site.html new file mode 100644 index 0000000..c4900a0 --- /dev/null +++ b/shelfzilla/themes/_base/admin/base_site.html @@ -0,0 +1,50 @@ +{% extends "admin/base.html" %} +{% load admin_static i18n %} + +{# Additional content here, some extra meta tags or favicon #} +{#{% block extrahead %}#} +{#{% endblock %}#} + + +{# Additional CSS includes #} +{% block extrastyle %}{% endblock %} + + +{# Additional JS files in footer, right before #} +{#{% block extrajs %}#} +{# #} +{#{% endblock %}#} + + +{# Footer links (left side) #} +{% block footer_links %}{% endblock %} + +{# Additional header content like notifications or language switcher #} +{# block header_content %} + {{ block.super }} +
+ +
+
+ +
+
+ Front-end
+ One more link +
+ +
+ +
+
+ 5 new messages +
+
+{% endblock #} + +{# Footer branding name (center) #} +{% block footer_branding %}ShelfZilla{% endblock %} + + +{# Footer copyright (right side) #} +{% block copyright %}{% endblock %}