aquilesC / pythonpro-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Pro Website

Source code of website www.python.pro.br

Build Status codecov Code Health Updates Python 3

It's developed using Django

How to install in locally (supposing you have git and python >= 3.7 installed):

git clone https://github.com/pythonprobr/pythonpro-website.git
cd pythonpro-website
cp contrib/env-sample .env
python -m pip install pipenv
pipenv install -d

If 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 migrate

You can also create a user:

python manage.py createsuperuser

To run server locally (with virtualenv activated):

python manager.py runserver

If you want populate the database with some content run:

python manage.py loaddata pythonpro_contents

To tun the tests:

pytest pythonpro

If you want run your amb dev using postgres, you can install docker and run:

docker-compose docker-compose.yml up 

and 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!

About

License:GNU Affero General Public License v3.0


Languages

Language:Python 41.9%Language:HTML 31.1%Language:JavaScript 26.7%Language:CSS 0.4%