Legacy Source code for the Try IT! website.
This code is no longer used in production. Current repositories used are:
TryIT! Frontend TryIT! Backend
No support will be provided for this repository in any way, shape or form.
Official website: https://congresotryit.es/
- Python 3.5.3
- Django 2.1.7
- django-backup 1.0.1
- djangorestframework 3.7.1
- gunicorn 19.7.1
- olefile 0.44
- Pillow 5.4.1
- pytz 2018.7
- reportlab 3.4.0
- pip 19.0.1
1. Install python 3.5 and pip
$ sudo apt install python3.5
$ sudo apt install python-pipAlso upgrade pip if necessary
$ pip install --upgrade pip2. Create a virtual environment with python 3.5
First install virtualenvwrapper
$ sudo apt install virtualenvwrapperThen create a virtual environment
$ mkvirtualenv --python=/usr/bin/python3.5 tryItIf it is not automatically activated then, activate it
$ workon tryIt3. Install the requirements
$ pip install -r requirements.txt1. Download and install python 3.5 from the official web page
2. Install pip
> py -m pip installAlso upgrade pip if necessary
> py -m pip install --upgrade pip3. Create a virtual environment with python 3.5
First install virtualenv
> py -m pip install --user virtualenvThen create the virtual environment
> py -m virtualenv tryItIf it is not automatically activated, then activate it
> .\tryIt\Scripts\activate4. Install the requirements
> pip install -r requirements.txt1. Install Homebrew if it is not installed
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"2. Install Python 3
brew install python33. Install virtualEnv
sudo pip install virtualenv4. Create a virtualenv
virtualenv tryIt -p python3If it is not automatically activated, then activate it
source triIt/bin/activate5. Install requirements
pip install -r requirements.txtInstall the docker package
$ sudo apt install -y docker-engineFirst of all you need to execute this commands to set up the DB.
$ python manage.py makemigrations
$ python manage.py migrateAfter doing the previous step, you must create a super user for the DB
$ python manage.py createsuperuserOnce you have the super user created, go to http://127.0.0.1:8000/admin/, introduce the user and password and you can start creating the items for the DB.
With your virtualenv activated, you can run python manage.py runserver or ./manage.py runserver if it has execute permission.
Then you can go to the url http://127.0.0.1:8000.
With your virtualenv activated, you can run python manage.py runserver.
Then you can go to the url http://127.0.0.1:8000.
With your virtualenv activated, you can run python manage.py runserver.
Then you can go to the url http://127.0.0.1:8000.
1. Move to the docker-dev directory
$ cd docker-dev2. Build the dev image
$ docker build -t tryit-web-dev .3. Run this compose
$ docker-compose up -d4. Run bash in the image
$ docker-compose exec web bash5. Run Django
$ python manage.py runserver 0.0.0.0:8000Then you can go to the url http://0.0.0.0:8000.