Polished base instalattion
This commit is contained in:
parent
43056e3327
commit
6aa2f5f626
|
@ -1,3 +1,9 @@
|
||||||
|
# Base
|
||||||
Django==1.6.2
|
Django==1.6.2
|
||||||
South==0.8.4
|
South==0.8.4
|
||||||
|
|
||||||
|
# Admin
|
||||||
django-suit==0.2.6
|
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/
|
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# 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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
@ -30,17 +30,35 @@ ALLOWED_HOSTS = []
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
|
# Longer username to use the email!
|
||||||
|
'longerusername',
|
||||||
|
|
||||||
|
# Admin
|
||||||
'suit',
|
'suit',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
|
|
||||||
|
# Django
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
|
||||||
|
# DDBB
|
||||||
'south',
|
'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 = (
|
MIDDLEWARE_CLASSES = (
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
@ -50,6 +68,11 @@ MIDDLEWARE_CLASSES = (
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
TEMPLATE_DIRS = (
|
||||||
|
os.path.join(BASE_DIR, "themes", "_base"),
|
||||||
|
os.path.join(BASE_DIR, "themes", "bootflat"),
|
||||||
|
)
|
||||||
|
|
||||||
ROOT_URLCONF = 'shelfzilla.urls'
|
ROOT_URLCONF = 'shelfzilla.urls'
|
||||||
|
|
||||||
WSGI_APPLICATION = 'shelfzilla.wsgi.application'
|
WSGI_APPLICATION = 'shelfzilla.wsgi.application'
|
||||||
|
@ -68,9 +91,9 @@ DATABASES = {
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/1.6/topics/i18n/
|
# 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
|
USE_I18N = True
|
||||||
|
|
||||||
|
@ -83,3 +106,6 @@ USE_TZ = True
|
||||||
# https://docs.djangoproject.com/en/1.6/howto/static-files/
|
# https://docs.djangoproject.com/en/1.6/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
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