Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not install with django 1.8.8 (stable) #85

Open
sstacha opened this issue Jan 13, 2016 · 2 comments
Open

Does not install with django 1.8.8 (stable) #85

sstacha opened this issue Jan 13, 2016 · 2 comments

Comments

@sstacha
Copy link

sstacha commented Jan 13, 2016

I tried to do a simple pip install, migrate and use your plugin.

python -> 2.7.10
django -> 1.8.8
djangocms -> 3.2.0

I get the following error when making migrations:
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/django/core/management/init.py", line 328, in execute
django.setup()
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/sstacha/dev/projects/djangocms/env/lib/python2.7/site-packages/smartsnippets/models.py", line 3, in
from django.template import Template, TemplateSyntaxError,
ImportError: cannot import name VariableNode

Some googling of the error indicated it may have something to do with django 1.7 -> 1.8. I am too new to go much deeper into troubleshooting.

@sstacha
Copy link
Author

sstacha commented Jan 14, 2016

This appears to be a difference between what is in pypi (pip install) vs the master code here. If anyone else runs across this you can extract the master download and copy the smartsnippets folder into your project folder. Do a pip install django-admin-extend to get the dependency and add 'smartsnippets' to your INSTALLED_APPS block in the settings.py file. Restart and so far it appears to be working fine.

NOTE: devs, please update pypi with the correct version so it works from pip install before closing.

Thanks,

@sstacha
Copy link
Author

sstacha commented Jan 14, 2016

One more note to those using the instructions above. I left out the step of running ./manage.py migrate to get the database in sync after adding to installed apps but before starting the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant