Skip to content

daaniam/klub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto*mat klub

Build Status Coverage Status

Documentation

Docs

Instalation

Copy .env-sample, to .env and change the CHANGE_MEs.

Instalace (Docker compose)

$ cp .env-sample .env
$ vim .env

$ docker-compose build
$ docker-compose up

There will be errors that celery cannot be found, ignore them.

In a new terminal run

$ docker exec -it klub_web_1 bash
$ virtualenv venv --activators bash,fish
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ cd apps/aklub && django-admin.py compilemessages -l cs_CZ && cd ../../
$ python manage.py migrate
$ python manage.py createsuperuser2

Set django Site object domain name

$ python manage.py shell

'localhost:8000' if app will run on localhost

>>> from django.contrib.sites.models import Site
>>> s = Site.objects.first()
>>> s.domain = "localhost:8000"
>>> s.save()
>>> exit()
$ exit

Running

For development use

$ ./develop.sh

To launch the dev environment. To launch the development web server run

python manage.py runserver 0.0.0.0:8000

Other usefull commands are

Run formatter

./runblack.sh

Run test suit

pytest apps

Run other test suit

python3 manage.py test

Run a single test

./single-pytest.sh path/to/unit/file.py

K8S

Configuration can be found here

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • HTML 2.7%
  • Other 0.2%