This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{=form.custom.begin}} <!-- Aqui é a chamada para iniciar o formulário personalizado --> | |
<!-- Email --> | |
{{ form.elements('#auth_user_email')[0] ['_placeholder'] = "Email" }} <!-- para criar um atributo de um elemento no html, acesso pela sua ID, e a chamada para criar o atributo é preceedido de "_" --> | |
{{ form.elements('#auth_user_email')[0] ['_type'] = "email" }} | |
{{=form.custom.widget.email}} <!-- aqui eu insiro o campo customizado no html --> | |
<!-- Senha --> | |
{{ form.elements('#auth_user_password')[0] ['_placeholder'] = "Senha" }} <!-- mesma coisa do elemento anterior --> | |
{{=form.custom.widget.password}} <!-- aqui eu insiro o campo customizado no html --> | |
<div class="remember"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - Baixe o SDK do GAE para Python pro seu sistema operacional e descompacte em alguma pasta. | |
https://developers.google.com/appengine/downloads?hl=pt-BR#Google_App_Engine_SDK_for_Python | |
2 - Baixe o Web2py (http://www.web2py.com/examples/static/web2py_src.zip) e descompacte. | |
Agora você possui as pastas web2py e google_appengine. | |
3 - Registre seu novo app no Google em https://appengine.google.com/ e dê o nome do seu app (exemplo w2papp) | |
4 - Dentro da pasta web2py renomeie o arquivo app.example.yaml para app.yaml | |
Edite a primeira linha em project/web2py/app.yaml e em "application" mude "web2py" para o nome do seu app (nesse exemplo é 'w2papp') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "setting up apache modules" | |
# "=========================" | |
# a2enmod wsgi | |
# "rewriting your apache config file to use mod_wsgi" | |
# "=================================================" | |
NameVirtualHost *:80 | |
NameVirtualHost *:443 | |
# If the WSGIDaemonProcess directive is specified outside of all virtual |