tidbit

所属分类:数据库系统
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-03-09 05:56:22
上 传 者sh-1993
说明:  花边新闻
(tidbit)

文件列表:
conf/
dictionary/
dictionary_graph/
djdict/
docker/
docs/turkish/
screenshots/
.dockerignore
.eslintrc
.pre-commit-config.yaml
.stylelintrc
CHANGELOG
CONTRIBUTORS
LICENSE
Makefile
manage.py
package.json
pyproject.toml
requirements.txt

## tidbit [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE) Check [CHANGELOG](CHANGELOG) before cloning a newer version Check out "todo" keyword in the project files or Github issues to see the to-do's. ### Quick installation Installation requires Docker (with compose plugin) and GNU Makefile installed. Run this command in the project root: make This will build and start development server for the project. Keep in mind that in development mode, the emails will output into console (container logs). Running in development mode will also create a superuser with email `test@django.org` and password `test`. In order for your entries to appear, you need to make yourself an actual author i.e., remove yourself from novice status using admin user edit page. The website uses cache mechanism frequently, so you may be inclined to disable caching using a dummy cache backend, or disabling cache on left frame. Check settings on `apps.py` to learn about caching and about all the other settings. A production setup is also available if you set `CONTEXT` environment variable to `production`. For example, to do deployment in production mode you would run: CONTEXT=production make If you are going to use the production setup, you'll need to run setup script once, after the initial build completes (otherwise a server error is shown): CONTEXT=production make setup Makefile also includes other miscellaneous commands. You can browse it to learn more. ### Standard docker usage If you prefer not use the helper script to gain more granular control, make sure you specify the right compose file. Use this command to build and serve: docker-compose -f docker/docker-compose.yml up -d Initially, you also have to run a script (in the web container) that sets up the database, collects static files and generates required users for the dictionary app: docker-compose exec web sh docker/scripts/setup.sh You are most likely to create an admin account after these processes: docker-compose exec web python manage.py createsuperuser If you intend to use this configuration for production, make sure you have edited all the `.env` files, Django settings file (`settings_prod.py`) and dictionary settings file (`dictionary/apps.py`) with proper credentials. Make sure you change the passwords of users that are generated through `setup.sh` script.

近期下载者

相关文件


收藏者