2020-10-05 12:27:17 +02:00
2019-08-11 20:01:49 +00:00
2018-03-27 19:23:24 +02:00
2020-04-20 23:16:35 +02:00
2018-09-27 17:33:15 +02:00
2020-10-05 12:27:11 +02:00
2020-03-25 22:47:47 +01:00
2020-03-25 22:57:58 +01:00
2020-07-07 22:46:42 +02:00
2020-09-10 20:40:25 +02:00
2020-09-10 20:40:25 +02:00
2020-05-04 21:57:31 +02:00
2020-09-10 20:40:25 +02:00
2020-09-10 20:40:25 +02:00
2020-09-10 20:40:25 +02:00
2020-09-10 20:40:25 +02:00
2020-09-10 20:40:25 +02:00
2020-07-07 22:46:42 +02:00
2018-03-15 12:42:13 +01:00
2018-03-15 12:42:13 +01:00
2020-04-05 22:30:12 +02:00
2020-01-13 17:07:14 +01:00
2020-10-05 12:27:17 +02:00
2018-03-15 12:42:13 +01:00

Tagesschule elementa

Docker

  1. Copy environment files .env*.example to .env* and make the configuration changes. Configure database user and ports for docker.

    • HTTP_PORT=8009 [.env] ...
  2. Main app has several mountpoints / volumes. Point them into the appropriate location on your filesystem

    • ./docker/static_collected
    • ./docker/data/media
    • ./docker/data
  3. To start

     docker-compose up
    
  4. Restore DB

     docker exec -i tagesschule_db_1 pg_restore -U django --no-owner -d db < 41ebf901-4607-4653-9b00-54a42d877b38.dump       
    
  5. Migrate

     docker-compose exec web manage.py migrate
    
  6. Add admin user

In docker container docker-compose exec web bash run

python manage.py shell

In that shell create admin user (https://stackoverflow.com/questions/18503770/how-to-create-user-from-django-shell)

user@host> manage.py shell
>>> from django.contrib.auth.models import User
>>> user=User.objects.create_user('foo', password='bar')
>>> user.is_superuser=True
>>> user.is_staff=True
>>> user.save()
Description
No description provided
Readme 4.2 MiB
Languages
JavaScript 63.3%
HTML 16%
Python 8.9%
SCSS 5.8%
CSS 5.3%
Other 0.6%