0
不顯示我最近一直按照提供在其網站上django CMS教程,並解決一個或兩個棘手的問題後,我現在當前系統行爲難倒。頁面在Django CMS管理系統
在頁面管理界面的部分中,沒有任何頁面正在顯示。接口目前看起來是這樣的:http://imgur.com/3QguvNZ
即使單擊添加頁面按鈕,然後在所有必要的領域填補後,什麼也不顯示。下面的代碼顯示在網頁的HTML源代碼,我認爲可能是相關的頁面:
<li id="page_2" class=" moveable"" rel="topnode">
<div class="cont ">
<div class="col1">
<a href="2/" class="title" title="edit this page">None</a>
<a href="2/" class="changelink" title="edit this page">edit</a>
</div>
<div class="col2">
<span id="move-target-2" class="move-target-container" >
<a href="#" class="move-target last-child" title="insert inside">↘</a>
</span>
<div class="col-softroot"><span class="icon softroot-icon" title="home"></span></div>
<div class="col-language">
<a href="2/?language=en" title="Edit this page in EN ">en</a>
</div>
<div class="col-actions">
<a href="#" class="move" title="Cut" id="move-link-2"><span>cut</span></a>
<a href="#" class="copy" title="Copy" id="copy-link-2"><span>copy</span></a>
<a href="./add/?target=2&position=last-child" class="addlink" title="Add Child" id="add-link-2"><span>add</span></a>
<a href="2/delete/" title="Delete" class="deletelink"><span>delete</span></a>
</div>
<div class="col-navigation">
<label>
<img alt="False" src="/static/admin/img/icon-no.gif" />
<input type="checkbox" class="navigation-checkbox" name="navigation-2" value="0" />
</label>
</div>
<div class="col-published">
<label><img src="/static/admin/img/icon-yes.gif" alt="True" /></label>
<input type="checkbox" class="publish-checkbox" name="status-2" checked="checked" value="1" title="Unpublish"/>
<a href="./2/preview/?public=1" title="View on page" class="icon selector-add viewpage" id="view-page-2"><span>view</span></a>
</div>
<div class="col-published">2013-07-11</div>
<div class="col-view-perms"><span title="Restrictions: None"><img src="/static/admin/img/icon-unknown.gif" alt="None" /></span></div>
<div class="col-lastchange">
</div>
<div class="col-creator">systems</div>
</div>
</div>
</li>
正如你可以看到,各種按鈕,如「剪切」和「EN編輯本頁「包含在代碼中,但不顯示在頁面上。
爲了完整起見,這裏是從我的urls.py文件中的相關代碼:
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
url(r'^', include('cms.urls')),
我創建肯定是存儲在數據庫中的頁面,這個問題簡直就是他們的情況下,沒有被顯示。
id | created_by | changed_by | parent_id | creation_date | changed_date | publication_date | publication_end_date | in_navigation | soft_root | reverse_id | navigation_extenders | published | template | site_id | login_required | limit_visibility_in_menu | level | lft | rght | tree_id | publisher_is_draft | publisher_public_id | publisher_state
----+------------+------------+-----------+-------------------------------+-------------------------------+-------------------------------+----------------------+---------------+-----------+------------+----------------------+-----------+-----------------+---------+----------------+--------------------------+-------+-----+------+---------+--------------------+---------------------+-----------------
1 | systems | systems | | 2013-07-11 11:34:18.216835+01 | 2013-07-11 11:34:18.216866+01 | | | f | f | | | f | template_1.html | 1 | f | | 0 | 1 | 2 | 1 | t | | 1
3 | systems | systems | | 2013-07-11 11:42:45.476683+01 | 2013-07-11 11:42:45.47671+01 | 2013-07-11 11:42:19.135606+01 | | f | f | | | t | template_1.html | 1 | f | | 0 | 1 | 2 | 3 | f | 2 | 0
2 | systems | systems | | 2013-07-11 11:42:24.136515+01 | 2013-07-11 11:42:45.515485+01 | 2013-07-11 11:42:19.135606+01 | | f | f | | | t | template_1.html | 1 | f | | 0 | 1 | 2 | 2 | t | 3 | 0
(3 rows)
謝謝。請告訴我是否還有其他事情可以幫助您找到解決方案。
是否有任何JavaScript錯誤?你運行什麼版本? – ojii
哦,我沒有檢查控制檯!是的,jQuery無法找到,這是不理想的。在現在糾正這種情況的過程中,必須有路徑問題...... –
已解決。謝謝!將在六個小時內回答問題。 –