Django project for web experiences
Jérôme BUISINE c7c75c7a3e Merge tag 'v0.2.6' into develop | 4 年之前 | |
---|---|---|
ThesisWebExpeDjango | 5 年之前 | |
expe | 4 年之前 | |
static | 4 年之前 | |
.dockerignore | 5 年之前 | |
.gitignore | 5 年之前 | |
DOCUMENTATION.md | 5 年之前 | |
Dockerfile | 5 年之前 | |
Makefile | 5 年之前 | |
README.md | 5 年之前 | |
__init__.py | 5 年之前 | |
create_admin.sh | 5 年之前 | |
credentials.example.json | 5 年之前 | |
docker-compose.yml | 5 年之前 | |
manage.py | 5 年之前 | |
requirements.txt | 5 年之前 |
Web site which contains experimentss on synthesis images (perception of noise).
You need to have python, pip
pip install -r requirements.txt
Initialize the database with the following command :
python manage.py migrate
Add your own super user admin credentials:
cp credentials.example.json credentials.json
{
"username":"username",
"email":"",
"password":"pass"
}
Run the server :
python manage.py runserver
or if you want to make it listen on a specific port number :
python manage.py runserver 8080
First, you need to add your own user admin credentials if you wished:
cp credentials.example.json credentials.json
You can use make commands:
make build
make run
Or simply:
make deploy
Will run build
and run
commands at once.
You also have stop
, remove
, clean
commands:
stop
: stop current container instance if existsremove
: stop and remove container instance if existsclean
: remove docker image if existsCreate your own admin user:
python manage.py createsuperuser
You can now access /admin/results
route with your credentials in order to download experiments results.
Configure your own URL prefix using WEBEXPE_PREFIX_URL
:
WEBEXPE_PREFIX_URL=experiments python manage.py runserver
or using docker:
WEBEXPE_PREFIX_URL=experiments make deploy
Using custom API base URL using WEB_API_PREFIX_URL
:
WEBEXPE_PREFIX_URL=experiments/ WEB_API_PREFIX_URL=expe/api python manage.py runserver
or using docker:
WEBEXPE_PREFIX_URL=experiments/ WEB_API_PREFIX_URL=expe/api make deploy
See DOCUMENTATION.md. This documentation explains how to create your own experiments.
This project uses git-flow to improve cooperation during the development.
For each feature, you have to create a new git flow feature branch.