Last active
August 17, 2016 14:17
-
-
Save TaurusOlson/1c4632b0496dec9b79599a2f7386ddfb to your computer and use it in GitHub Desktop.
A .projections.json file adapted to Django applications
This file contains 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
{ | |
"../*.py": { | |
"type": "my_project" | |
}, | |
"../my_project/settings.py": { | |
"type": "settings" | |
}, | |
"templates/my_app/*.html": { | |
"type": "templates", | |
"alternate": "views.py" | |
}, | |
"views.py": { | |
"type": "views", | |
"alternate": "urls.py" | |
}, | |
"models.py": { | |
"type": "models", | |
"alternate": "views.py" | |
}, | |
"tests.py": { | |
"type": "tests", | |
"alternate": "views.py" | |
}, | |
"urls.py": { | |
"type": "urls", | |
"alternate": "views.py" | |
}, | |
"forms.py": { | |
"type": "forms", | |
"alternate": "models.py" | |
}, | |
"utils.py": { | |
"type": "utils", | |
"alternate": "views.py" | |
}, | |
"static/my_app/*": { | |
"type": "static" | |
}, | |
"management/commands/*": { | |
"type": "commands" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to use this file within Django, change
my_project
by your project name (ex:mysite
) andmy_app
by your application name (ex:polls
):then copy
.projections.json
to yourmysite/polls
directory.