我正在努力迁移数据库,我不知道为什么我会收到此错误.有谁知道如何解决这一问题?在此之前,我使用mysql创建了一个新数据库,并授予了用户访问权限.之前我有一个工作数据库,但应用程序无法正常工作(将OSX升级到El Capitan),所以我重新编写了它.我不确定我是否正确创建了新数据库.
> (env)DNab4046b2:VisualGenomeDev gmaister$ python manage.py migrate
> /Users/gmaister/Desktop/VisualGenomeDev/env/lib/python2.7/site-packages/django/test/_doctest.py:59:
> RemovedInDjango18Warning: The django.test._doctest module is
> deprecated; use the doctest module from the Python standard library
> instead. RemovedInDjango18Warning)
>
> /Users/gmaister/Desktop/VisualGenomeDev/env/lib/python2.7/site-packages/django/test/simple.py:27:
> RemovedInDjango18Warning: The django.test.simple module and
> DjangoTestSuiteRunner are deprecated; use
> django.test.runner.DiscoverRunner instead. RemovedInDjango18Warning)
>
> Operations to perform: Synchronize unmigrated apps: lockdown,
> django_extensions, corsheaders, rest_framework Apply all migrations:
> hits, sessions, V6W, djcelery, contenttypes, auth, sites, admin,
> DataAnalysis, RegionAnnotations, common, UserManagement, Sentences,
> …Run Code Online (Sandbox Code Playgroud) 这不是一个特定的问题,但我想为诸如 localhost:3001/users/jim127 之类的配置文件生成自定义 URL。有人知道这样做的好方法吗?