Форум сайта python.su
Использую Django 1.3, feincms, установил через pip
согласно http://www.feinheit.ch/media/labs/feincms/installation.html#configuration
в seting.py прописал
INSTALLED_APPS = [ feincms,]
import datetime
import mptt
from django.db import models
from mptt.models import MPTTModel
class Adress(models.Model):
name_location = models.CharField(max_length=200, unique=True, verbose_name=_(u"name location"))
def __unicode__(self):
return (self.name_location)
mptt.register(Adress)
from django.contrib import admin
from feincms.admin import editor
from company.models import Departament,Adress,Personnel
from mptt.admin import MPTTModelAdmin
class AdressAdmin(editor.TreeEditor):
list_display = ('name_location',)
admin.site.register(Adress,AdressAdmin)
[28/Aug/2011 11:32:10] "GET /admin/company/adress/ HTTP/1.1" 200 11414
[28/Aug/2011 11:32:11] "GET /static/feincms/style.css HTTP/1.1" 404 5205
[28/Aug/2011 11:32:11] "GET /static/feincms/fein_tree.css HTTP/1.1" 404 5217
[28/Aug/2011 11:32:11] "GET /static/feincms/jquery-1.5.1.min.js HTTP/1.1" 404 5235
Офлайн