dploeger / django-bootstrap3-images

Django model field and widget for storing, retrieving and displaying bootstrap3 glyphicon-images
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Field html rendering as text #1

Open prkstaff opened 10 years ago

prkstaff commented 10 years ago

Im using django 1.6.5, postgresql and getting this error ( see in the screenshot) screen shot 2014-09-09 at 4 15 25 pm screen shot 2014-09-09 at 4 14 49 pm

dploeger commented 10 years ago

I've created a test module. Could you please install this and test, if this isn't working, too?

https://drive.google.com/folderview?id=0BygOeAS4NYnleXVhMFJFQ0ZPcWM&usp=sharing

If it works, maybe you can check your code by referencing the demo code.

You have to create the following URL mapping for it and obviously add it to your INSTALLED_APPS-configuration:

url(r'^test/$', TestListView.as_view(), name="test_list"),
    url(
        r'^test/create',
        login_required(
            TestCreateView.as_view()
        ),
        name="test_create"),

Thanks!

prkstaff commented 10 years ago

Your example give me the same error: screen shot 2014-09-30 at 11 03 43 am

my pip freeze: Django==1.6.5 Pillow==2.5.3 argparse==1.2.1 distribute==0.6.24 django-bootstrap3==4.11.0 django-keyedcache==1.5.1 django-livesettings==1.4-14 django-resized==0.2.4 django-simple-captcha==0.4.2 django-widget-tweaks==1.3 psycopg2==2.5.3 six==1.7.3 wsgiref==0.1.2

prkstaff commented 10 years ago

It seems like that the aplication is trying to load some resorces without success:

"NetworkError: 404 NOT FOUND - http://0.0.0.0:8000/static//css/colorpicker.css" colorpicker.css "NetworkError: 404 NOT FOUND - http://0.0.0.0:8000/static/colorfield/js/colorpicker.js" colorpicker.js "NetworkError: 404 NOT FOUND - http://0.0.0.0:8000/static//css/colorpicker.css" colorpicker.css "NetworkError: 404 NOT FOUND - http://0.0.0.0:8000/static/colorfield/js/colorpicker.js"

dploeger commented 10 years ago

Hmm... Yes, I see them in the source code but on my site, they don't get loaded at all...

Could you please try to remove that class Media-statement?

I've upgrade my test site to Django 1.7, Django-bootstrap3 4.11.0 and everything works.