Link = models.CharField(max_length=200, blank=True) Subtitle = models.CharField(max_length=200, blank=True) Pub_date = models.DateTimeField('date published')Īuthors = models.CharField(max_length=200) Here's the models.py: from django.db import modelsįrom import FilerImageField I've run python manage.py syncdb and get the following: Syncing. I've run python manage.py migrate research and get: /Users/XXX/Documents/repos/sfs/env/lib/python2.7/site-packages/app_data/fields.py:2: DeprecationWarning: is deprecated use json instead.įrom django.utils import simplejson as json "researchbase_ptr_id" integer NOT NULL PRIMARY KEY REFERENCES "research_researchbase" ("id"),ĬREATE TABLE "research_encyclopedia_chapter" ( "image_id" integer NOT NULL REFERENCES "filer_image" ("file_ptr_id"), Looking at python manage.py sql research yields: BEGIN I'm using Djnago 1.6.5 with a sqlite3 database. The problem is that when I point the browser to /research/ I get an error saying that the table 'research_journal' doesn't exist ("no such table"). (It's my first ground-up attempt at a project/application.) Its main purpose is to store various intellectual assets (i.e article, book, etc. I'm building a fairly simple application, research, in my Django project that uses Django-CMS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |