Getting Subversion to ignore .pyc files

I’ve been playing around with Django for the last couple of days for a project that I’ve had in mind for a little while. So far its been going quite well and I thought I had better import the project into Subversion. When you run the webserver that comes with Django, it compiles the project files and stores them as .pyc files inside your project directory. Obviously you don’t want these in your Subversion repository. The way to deal with this is to run this command on each folder where you want the files to be ignored:

svn propset svn:ignore "*.pyc" <directory>

Subversion will then ignore any .pyc files that are created while you’re developing your project.

This entry was posted in Django, Tips and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">