Спасибо, хочу ещё спросить а как редактировать уже мигрировавшие модели?
всевремя выдает такую ошибку python manage.py makemigrations blog
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 328, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/dima/PycharmProjects/DailyPost/daily/blog/models.py", line 9, in <module>
class Post(models.Model):
File "/home/dima/PycharmProjects/DailyPost/daily/blog/models.py", line 14, in Post
link = models.URLField(required=False)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 2313, in __init__
super(URLField, self).__init__(verbose_name, name, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 1081, in __init__
super(CharField, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'required'