Skip to content

Commit

Permalink
Updating readme file instrucctions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelagz committed Jul 22, 2024
1 parent 7402b6c commit 8c8fb66
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ start:
cd src && python manage.py migrate && python manage.py createcachetable
python manage.py load_urlname_permissions
python manage.py loadgroup
python manage.py load_sga
python manage.py loaddata sga_components.json


Expand All @@ -80,3 +79,6 @@ build_docker_selenium:
run_docker_selenium:
docker run --network="host" -v $(current_path)/src:/organilab/src -v $(current_path)/fixtures:/organilab/fixtures -v $(current_path)/docs:/organilab/docs -ti organilabselenium:$(setup_version) $(run)


database_config:
cd src && python manage.py migrate && python manage.py createcachetable && python manage.py load_urlname_permissions && python manage.py loadgroup && python manage.py loaddata sga_components.json
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ Create a virtualenv
$ python -m venv ~/entornos/organilab
$ source ~/entornos/organilab/bin/activate

Note: If you are using a python 3.* or greater version you need to execute the following command instead.

$ python3 -m venv ~/entornos/organilab


Install requirements

$ pip install -r requirements.txt
Expand All @@ -40,18 +45,19 @@ Install requirements

Check your database configuration and sync your models

$ python manage.py migrate
$ python manage.py createcachetable
$ python manage.py load_urlname_permissions
$ python manage.py loadgroup
$ python manage.py load_sga
$ python manage.py loaddata sga_components.json
$ make database_config

Could be required to call python manage.py initial_data
Could be required to call python manage.py loaddata initial_data.json

Create a superuser for admin views

$ python manage.py createsuperuser
$ python manage.py shell
$ from auth_and_perms.models import Profile
$ from django.contrib.auth.models import User
$ user = User.objects.get(username=#USERNAME#)
$ profile = Profile.objects.create(user=user)
$ ctrl + z

Run your development server

Expand All @@ -73,7 +79,7 @@ Compile translations

Create your image organilab
```bash
docker build -f docker/Dockerfile -t solvosoft/organilab
docker build -f docker/Dockerfile -t solvosoft/organilab .
```

Run with **bind mount folder** to sync with changes without rebuild image:
Expand Down

0 comments on commit 8c8fb66

Please sign in to comment.