Created
July 11, 2011 23:45
-
-
Save pydanny/1077069 to your computer and use it in GitHub Desktop.
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
| from django.template import Context | |
| from django.template.loader import get_template | |
| def model_generator(model_names): | |
| template = get_template('startcbv/models.py') | |
| c = Context({'model_names': model_names}) | |
| return template.render(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment