You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
The text was updated successfully, but these errors were encountered: