Skip to content

Instantly share code, notes, and snippets.

View mapapage's full-sized avatar

Marilena Papageorgiou mapapage

View GitHub Profile
@mapapage
mapapage / README
Last active January 6, 2022 21:42
This script helps you migrate the source+translation files from one project to another
Run the script providing the slug of the old project and the slug of the new project.
Example:
Old project slug: 'old'
New project slug: 'new'
python migrate_project.py old new
After running the command you will be asked for your Transifex username and password.
@mapapage
mapapage / forms.py
Created July 6, 2012 10:26 — forked from maraujop/forms.py
django-crispy-forms bootstrap form example
# -*- coding: utf-8 -*-
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field
from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions
class MessageForm(forms.Form):
text_input = forms.CharField()