Skip to content

New website with better UI and more features. Written in python with django.

License

Notifications You must be signed in to change notification settings

PiSmartTV/Website

Repository files navigation

Website

New website with better UI written in Django.

Requirements

  • entr is required to use live reload style.scss compilation
  • scss is required to compile stylesheets
  • python3 and pip (of course)

Installing python server dependencies

Use requirements.txt

NOTE: It is recommended to install using pipenv

python3 -m pip install --user -r requirements.txt

Use Pipenv

This is the recommended way of installing python dependencies.
Pipenv is required

python3 -m pipenv install
python3 -m pipenv shell

Usage

By default every time you start the server with python pitv/manage.py runserver it uses different key. In order to change that, make local_settings.py in pitv/pitv/.

First, create database with:

./scripts/manage.sh migrate

Second, create admin user:

./scripts/manage.sh createsuperuser

Third, generate static files:

./scripts/make.sh
./scripts/manage.sh collectstatic

Finally, run the server:

./scripts/run.sh # or ./scripts/manage.sh runserver

Or setup everything with:

./scripts/setup.sh
./scripts/run.sh

User data

  • User profile (email, name, username, hashed password)
  • Device codes, temporary for registering new devices (randomly generated code, ip address for spam prevention, expire date)
  • User session, used for access control and revoking (ip address of logged in device, user agent of the device). Without that, device list wouldn't work For user privacy, I will probably make ip address and user agent optional, but without option to revoke devices.

Contributing

Feel free to open issue or pull request.
Usually grep -i "TODO" -r . will reveal things that should be changed

About

New website with better UI and more features. Written in python with django.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published