我在Ubuntu 12.04上运行Django 1.4,Python 2.7。我启动了一个新的应用程序并为它创建了一个postgres 9.1数据库。在public partial class MainWindow : Window
{
View v = new View();
Edit e = new Edit();
public MainWindow()
{
InitializeComponent();
Window1.Viewer.Content = v;
Window1.Editor.Content = e;
EventManager.RegisterClassHandler(GetType(), Button.ClickEvent, new RoutedEventHandler(OnButtonClick));
}
private void OnButtonClick(object sender, RoutedEventArgs e)
{
if (e.Source is View)
{
SwichToEditor();
}
else
{
SwichToViewer();
}
}
public void SwichToEditor()
{
Window1.Editor.Visibility = System.Windows.Visibility.Visible;
Window1.Viewer.Visibility = System.Windows.Visibility.Hidden;
}
public void SwichToViewer()
{
Window1.Ediort.Visibility = System.Windows.Visibility.Hidden;
Window1.Viewer.Visibility = System.Windows.Visibility.Visible;
}
}
中输入数据库详细信息并运行settings.py
。我包括南方'在已安装的应用程序中,然后出现以下错即使在向南移除后,我也会遇到同样的错误。我还没有在项目中创建任何应用程序。
主要错误是:
python manage.py syncdb
完整的追溯是:
django.db.utils.DatabaseError: column django_content_type.name does not exist LINE 1: SELECT "django_content_type"."id", "django_content_type"."na...