Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后台添加课程机构出错。 #5

Closed
cnbillow opened this issue Apr 17, 2017 · 2 comments
Closed

后台添加课程机构出错。 #5

cnbillow opened this issue Apr 17, 2017 · 2 comments

Comments

@cnbillow
Copy link

封面图无法添加。
image

@zaxlct
Copy link
Owner

zaxlct commented Apr 17, 2017

我这边尝试添加了课程机构没有错误。
image
添加完成后,封面图实际上存储的是一个「文件路径」,而且这个路径有一定的格式,具体可以看一下apps/organization/models.py 里:

image = models.ImageField(upload_to='org/%Y/%m', verbose_name='封面图')

同时 setting.py 里关于 media 目录的配置是否加上了呢?
urls.py 里关于 media 的配置是否也加上了呢?

可以在 setting.py 和 urls.py 里搜索一下 media ,看看有哪些配置。

@zaxlct zaxlct closed this as completed Apr 18, 2017
@cnbillow
Copy link
Author

点击 课程-增加课程,点击课程机构后面的加号。无法添加课程机构。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants