hi,
I have modified my model for post, I added "bodyszort = FroalaField()":
from froala_editor.fields import FroalaField
class Post(models.Model):
title = models.CharField(max_length = 140)
bodyszort = FroalaField()
body = FroalaField()
date = models.DateTimeField()
#category = models.ManyToManyField(Category, verbose_name='Kategoria')
img = models.ImageField(upload_to='admina',null=True, blank=True)
now when I start page I got error::
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", line 337, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such column: blog_post.bodyszort
it seems that I need to run migration, but when I tried this I got:
00:10 ~/My-stuff/mysite (master)$ python manage.py makemigrations
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_from_command_line(sys.argv)
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/core/management/__init__.py", line 316, in execute
settings.INSTALLED_APPS
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/conf/__init__.py", line 53, in __getattr__
self._setup(name)
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/dzikuss98/My-stuff/myvenv/lib/python3.5/site-packages/django/conf/__init__.py", line 97, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named mysite.settings
00:10 ~/My-stuff/mysite (master)$ python3.5 manage.py makemigrations
No changes detected
00:11 ~/My-stuff/mysite (master)$
when I run with 3.5 - no changes detected without 3.5 - error message
Do you know what is hapenning