waters00 / slacklibrary Goto Github PK
View Code? Open in Web Editor NEW图书馆借还系统,一个Django写的练手项目
License: MIT License
图书馆借还系统,一个Django写的练手项目
License: MIT License
用户注册老是失败,原因views.py 65行,你在forms.py定义的name是re_password,这里却用了repeat_password,搞得我老是注册失败哈哈~
repeat_password = request.POST.get('repeat_password','')
(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
请问一下定制了后台么?
你好,我把您的这个项目部署在我的服务器上之后,测试书籍的封面可以正常显示,但是后添加的书籍封面和用户自定义头像均无法显示,点击查看后显示
Not Found
The requested URL /media/xx.png was not found on this server.
能解答一下吗,谢谢
在导入db的时候,由于json内格式是多个数据,在导入的时候会报错
放在服务器上,总是会出现这个问题
File "/home/ubuntu/.local/lib/python3.5/site-packages/django/utils/translation/trans_real.py", line 134, in init
raise IOError("No translation files found for default language %s." % settings.LANGUAGE_CODE)
OSError: No translation files found for default language zh_Hans.
当年随手写的,没想到被这么多人fork..
代码质量很糟,界面也乱七八糟的,所以我打算重构一下
添加单元测试
添加Docker脚本
添加CI
提升代码质量
美化界面
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.