Skip to content

Instantly share code, notes, and snippets.

@Copser
Created November 30, 2014 07:22
Show Gist options
  • Save Copser/838e4a8bce26177c7577 to your computer and use it in GitHub Desktop.
Save Copser/838e4a8bce26177c7577 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/apps/config.py", line 202, 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/petarp/Documents/Django_Rest_Framework/serialization_tutorial/tutorial/snippets/models.py", line 11, in <module>
class Snippet(models.Model):
File "/home/petarp/Documents/Django_Rest_Framework/serialization_tutorial/tutorial/snippets/models.py", line 13, in Snippet
title = models.CharField(max_length=100, blank=True, dafault='')
File "/home/petarp/.virtualenvs/env/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 1012, in __init__
super(CharField, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'dafault'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment