Changeset 2070
- Timestamp:
- 06/25/09 14:55:31 (8 months ago)
- Location:
- branches/0.9/pylucid_project
- Files:
-
- 10 added
- 4 modified
-
apps/pylucid/templates/admin/base_site.html (modified) (2 diffs)
-
apps/pylucid_admin (added)
-
apps/pylucid_admin/templates (added)
-
apps/pylucid_admin/templates/pylucid_admin (added)
-
apps/pylucid_admin/templates/pylucid_admin/menu.html (added)
-
apps/pylucid_admin/urls.py (added)
-
apps/pylucid_admin/views.py (added)
-
apps/pylucid_admin/__init__.py (added)
-
media/PyLucid/superfish/superfish-vertical.css (added)
-
pylucid_plugins/extrahead/admin_url.py (added)
-
pylucid_plugins/extrahead/admin_views.py (added)
-
pylucid_plugins/__init__.py (modified) (2 diffs)
-
settings.py (modified) (6 diffs)
-
urls.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/apps/pylucid/templates/admin/base_site.html
r2058 r2070 67 67 <ul class="sf-menu"> 68 68 <li class="current"> 69 <a href="/" ><< back to "/" root page</a>69 <a href="/" title="<< goto {{ current_site.name }} root page"><< {{ current_site.domain }}</a> 70 70 </li> 71 71 {% if not sites|length_is:"1" %} … … 88 88 {% endif %} 89 89 <li> 90 <a href=" #TODO">{% trans 'admin menu' %}</a>90 <a href="{% url admin_index %}">{% trans 'Django admin site' %}</a> 91 91 </li> 92 92 {% if user.is_superuser %} 93 93 <li> 94 <a href="{% url PyLucidUpdate-menu %}">{% trans 'update section' %}</a> 94 <a href="{% url PyLucidAdmin-menu %}">{% trans 'PyLucid admin menu' %}</a> 95 <ul> 96 <li> 97 <a href="{% url PyLucidUpdate-menu %}">{% trans 'update section' %}</a> 98 </li> 99 </ul> 95 100 </li> 96 101 {% endif %} -
branches/0.9/pylucid_project/pylucid_plugins/__init__.py
r1890 r2070 11 11 """ 12 12 _CACHE = None 13 13 14 14 def __init__(self, fs_path, pkg_prefix): 15 15 installed_apps = () … … 21 21 if not os.path.isdir(item_path): 22 22 continue 23 23 24 24 pkg_string = ".".join([pkg_prefix, dir_item]) 25 25 installed_apps += (pkg_string,) 26 26 27 27 template_path = os.path.join(item_path, "templates") 28 28 if os.path.isdir(template_path): 29 29 template_dirs += (template_path,) 30 30 31 # admin_url_file = os.path.join(item_path, "admin_url.py") 32 # if os.path.isfile(admin_url_file): 33 # admin_urls.append(pkg_string + ".admin_url") 34 31 35 self._CACHE = { 32 36 "installed_apps": installed_apps, 33 37 "template_dirs": template_dirs, 34 38 } 35 39 36 40 def get_installed_apps(self): 37 41 return self._CACHE["installed_apps"] 38 42 def get_template_dirs(self): 39 return self._CACHE["template_dirs"] 43 return self._CACHE["template_dirs"] -
branches/0.9/pylucid_project/settings.py
r2043 r2070 70 70 SITE_ID = 1 71 71 72 print "Used port is %s -> set SITE_ID: %s" % (_used_port, SITE_ID) 72 print "Used port is %s -> set SITE_ID: %s" % (_used_port, SITE_ID) 73 73 74 74 … … 79 79 # From http://code.google.com/p/django-tools/ 80 80 'django_tools.middlewares.ThreadLocal.ThreadLocalMiddleware', 81 81 82 82 'django.contrib.sessions.middleware.SessionMiddleware', 83 83 'django.middleware.locale.LocaleMiddleware', 84 84 'django.middleware.common.CommonMiddleware', 85 85 'django.contrib.auth.middleware.AuthenticationMiddleware', 86 86 87 87 'pylucid_project.middlewares.PageMessages.PageMessagesMiddleware', 88 88 89 89 # slow down the django developer server 90 90 # From http://code.google.com/p/django-tools/ … … 96 96 97 97 _plugins = pylucid_plugins.PluginList( 98 fs_path =os.path.join(_BASE_PATH, "pylucid_plugins"),99 pkg_prefix ="pylucid_project.pylucid_plugins"98 fs_path=os.path.join(_BASE_PATH, "pylucid_plugins"), 99 pkg_prefix="pylucid_project.pylucid_plugins" 100 100 ) 101 101 102 102 TEMPLATE_DIRS = ( 103 103 os.path.join(_BASE_PATH, "apps/pylucid/templates/"), 104 os.path.join(_BASE_PATH, "apps/pylucid_admin/templates/"), 104 105 os.path.join(_BASE_PATH, "apps/pylucid_update/templates/"), 105 106 106 107 os.path.join(_BASE_PATH, "apps/dbpreferences/templates/"), 107 108 … … 140 141 # from django_tools.template import warn_invalid_template_vars 141 142 # warn_invalid_template_vars.add_warning() 142 143 143 144 144 145 … … 165 166 #http://docs.djangoproject.com/en/dev/ref/settings/#setting-TEST_RUNNER 166 167 #Default: 'django.test.simple.run_tests' 167 TEST_RUNNER ='pylucid_project.tests.test_tools.test_runner.run_tests'168 TEST_RUNNER = 'pylucid_project.tests.test_tools.test_runner.run_tests' 168 169 169 170 #_____________________________________________________________________________ … … 220 221 # TODO: must be used ;) 221 222 SLUG_BLACKLIST = ( 222 MEDIA_URL.strip("/").split("/", 1)[0],223 MEDIA_URL.strip("/").split("/", 1)[0], 223 224 ADMIN_URL_PREFIX, PYLUCID.HEAD_FILES_URL_PREFIX, 224 225 ) -
branches/0.9/pylucid_project/urls.py
r2020 r2070 28 28 #_____________________________________ 29 29 # PYLUCID UPDATE SECTION 30 ('^%s/update/'% settings.ADMIN_URL_PREFIX, include('pylucid_update.urls')), 31 30 ('^%s/update/' % settings.ADMIN_URL_PREFIX, include('pylucid_update.urls')), 31 32 #_____________________________________ 33 # PYLUCID ADMIN 34 (r'^%s/' % settings.ADMIN_URL_PREFIX, include('pylucid_admin.urls')), 35 32 36 #_____________________________________ 33 37 # DJANGO ADMIN PANEL