mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-29 12:30:29 +00:00
Added a home for example2.
This commit is contained in:
parent
b1c7089556
commit
6d12d7d8e6
2 changed files with 12 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from django.conf.urls import patterns, include, url
|
||||
from django.contrib import admin
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
admin.autodiscover()
|
||||
|
||||
|
|
@ -10,4 +11,5 @@ djadmin2.default.autodiscover()
|
|||
urlpatterns = patterns('',
|
||||
url(r'^admin2/', include(djadmin2.default.urls)),
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
url(r'^$', TemplateView.as_view(template_name="home.html")),
|
||||
)
|
||||
|
|
|
|||
10
example2/polls/templates/home.html
Normal file
10
example2/polls/templates/home.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{% extends "admin2/bootstrap/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Example Home</h1>
|
||||
|
||||
<ul>
|
||||
<li><a href="/admin2/">django-admin2</a></li>
|
||||
<li><a href="/admin/">django.contrib.admin</a> (for reference)</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Loading…
Reference in a new issue