Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.94 KB

README.org

File metadata and controls

68 lines (48 loc) · 1.94 KB

Mozilla Business Card Creator

About

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

Installing

Requirements

You need to have system wide installed

  1. python (!)
  2. pip
  3. virtualenv
  4. pycairo (for svg2pdf convertion)
  5. pyrsvg (for svg2pdf convertion)
  6. the fonts you will be using (for svg2pdf convertion)

Mozilla-cards application

  1. ~$ git clone git://github.com/glogiotatidis/mozilla-cards.git
  2. ~$ cd mozilla-cards
  3. ~$ git checkout dev
  4. ~$ ./scripts/build-environment.sh
  5. ~$ source env/bin/activate
  6. (env)~$ cp local_settings.example.py local_settings.py
  7. edit local_settings.py
  8. (env)~$ python manage.py syncdb
  9. (env)~$ python manage.py migrate cardmanager

Using

  1. activate the environment, if not already activated

    ~$ source ./env/bin/activate

  2. runserver

    (env)~$ python manage.py runsever

  3. 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

  4. Go to frontend

    http://127.0.0.1:8000

    and order your cards by typing your email

Creating templates

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.

Contact

Giorgos Logiotatidis <glogiotatidis at sealabs.net>