Skip to content

Commit

Permalink
Add url to the Libaries installation issues in the installation section.
Browse files Browse the repository at this point in the history
  • Loading branch information
dporru committed May 14, 2014
1 parent 69001a3 commit 42ea24a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions djangocms_installer/install/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,29 @@ def check_install(config_data):
im.thumbnail(size)
except IOError as e:
#errors.append(e.strerror)
errors.append("Pillow is not compiled with PNG support, see 'Libraries installation issues' documentation section.")
errors.append("Pillow is not compiled with PNG support, see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html.")
try:
im = Image.open(os.path.join(os.path.dirname(__file__), "../share/test_image.jpg"))
im.thumbnail(size)
except IOError as e:
#errors.append(e.strerror)
errors.append("Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section.")
errors.append("Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html")
except ImportError:
errors.append("Pillow is not installed check for installation errors and see 'Libraries installation issues' documentation section.")
errors.append("Pillow is not installed check for installation errors and see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html")

# PostgreSQL test
if config_data.db_driver == 'psycopg2' and not config_data.no_db_driver: # pragma: no cover
try:
import psycopg2
except ImportError:
errors.append("PostgreSQL driver is not installed, but you configured a PostgreSQL database, please check your installation and see 'Libraries installation issues' documentation section.")
errors.append("PostgreSQL driver is not installed, but you configured a PostgreSQL database, please check your installation and see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html")

# MySQL test
if config_data.db_driver == 'MySQL-python' and not config_data.no_db_driver: # pragma: no cover
try:
import MySQLdb
except ImportError:
errors.append("MySQL driver is not installed, but you configured a MySQL database, please check your installation and see 'Libraries installation issues' documentation section.")
errors.append("MySQL driver is not installed, but you configured a MySQL database, please check your installation and see 'Libraries installation issues' documentation section: http://djangocms-installer.readthedocs.org/en/latest/libraries.html")
if errors:
raise EnvironmentError("\n".join(errors))

Expand Down

0 comments on commit 42ea24a

Please sign in to comment.