"Dependency on app with no migrations: %s" % key[0]
问题描述:我在model中建好模型类,运行的控制台就报错误:

解决方法:1,首先需要在setting中重载AUTH_USER_MODEL
AUTH_USER_MODEL = 'users.UserProfile'
2,然后生成迁移文件,指定app的名称:
python manager.py makemigrations users
3,最后迁移数据就可以了
python manager.py migrate
4,如果迁移出了问题,可能是你生成的迁移文件出错,可以将迁移文件删除后再重复2和3步骤,重复2步骤时不要指定app名称。
"Dependency on app with no migrations: %s" % key[0]的更多相关文章
- Django项目中出现的错误及解决办法(ValueError: Dependency on app with no migrations: customuser)
		写项目的时候遇到了类似的问题,其实就是没有生成迁移文件,执行一下数据库迁移命令就好了 ValueError: Dependency on app with no migrations: customu ... 
- ValueError: Dependency on app with no migrations: customuser
		You haven't run manage.py makemigrations customuser to create the migrations for your CustomUser app ... 
- android Studio 出现:Unable to resolve dependency for ':app@debug/compileClasspath'
		li经千辛万苦,我的新工程gradle搞定了 但是却在变异的时候告诉我 Unable to resolve dependency for ':app@debug/compileClasspath'xx ... 
- Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matc
		错误展示: 错误提示: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any versi ... 
- Android studio 报错 Unable to resolve dependency for ‘:app@releaseUnitTest/compileClasspath‘:
		出现报错: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find any ... 
- Android: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath':
		我按照ExoPlayer的github指引添加 implementation 'com.google.android.exoplayer:exoplayer:2.X.X' 发现根本run不起来,并报错 ... 
- 解决AndroidStudio引入Jar出现Unable to resolve dependency for ':app@debug/compileClasspath
		今天在做Android项目时遇到一个万脸懵逼的错误,表示没看懂,百度一圈说是被墙啥的 不过最终还是被朕给找到了答案,解决办法如下 点击AndroidStudio左上角 File -> setti ... 
- Android Studio报错Unable to resolve dependency for ':app@release/compileClasspath':无法引用任何外部依赖的解决办法
		Android Studio 在引用外部依赖时,发现一直无法引用外部依赖.刚开始以为是墙的问题,尝试修改Gradle配置,未解决问题. 最终发现原来是在Android Sudio安装优化配置时,将Gr ... 
- Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support.constraint:constraint-layout:1.1.0.  Could not resolve com.android.support.constraint:constraint-l
		File->Settings->Build, Execution, Deployment->Gradle->取消选中 Offline work 按钮 
随机推荐
- 【SQL server基础】获取当前时间并固定格式
			Select CONVERT(varchar(), GETDATE(), ): // Select CONVERT(varchar(), GETDATE(), ): Select CONVERT(va ... 
- angular 配置开发环境、测试环境、生产环境
			1. 配置开发环境.测试环境.生产环境 (1). environment.ts - 开发环境: 用于程序开发 (创建项目时自动生成) export const environment = { prod ... 
- Kubernetes 系列(六):Kubernetes部署Prometheus监控
			1.创建命名空间 新建一个yaml文件命名为monitor-namespace.yaml,写入如下内容: apiVersion: v1 kind: Namespace metadata: name: ... 
- 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).
			Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 2017年02 ... 
- navicat工具 pymysql模块
			目录 一 IDE工具介绍(Navicat) 二 pymysql模块 一 IDE工具介绍(Navicat) 生产环境还是推荐使用mysql命令行,但为了方便我们测试,可以使用IDE工具,我们使用Navi ... 
- navicat安装及其简单使用
			一.安装 下载地址:https://pan.baidu.com/s/1bpo5mqj 下载完之后,直接解压出来就能用,看一下解压之后的目录: 双击打开下面这个文件(可以把它添加一个桌面快捷方式,或者添 ... 
- margin和text-align实现水平居中的区别
			1.首先text-align只应用于内联块和内联元素 text-align影响的是元素中的文本内容的对其方式(默认是left,设置为center时水平居中) 所以,将text-align设置为cent ... 
- wx.navigateTo、wx.redirectTo、wx.reLaunch、wx.switchTab和wx.navigateBack的区别
			wx.navigateTo.wx.redirectTo.wx.reLaunch.wx.switchTab和wx.navigateBack有什么区别呢? **wx.navigateTo:** 用于保留当 ... 
- 移动端Rem布局注意事项
			1.布局的总体结构框架: 2.注意事项: (a):如果是左右两栏的布局方式,须在article的同级加一个aside: 因为是同级,所以必须设置同样的样式:而且他俩的父级,也就是sectio ... 
- Java名词术语---持续更新
			在看技术文档的过程中,经常会出现新的java缩写术语,很多时候都不知道它们是什么,在这里记下,持续更新. ——————————————————————————————————————————————— ... 
