skagankose / urban

0 stars 0 forks source link

ProgrammingError at /register/ #1

Open EnisBerk opened 9 years ago

EnisBerk commented 9 years ago

yeniden kaydolmayı deneyince bu hatayı aldım

Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/register/

Django Version: 1.8
Python Version: 3.5.0
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'entries',
 'crispy_forms')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware')

Traceback:
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/berk/PycharmProjects/urban/entries/views.py" in register
  239.             profile.save()
File "/Users/berk/PycharmProjects/urban/entries/models.py" in save
  53.         super(UserProfile, self).save(*args, **kwargs)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/base.py" in save
  710.                        force_update=force_update, update_fields=update_fields)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/base.py" in save_base
  738.             updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/base.py" in _save_table
  822.             result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/base.py" in _do_insert
  861.                                using=using, raw=raw)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/manager.py" in manager_method
  127.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/query.py" in _insert
  920.         return query.get_compiler(using=using).execute_sql(return_id)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/models/sql/compiler.py" in execute_sql
  963.                 cursor.execute(sql, params)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
  79.             return super(CursorDebugWrapper, self).execute(sql, params)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
  64.                 return self.cursor.execute(sql, params)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/utils.py" in __exit__
  97.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/utils/six.py" in reraise
  658.             raise value.with_traceback(tb)
File "/Users/berk/PycharmProjects/urban/suhaproje/lib/python3.5/site-packages/django/db/backends/utils.py" in execute
  64.                 return self.cursor.execute(sql, params)

Exception Type: ProgrammingError at /register/
Exception Value: column "avatar" of relation "entries_userprofile" does not exist
LINE 1: ...INTO "entries_userprofile" ("user_id", "website", "avatar") ...
                                                             ^
skagankose commented 9 years ago

Projeyi güncelledim, tekrar al Github'tan. Varsa entries/migrations klasörünü sil, tekrar