Search code examples
pythondjangogitgitignore

What files/directories belong in a django repo?


So I have been working with a Django tutorial on a Windows Machine and now I'm trying to push that code onto Github. This is what my upper level directories look like:

Envs/
    myproject/
        Include/
            ...
        Lib/
            ...
        Scripts/
            ...
        tcl/
            ...
        pip-selfcheck.json
    mysite/
        polls/
            ...
        mysite/
            ...
        db.sqlite3
        manage.py

What directories should I be adding to the repo so that I could pull the repo from another Django-installed machine and be able to run the code? Which directory should be the root for my repo?


Solution

  • Github contains a set of gitignore files at https://github.com/github/gitignore. Have a look at the python one which includes django stuff https://github.com/github/gitignore/blob/master/Python.gitignore#L53

    also, about gitignore: https://git-scm.com/docs/gitignore