Make DATABASE_NAME an absolute path. On Mon, Sep 14, 2009 at 12:11 AM, AIM <andremiku...@gmail.com> wrote: > > HI, > > When I browse to > http://127.0.0.1:8000/mysite/Start/ > > I get the following error: > > OperationalError at /mysite/Start/ > > no such table: wiki_page > > Request Method: GET > Request URL: http://127.0.0.1:8000/mysite/Start/ > Exception Type: OperationalError > Exception Value: > > no such table: wiki_page (ERROR HERE) > > My traceback is located at the following. > http://dpaste.com/93287/ > > I have ALREADY done the following in the EXACT order. > > --mysite/urls.py > (r'^mysite/(?P<page_name>)','mysite.wiki.views.view_page' ), > > --mysite/settings.py > > DATABASE_ENGINE = 'sqlite3' > DATABASE_NAME = 'wiki.db' > > INSTALLED_APPS = ( > #'django.contrib.auth', DELETED > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django_extensions', > 'mysite.wiki', > ) > > > --created these three tables in wiki.db > mysite>python manage.py syncdb > > Creating table django_content_type > Creating table django_session > Creating table django_site > > --creates a wiki folder containing models.py and views.py > mysite>python manage.py startapp wiki > > --mysite/wiki/models.py created a model > from django.db import models > > class Page(models.Model): > name = models.CharField(max_length="20",primary_key=True) > content = models.TextField(blank=True) > > mysite>python manage.py syncdb > Creating table wiki_page > > > --wiki/views.py > from mysite.wiki.models import Page > from django.shortcuts import render_to_response > > def view_page(request, page_name): > try: > page = Page.objects.get(pk=page_name) > except Page.DoesNotExist: > return render_to_response("create.html",{"page_name" : page_name}) > > --mysite/create.html (NEVER MADE IT THIS FAR) > <html> > <head> > <title> {{page_name}} - Create</title> > </head> > <body> > <h1> {{page_name}} </h1> > </body> > </html> > > > Then, I reboot my wsgi web server. > > Last I browse to > http://127.0.0.1:8000/mysite/Start/ > > And, again last I get the following error: > > OperationalError at /mysite/Start/ > > no such table: wiki_page > > Request Method: GET > Request URL: http://127.0.0.1:8000/mysite/Start/ > Exception Type: OperationalError > Exception Value: > > no such table: wiki_page > > My traceback is located at the following. > http://dpaste.com/93287/ > > > Any ideas? > > Thanks. > Andre > > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---