目錄stucture爲什麼不在django 1.4管理界面中顯示此模塊?
tutorial/tutorials
turotial/tutorial
教程/ settings.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
#'domains'
'tutorials'
)
教程/ admin.py
from tutorials.models import Tutorial
from django.contrib import admin
admin.site.register(Tutorial)
# Create your views here.
教程/ models.py
from django.db import models
class Tutorial(models.Model):
name = models.CharField(max_length=200)
url = models.CharField(max_length=200)
def __unicode__(self):
return self.name
class User(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
class Country(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
你可能已經試過,但你重新啓動你的網絡服務器? – Ponytech