Coder Social home page Coder Social logo

slacklibrary's Issues

嘿嘿,发现里面一个小bug

用户注册老是失败,原因views.py 65行,你在forms.py定义的name是re_password,这里却用了repeat_password,搞得我老是注册失败哈哈~
repeat_password = request.POST.get('repeat_password','')

不能解析json

在导入db的时候,由于json内格式是多个数据,在导入的时候会报错

依赖安装不了

(django) F:\python\jbpro\c_7\SlackLibrary-master>pip3 install -r requirements.txt
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\cli\base_command.py", line 180, in _main
status = self.run(options, args)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\cli\req_command.py", line 204, in wrapper
return func(self, options, args)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\commands\install.py", line 318, in run
requirement_set = resolver.resolve(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 127, in resolve
result = self._result = resolver.resolve(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 473, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _merge_into_criterion
if not criterion.candidates:
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\resolvelib\structs.py", line 139, in bool
return bool(self._sequence)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in bool
return any(self)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 129, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 30, in _iter_built
for version, func in infos:
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 269, in iter_index_candidate_infos
result = self._finder.find_best_candidate(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\package_finder.py", line 879, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\package_finder.py", line 824, in find_all_candidates
page_candidates = list(page_candidates_it)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\package_finder.py", line 783, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\collector.py", line 512, in fetch_page
return _get_html_page(location, session=self.session)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\collector.py", line 422, in _get_html_page
resp = _get_html_response(url, session=session)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\index\collector.py", line 120, in _get_html_response
resp = session.get(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_internal\network\session.py", line 449, in request
return super().request(method, url, *args, **kwargs)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\connection.py", line 500, in connect_tls_proxy
return ssl_wrap_socket(
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 432, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "C:\Users\oldhe\Envs\django\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "d:\python\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "d:\python\lib\ssl.py", line 997, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

重构

当年随手写的,没想到被这么多人fork..
代码质量很糟,界面也乱七八糟的,所以我打算重构一下

  • 添加单元测试

  • 添加Docker脚本

  • 添加CI

  • 提升代码质量

  • 美化界面

关于书籍封面和用户头像的一些小问题

你好,我把您的这个项目部署在我的服务器上之后,测试书籍的封面可以正常显示,但是后添加的书籍封面和用户自定义头像均无法显示,点击查看后显示
Not Found
The requested URL /media/xx.png was not found on this server.
能解答一下吗,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.