[Django]-Excluding a single project file from an SVN repository

4👍

In TortoiseSVN, when you try to commit your files, in the file list dialog, right click the file and look for the Ignore option. You can ignore by complete filename or extension.

If the file is already in the repository, and you want to remove it from there and ignore it, you can simply right-click the file and in the TortoiseSVN menu look for the ‘Delete and add to ignore list’ option.

2👍

You’ll be looking for the svn:ignore property, which tells subversion to not version files matching a pattern or patterns you specify.

There’s some guidance on using it with TortoiseSVN at:

http://arcware.net/tortoisesvn-global-ignore-pattern-vs-svn-ignore/

2👍

👤Stefan

2👍

The typical solution is to do what bgever said and ignore the settings file itself, and then commit a file with example values, something like settings.py.example. That file should only be updated when you add or remove settings. When deploying, you’d copy that to settings.py and edit the values.

👤Rytmis

Leave a comment