-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Installing django-redshift using pip install django-redshift
puts a directory in site-packages named "django-redshift". To import it, one would use import django-redshift
, but the dash there is a syntax error. Workarounds for this include:
- Putting a dash-less symlink in site-packages to django-redshift allows the module to be imported using the name of the symlink.
- Doing something like
django_redshift = __import__("django-redshift")
instead of a regular import statement.
Both of which are kind of gross. The pythonic solution is apparently to rename the module (see http://stackoverflow.com/questions/761519/is-it-ok-to-use-dashes-in-python-files-when-trying-to-import-them).
Metadata
Metadata
Assignees
Labels
No labels