Source code of website www.python.pro.br
It is been migrated from App Engine using Tekton to Heroku using Django
How to install in locally (supposing you have git and python >= 3.6 installed):
git clone https://github.com/pythonprobr/pythonpro-website.git
cd pythonpro-website
cp contrib/env-sample .env
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txtIf you want use SQLite on your dev environment, please remove DATABASE_URL from .env file. Otherwise fill this value with your database credentials.
You can aply migrations to generate database schema:
python manage.py migrateYou can also create a user:
python manage.py createsuperuserTo run server locally (with virtualenv activated):
python manager.py runserverIf you want populate the database with some content run:
python manage.py loaddata pythonpro_contentsTo tun the tests:
pytest pythonproIf you want run your amb dev using postgres, you can install docker and run:
docker run -p 5432:5432 --env POSTGRES_PASSWORD=pass --name pythonpro-postgres -d postgres:9and add to your .env
DATABASE_URL=postgres://postgres:pass@localhost:5432/postgres#License Details
The AGPL license here cover everything relate to source code but Python Pro logo and Image. So you need to change this data for you own trademark.
Have fun!