0

I am a python newbie. Can anybody tell me how I will be embed an open-source project in my django project for GAE? Let's say I would like to embed Python markdown. Can anybody show me a direction? Can I just copy and paste my source into my django folder and modify something in the settings.py to get it done?

The reason for embedding the source is that GAE does not allow egg files running in it.

Winston Chen
  • 6,799
  • 12
  • 52
  • 81

4 Answers4

3

Simply unzip the contents of the folder inside the .egg archive which is not named EGG-INFO to your application folder.

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
2

Obviously you are inteding to use the python version of appengine, for every external library that you want to deploy with your application, except from importing in my own experience when I recently had to use external libraries they weren't working in the online version unless I had them to the root folder of my app.

topless
  • 8,069
  • 11
  • 57
  • 86
1

Surely you can place the module in the python-path and import it wherever you need in your django code? Or is this not what you want?

theheadofabroom
  • 20,639
  • 5
  • 33
  • 65
1

Take a look at Tipfy and see how they handle dependencies. You can probably use the same techniques in Django.

http://www.tipfy.org/

Pickels
  • 33,902
  • 26
  • 118
  • 178