Доброго времени суток!
В данный момент пытаюсь создать приложение на django, следую руководства: http://djbook.ru/rel1.8/intro/tutorial01.html .
в моем файле notes.py прописано:
from django.db import models
class Notes(models.Model):
title=models.CharField(max_length=50)
current=models.DateTimeField('published')
content=models.TextField(max_length=200)
после запуска в командной строке выводит ошибку:
c:\Python34>python c:\python34\scripts\mysite\manage.py shell
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
from notes.models import Notes, Category, Select
Notes.objects.all()
[]
from django.utils import timezone
n=Notes(title="What's new?", current=timezone.now()),
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "c:\Python34\lib\site-packages\django-1.8.3-py3.4.egg\django\db\models\ba
se.py", line 480, in init
raise TypeError("'%s' is an invalid keyword argument for this function" % li
st(kwargs)[0])
TypeError: 'current' is an invalid keyword argument for this function
понимаю, что дело в "current", но все перепробовал, подскажите пожалуйста, что да как?
Updated 3 Aug. 2015, 16:44 by IceMan.