﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7396	django.contrib.admin.site doesn't exist	contato@…	nobody	"When I try to do this proposal convetion at wiki:
A proposal convention: Specifying all admin options in a file called admin.py, and import it in the __init__.py file of your application module to do the registering during the initialization.

I got this error message: ...
File ""/home/projects/django/labs/../labs/research/__init__.py"", line 6, in <module>
    admin.site.register(Research, ResearchAdmin)
AttributeError: 'module' object has no attribute 'site'

My project at: /home/projects/django/labs
My research app __init__.py:
from django.contrib import admin

from labs.research.models import Research
from labs.research.admin import ResearchAdmin

admin.site.register(Research, ResearchAdmin)

If I put the code of research/__init__.py in research/urls.py it works."		closed	contrib.admin	newforms-admin		invalid			Unreviewed	0	0	0	0	0	0
