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
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 = (
> '
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
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
4 matches
Mail list logo