Polished base instalattion
This commit is contained in:
parent
43056e3327
commit
6aa2f5f626
|
@ -1,3 +1,9 @@
|
|||
# Base
|
||||
Django==1.6.2
|
||||
South==0.8.4
|
||||
|
||||
# Admin
|
||||
django-suit==0.2.6
|
||||
|
||||
# Fixes
|
||||
longerusername==0.4
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
{% extends "admin/base.html" %}
|
||||
{% load admin_static i18n %}
|
||||
|
||||
{# Additional <head> content here, some extra meta tags or favicon #}
|
||||
{#{% block extrahead %}#}
|
||||
{#{% endblock %}#}
|
||||
|
||||
|
||||
{# Additional CSS includes #}
|
||||
{% block extrastyle %}{% endblock %}
|
||||
|
||||
|
||||
{# Additional JS files in footer, right before </body> #}
|
||||
{#{% block extrajs %}#}
|
||||
{# <script type="text/javascript" src="{% static 'js/my_project.js' %}"></script>#}
|
||||
{#{% endblock %}#}
|
||||
|
||||
|
||||
{# Footer links (left side) #}
|
||||
{% block footer_links %}{% endblock %}
|
||||
|
||||
{# Additional header content like notifications or language switcher #}
|
||||
{# block header_content %}
|
||||
{{ block.super }}
|
||||
<div class="header-content">
|
||||
<!-- First icon column -->
|
||||
<div class="header-column icon">
|
||||
<i class="icon-home"></i><br>
|
||||
<i class="icon-cog"></i>
|
||||
</div>
|
||||
<div class="header-column" style="margin-right: 20px">
|
||||
<a href="/" class="grey">Front-end</a><br>
|
||||
<a href="" class="grey">One more link</a>
|
||||
</div>
|
||||
<!-- Second icon column -->
|
||||
<div class="header-column icon">
|
||||
<i class="icon-comment"></i>
|
||||
</div>
|
||||
<div class="header-column">
|
||||
<a href="" class="grey">5 new messages</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock #}
|
||||
|
||||
{# Footer branding name (center) #}
|
||||
{% block footer_branding %}ShelfZilla{% endblock %}
|
||||
|
||||
|
||||
{# Footer copyright (right side) #}
|
||||
{% block copyright %}{% endblock %}
|
Reference in New Issue