Question

I'm deploying my first Django app on a BlueHost shared server. It is a simple site powered by Django-CMS, and portions of it are working, however there are some deal-breaking quirks.

A main recurring one reads TypeError, a float is required. The exception location each time is .../python/lib/python2.7/site-packages/django/core/urlresolvers.py in _reverse_with_prefix, line 391. For example, I run into it when trying to load a page which includes {% cms_toolbar %} in the template, pressing "save and continue editing" when creating a page, or trying to delete a page through the admin interface.

I don't know if this is related, but nothing happens when I select a plugin from the "Available Plugins" drop-down while editing a page and press "Add Plugin".

Has anyone had any experience with this error, or have any ideas how to fix it?

Était-ce utile?

La solution

As I wondered, the problem was that I was accessing the site using my temporary link from BlueHost, which the function throwing the error could not handle.

When my clients finally pointed their domain name at the server this problem and a few others (CSS inconsistencies in the Django admin, trouble with .htaccess) disappeared. Everything is up now and working fine.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top