Django project for web experiences
rigwild aa7b785488 Update `results.js` | il y a 5 ans | |
---|---|---|
ThesisWebExpeDjango | il y a 5 ans | |
expe | il y a 5 ans | |
static | il y a 5 ans | |
.dockerignore | il y a 5 ans | |
.gitignore | il y a 5 ans | |
DOCUMENTATION.md | il y a 5 ans | |
Dockerfile | il y a 5 ans | |
Makefile | il y a 5 ans | |
README.md | il y a 5 ans | |
__init__.py | il y a 5 ans | |
docker-compose.yml | il y a 5 ans | |
manage.py | il y a 5 ans | |
requirements.txt | il y a 5 ans |
Web site which contains experiences 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
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
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 experience results.
Configure your own URL prefix using WEBEXPE_PREFIX_URL
:
WEBEXPE_PREFIX_URL=experience python manage.py runserver
or using docker:
WEBEXPE_PREFIX_URL=experience make deploy
Using custom API base URL using WEB_API_PREFIX_URL
:
WEBEXPE_PREFIX_URL=experience/ WEB_API_PREFIX_URL=expe/api python manage.py runserver
or using docker:
WEBEXPE_PREFIX_URL=experience/ WEB_API_PREFIX_URL=expe/api make deploy
See DOCUMENTATION.md. This documentation explains how to create your own experience.
This project uses git-flow to improve cooperation during the development.
For each feature, you have to create a new git flow feature branch.