Re: Django project and SVN loads older code versions

17 views
Skip to first unread message

Leonardo Giordani

unread,
Sep 25, 2012, 8:17:46 AM9/25/12
to django...@googlegroups.com
Let me understand: you commit code to a SVN repository and put in in production? Did you restart Apache?

Leo

2012/9/25 Gjorge Karakabakov <gorg...@gmail.com>
I can't explain it but Django + SVN for code version control loads older buggy versions of files every time i hit refresh on the web site i'm working on.

So if I changed something in a file 2 days ago (made lots of commits since then) it will show up now. Next time I hit refresh another change 1 day ago appears.

I'm using: Django 1.4, Apache, SVN

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4UNbERN1NxoJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Leonardo Giordani

Joris

unread,
Sep 25, 2012, 10:50:37 AM9/25/12
to django...@googlegroups.com
The reason why you are seeing this behaviour is because apache caches the compiled python scripts. As apache has multiple threads, some still carry old information, and some new. As HTTP is stateless, this is why you get inconsistent behaviour. The situation is resolved by either reloading apache or by using the testing server. The behaviour you describe cannot be a result of SVN, as SVN is not affected upon refresh. 

jb

Op dinsdag 25 september 2012 14:19:04 UTC+2 schreef Leo het volgende:

Gjorge Karakabakov

unread,
Oct 1, 2012, 4:16:07 AM10/1/12
to django...@googlegroups.com
I've solved this problem by removing all .pyc files in all the folders. Here is the official answer to my question that worked on stackoverflow: http://stackoverflow.com/questions/12578602/django-project-and-svn-loads-older-code-versions
Reply all
Reply to author
Forward
0 new messages