Django Project and SVN Download Older Code Versions

I canโ€™t explain this, but Django + SVN, for version control of the code, loads the old buggy versions of the files every time I click the update on the website I'm working on.

So, if I changed something in the file 2 days ago (since then I made a lot of commits), it will appear now. The next time I click update, another change will appear from a day ago.

I use: Django 1.4, Apache, SVN

0
django svn
Sep 25 '12 at 8:00
source share
1 answer

It is not related to SVN, I am using git and have the same problem. Apache will cache a specific part of your site.

Delete all *.pyc files and restart apache.

I have several (Ubuntu) aliases created to help me do this.

 # Services # Restart apache2 alias apre='sudo service apache2 graceful' # Delete files # Delete all *.pyc files alias pydel='find . -type f -name "*.pyc" -exec rm -f {} \;' # Combinations # Delete all *.pyc files then restart apache2 alias pyre='pydel && apre' 

Alternatively, use runserver , as this will lead to changes when saving the file in your Django project.

+1
Sep 25 '12 at 8:05
source share



All Articles