You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
LEdoian 5963a6088d Add a command to generate SECRET_KEY 3 years ago
conf Add a command to generate SECRET_KEY 3 years ago
utils Put the footer into a paragraph tag 3 years ago
wish Rename deploy config file and chenge its location 3 years ago
wishlist Allow HTML in descriptions 3 years ago
.gitignore Ignore database 4 years ago
README.md Add installing guide to the readme 3 years ago
constraints.txt Restrict Django version in order to work 3 years ago
deploy.sh Add a deploy script 3 years ago
manage.py Init django project 4 years ago
requirements-dev.txt Add requirement and constraint files 4 years ago
requirements.txt Add django-sendmail-backend 3 years ago

README.md

LEdoian's Wish

This is a simple Django project to create and share lists of wishes. There are two motivations for this project:

  1. Christmas. Every time anybody asks me what I want for Christmas, I am totally unable to answer that.
  2. The need to test various Django extensions and features before production deployment.

Also: Simple TODO lists. They are lists anyway, so reusing this project seems fine. But they will only work as a plain list, no special features.

Contributing and support

Code lives at https://gitea.ledoian.cz/LEdoian/Wish Send questions and patches to mailto:wishpatch@pokemon.ledoian.cz

Currently there is no documentation :-/

Installing

  1. Pull the repository to preferred location (git clone https://gitea.ledoian.cz/LEdoian/Wish.git <location> should be sufficient).
  2. Optionally create a virtualenv (the deployment script and example configuration expect it in venv directory at repo root).
  3. Install the requirements
  4. Tweak and deploy the settings:
    • Instance configuration template is in conf/deploycfg.py and should be placed in $XDG_CONFIG_DIR/wish/deploycfg.py (or ~/.config/wish/deploycfg.py if $XDG_CONFIG_DIR is not set). Tweak to your needs according to Django documentation.
    • Configure a web reverse proxy and WSGI server to your liking. The conf directory contains example configuration files for uWSGI, nginx and systemd.
  5. Verify the configuration using ./manage.py check --deploy. If there are relevant errors, tweak the configuration more.
  6. If everything seems OK, start the systemd service and try reaching the site.

You will likely need to reference documentation of Django, uWSGI (or other WSGI server implementation), web reverse proxy of your liking and your service manager.

If you deploy using git, have a virtualenv in ./venv/ and use systemd to run the service, you can try to use the provided script ./deploy.sh for subsequent deploys. Keep in mind, however, that it is written so it WorksForMe™ and I do not guarantee that it will work for you. But I might be able to help you and/or am open to changes, so feel free to send me questions and/or patches.

Licence

The code is distributed under WTFPL v2.0. On the other hand, documentation (including this readme) is not; its licence is not yet decided.

Parts of the code are autogenerated by Django, not by me. IANAL, so I cannot tell the specific condition of sharing this code. (However, they do not seem to care about those bits…)

Rationale

I would like to promote free software and especially empower any user of the software to be able to access the source code. Therefore, I recommend anyone to link to the source code.

However, this is a playground for my experiments with Django that I might want to copy-paste to other projects, without worries. I also want to make sure that others can do the same, since there probably will be nothing special in the code, just some tricks that may actually work.

I might want to change the licence in the future. It will probably be permissive, too.

The documentation in this project, however, feels a lot like an original work, so it should get a reasonable licence with reasonable conditions (i.e. at least something like CC BY, probably stricter). I still want anyone to be able to read and contribute the docs, but it should not get easily stealable.