first itteration

This commit is contained in:
bootandy 2013-07-06 15:18:01 +02:00
parent f61c6648ea
commit 1ef08cc20f
19 changed files with 22 additions and 22 deletions

View file

@ -79,9 +79,9 @@ Add djadmin2 urls to your URLconf:
# urls.py
from django.conf.urls import patterns, include
import djadmin2
djadmin2.default.autodiscover()
@ -126,16 +126,16 @@ The default theme is whatever bootstrap is most current. Specifically:
.. code-block:: python
# settings.py
ADMIN2_THEME_DIRECTORY = "admin2/bootstrap/"
ADMIN2_THEME_DIRECTORY = "djadmin2/bootstrap/"
If you create a new theme, you define it thus:
.. code-block:: python
# settings.py
ADMIN2_THEME_DIRECTORY = "admin2/foundation/"
ADMIN2_THEME_DIRECTORY = "djadmin2/foundation/"
History
=========
@ -144,7 +144,7 @@ History
* Implemented both Function- and Class-based Action views
* Implemented ModelAdmin2.list_display
* Implemented ModelAdmin2.fieldsets
* Implemented ModelAdmin2.fieldsets
* Dropdown widget now displays the selected choice
* Added support for callables in ModelAdmin2.list_display
* Added screenshots to README

View file

@ -6,4 +6,4 @@ MODEL_ADMIN_ATTRS = (
'index_view', 'detail_view', 'create_view', 'update_view', 'delete_view',
'get_default_view_kwargs', 'get_list_actions')
ADMIN2_THEME_DIRECTORY = getattr(settings, "ADMIN2_THEME_DIRECTORY", "admin2/bootstrap")
ADMIN2_THEME_DIRECTORY = getattr(settings, "ADMIN2_THEME_DIRECTORY", "djadmin2/bootstrap")

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block title %}{% trans "Are you sure?" %}{% endblock title %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block breadcrumbs %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load i18n %}
{% load admin2_tags %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load i18n %}
{% load admin2_tags %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load i18n %}
{% load admin2_tags %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load i18n %}
{% load admin2_tags %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block content %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block title %}{% trans "Are you sure?" %}{% endblock title %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block title %}{% blocktrans with model_name=model_name %}Select {{ model_name }} to change{% endblocktrans %}{% endblock title %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% load admin2_tags i18n %}
{% block title %}Are you sure?{% endblock title %}

View file

@ -162,7 +162,7 @@ LOGGING = {
}
ADMIN2_THEME_DIRECTORY = "admin2/bootstrap/"
ADMIN2_THEME_DIRECTORY = "djadmin2/bootstrap/"
########## TOOLBAR CONFIGURATION

View file

@ -163,7 +163,7 @@ LOGGING = {
}
ADMIN2_THEME_DIRECTORY = "admin2/bootstrap/"
ADMIN2_THEME_DIRECTORY = "djadmin2/bootstrap/"
########## TOOLBAR CONFIGURATION
# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation

View file

@ -1,4 +1,4 @@
{% extends "admin2/bootstrap/base.html" %}
{% extends "djadmin2/bootstrap/base.html" %}
{% block content %}
<h1>Example Home</h1>