Browse Source

Clean-up, added postgres to README

master
Elwin Buisman 12 months ago
parent
commit
3d8689b3f0
  1. 12
      README.md
  2. 1
      VRE/log
  3. 46
      VRE/logging.ini.disabled
  4. 1
      VRE/storage/README.md
  5. 10
      VRE/templates/admin/base_site.html

12
README.md

@ -19,22 +19,22 @@ More to come ... @@ -19,22 +19,22 @@ More to come ...
The Broker is made with the [Django Framework](https://www.djangoproject.com/) in combination with [Django Rest Framework](https://www.django-rest-framework.org/). The installation is pretty straight forward. After this the code is at location `Broker` and during the setup we assume that this is the root folder where you are in.
- First we need a running version of Redis. For Debian/Ubuntu like OS:
- The Broker depends on Redis and Postgres. These can be installed using docker-compose, or by installing the services directly ons your system.
```sh
sudo apt install redis-server
docker-compose up
```
- Checkout this repository:
- Then Checkout the GIT repository:
```sh
git clone https://git.web.rug.nl/VRE/Broker.git
```
- Create a Python3 virtual environment:
- Create a Python3 virtual environment by using venv (or virtualenvwrapper)
```sh
cd Broker
python3 -m venv venv
python3 -m venv [env_name]
```
- Activate the Python3 virtual environment:
```sh
source venv/bin/activate
source [env_name]/bin/activate
```
- Install all the required Python3 modules:
```sh

1
VRE/log

@ -1 +0,0 @@ @@ -1 +0,0 @@
../log/

46
VRE/logging.ini.disabled

@ -1,46 +0,0 @@ @@ -1,46 +0,0 @@
# In order to change the logging configuration, make a copy of this file and save it as 'logging.custom.ini'
# Then the logger will update the default logging values with your custom logging settings
[loggers]
keys=root
[handlers]
keys=consoleHandler,fileHandler,fileHandlerDebug,syslogHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=DEBUG
# Add fileHandlerDebug to handlers to enable debug logging
# Add syslogHandler to handlers to enable syslog logging.
handlers=consoleHandler,fileHandler,fileHandlerDebug
[handler_consoleHandler]
class=StreamHandler
level=WARNING
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=INFO
formatter=simpleFormatter
args=('log/django.log','midnight',1,30)
[handler_fileHandlerDebug]
class=logging.handlers.TimedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=('log/django.debug.log','midnight',1,30)
[handler_syslogHandler]
class=logging.handlers.SysLogHandler
level=INFO
formatter=simpleFormatter
# Use '/dev/log' for local syslog. For remote use ('hostip',portnr)
args=('/dev/log','local6')
[formatter_simpleFormatter]
format=%(asctime)s - %(levelname)-7s - %(module)-12s - %(message)s
datefmt=

1
VRE/storage/README.md

@ -0,0 +1 @@ @@ -0,0 +1 @@
Move this package to it's own repo + proper packaging

10
VRE/templates/admin/base_site.html

@ -1,10 +0,0 @@ @@ -1,10 +0,0 @@
{% extends "admin/base_site.html" %}
{% block footer %}
<div id="footer"></div>
<script>
// Show soft deleted items. This works nicer then the original safedelete HTML/CSS
window.django.jQuery(function(){
window.django.jQuery('td.field-deleted').not(':contains(-)').parent('tr').addClass('deleted');
});
</script>
{% endblock %}
Loading…
Cancel
Save