- Are you using a local web server?
- When you load a page with a tree, do static files load?
- Can you see successful requests for .js and .css files?
- When loading the default site http://127.0.0.1:8080/, can you see the Django logo?
- When you load a tree view, all you see is some kind of text, for example, βdisconnectβ?
I assume that static files are not served correctly.
This is not difficult to fix, it just needs a little problem.
Make sure your static files are installed correctly.
In settings.py file:
Make sure you set MEDIA_URL for something other than "media", as these conflicts with the default CMS Admin media Url. There is a note at the bottom of the documentation about this.
I created a folder in my site_media project and then set MEDIA_URL = '/ Site_media /'
Have you copied the contents of pythonpath \ site-packages \ django_cms \ cms \ media \ to your media directory?
In your urls.py do you configure static routes? This is not in the CMS documentation, as in the django dango part .
The following is what I have:
urlpatterns + = patterns
(r '^ site_media / (? P. *) $',
'django.views.static.serve',
{'document_root': 'D: / myproject / site_media'}),
HTH - feel free to ask questions.
source share