Dependences and Archetype
- Instalar e configurar o Java no OS.
- Instalar e configurar o Maven no OS.
- Instalar e configurar o Tomcat no OS.
- Configurar usuário no Tomcat.
- Fazer *deploy do Proble no Tomcat.
#coding: utf-8 | |
# admin.py | |
from django import forms | |
from models import Pais | |
class PaisForm(forms.ModelForm): | |
class Meta: | |
model = Pais | |
fields = ['nome', 'sigla'] |
" Configuration file for vim | |
set modelines=0 " CVE-2007-2438 | |
" Normally we use vim-extensions. If you want true vi-compatibility | |
" remove change the following statements | |
set nocompatible " Use Vim defaults instead of 100% vi compatibility | |
set backspace=2 " more powerful backspacing | |
set ai " auto indenting | |
set history=5000 " keep 100 lines of history |
# HEAD detached from 6c3cfe3 | |
# You are currently rebasing branch 'pelican' on '6c3cfe3'. | |
# (all conflicts fixed: run "git rebase --continue") | |
# | |
nothing to commit, working directory clean |
#! /usr/bin/env python | |
import urllib2 | |
import json | |
resp = urllib2.urlopen('http://worldcup.sfg.io/matches').read() | |
for jogo in json.loads(resp.decode('utf-8')): | |
if jogo['status'] == 'completed': | |
print "{0} {1} x {2} {3}".format(jogo['home_team']['country'], | |
jogo['home_team']['goals'], | |
jogo['away_team']['country'], |
server { | |
listen 8000; | |
location /static/ { | |
autoindex on; | |
alias /deploy/managercon/system/static/; | |
expires 30d; | |
} | |
location / { |
<settings> | |
<servers> | |
<server> | |
<id>nexus</id> | |
<username>admin</username> | |
<password>admin123</password> | |
</server> | |
</servers> | |
<mirrors> | |
<mirror> |