confucianzuoyuan / bookstore Goto Github PK
View Code? Open in Web Editor NEW使用Django编写一个书城电商网站,配合详细的教程。
使用Django编写一个书城电商网站,配合详细的教程。
部分css和js找不到 浏览器默认加的端口加路径
我换成nohup gunicorn -w 3 -b 0.0.0.0:80 bookstore.wsgi:application &
你好,能不能把数据库sql 文件也上传一下?或者能不能发到[email protected].
如题, 不想一条一条创建数据.
我咋输入完账户密码后,跳转页面出现了问题,咋回事啊。
启动项目报错
Traceback (most recent call last):
File "D:\Python\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "D:\Python\lib\threading.py", line 946, in run
self._target(*self._args, **self.kwargs)
File "D:\pyVE\venv2\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "D:\pyVE\venv2\lib\site-packages\django\core\management\commands\runserver.py", line 133, in inner_run
self.check(display_num_errors=True)
File "D:\pyVE\venv2\lib\site-packages\django\core\management\base.py", line 485, in check
all_issues = checks.run_checks(
File "D:\pyVE\venv2\lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "D:\pyVE\venv2\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "D:\pyVE\venv2\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "D:\pyVE\venv2\lib\site-packages\django\urls\resolvers.py", line 494, in check
for pattern in self.url_patterns:
File "D:\pyVE\venv2\lib\site-packages\django\utils\functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
File "D:\pyVE\venv2\lib\site-packages\django\urls\resolvers.py", line 715, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "D:\pyVE\venv2\lib\site-packages\django\utils\functional.py", line 57, in get
res = instance.dict[self.name] = self.func(instance)
File "D:\pyVE\venv2\lib\site-packages\django\urls\resolvers.py", line 708, in urlconf_module
return import_module(self.urlconf_name)
File "D:\Python\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\PythonProject\bookstore\bookstore\urls.py", line 23, in
from books.views import BooksListViewSet
File "D:\PythonProject\bookstore\books\views.py", line 9, in
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
File "D:\pyVE\venv2\lib\site-packages\rest_framework_jwt\authentication.py", line 4, in
from django.utils.encoding import smart_text
ImportError: cannot import name 'smart_text' from 'django.utils.encoding' (D:\pyVE\venv2\lib\site-packages\django\utils\encoding.py)
How long time have no updated. Add more funtion about pay
想问下这个在哪里添加,目前的代码有这部分嘛,还是要完全自己添加,谢谢
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.