2012-12-11 4 views
1

여기에서 ckeditor 패키지를 사용하려고합니다 : https://github.com/shaunsephton/django-ckeditor. 지시를 따랐지만 ckeditor.js 파일을 포함 할 경로를 파악할 수 없습니다.django-ckeditor : ckeditor js 파일이 포함되어 있지 않음

내가 자바 스크립트 이것 때문에 오류 얻을 ckeditor 위젯/필드가있는 페이지로 이동 때마다 :

catch되지 않은 오류 ReferenceError을 : CKEDITOR 내가 실행 않았다

을 정의되지 않은 등 collectstatic ..

답변

1

정적 파일 제공을위한 docs을 다시 살펴보십시오.

당신이 개발하고 당신이 당신의 URL의 conf에 다음을 추가 할 수 있습니다 runserver를 사용하는 경우 -

from django.contrib.staticfiles.urls import staticfiles_urlpatterns 

# ... the rest of your URLconf goes here ... 

urlpatterns += staticfiles_urlpatterns() 

구체적으로 docs의이 섹션을 참조하십시오.

관련 문제