This is a simple django application to dynamically generate mozilla branded business cards for mozilla representatives. The cards are generated using personal data available on mozilla wiki
You need to have system wide installed
- python (!)
- pip
- virtualenv
- pycairo (for svg2pdf convertion)
- pyrsvg (for svg2pdf convertion)
- the fonts you will be using (for svg2pdf convertion)
- ~$ git clone git://github.com/glogiotatidis/mozilla-cards.git
- ~$ cd mozilla-cards
- ~$ git checkout dev
- ~$ ./scripts/build-environment.sh
- ~$ source env/bin/activate
- (env)~$ cp local_settings.example.py local_settings.py
- edit local_settings.py
- (env)~$ python manage.py syncdb
- (env)~$ python manage.py migrate cardmanager
- activate the environment, if not already activated
~$ source ./env/bin/activate
- runserver
(env)~$ python manage.py runsever
- Login to admin and upload a template
http://127.0.0.1:8000/admin/cardmanager/template/add/
You can you the demo templates from ./templates directory
- Go to frontend
and order your cards by typing your email
Use your favorite SVG editing application, like Inkscape, to create the business card you want. When design is done, you need to xml edit the svg: For each field that is dynamic you need to change the id attribute to match a field name of Remobox template, like pmail, twitter, name etc.
Inkscape comes with an editor, or you can opt to use your favorite text editor.
When done, upload the template to the application using the administration interface and make sure that the new template is marked as default.
Giorgos Logiotatidis <glogiotatidis at sealabs.net>