Re: Questions about setting up my first app in django tutorial

2014-04-18 Thread Jason
from django.contrib import admin from polls.models import Poll class PollAdmin(admin.ModelAdmin): pass admin.site.register(Poll, PollAdmin) On Thursday, 17 April 2014 00:03:03 UTC-4, Xiaofeng Feng wrote: > > I am now trying to set up my first app using django tutorial. However, I > was stu

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Ramón Carrillo
The file is probably in the wrong directory or you're naming it incorrectly. It must be project_name/app_name/admin.py Maybe you're placing it in project_name/admin.py or project_name/project_name/admin.py On Thu, Apr 17, 2014 at 9:51 AM, Xiaofeng Feng wrote: > Yes. > INSTALLED_APPS = ( > '

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Xiaofeng Feng
Yes. INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'TestApp', ) The last line TestApp is my first app. On Thursday, April 17, 2014 8:2

Re: Questions about setting up my first app in django tutorial

2014-04-17 Thread Jorge Andrés Vergara Ebratt
Did you register the app in settings.py? 2014-04-16 23:03 GMT-05:00 Xiaofeng Feng : > I am now trying to set up my first app using django tutorial. However, I > was stuck at adding the poll app in part 2. I think I followed all the > steps and it goes well before this question. After I change ad