`easy_install -m packagename` removes the file from your .pth file (and therefore removes it from your python path), then remove .egg file or directory from your site-packages, or dist-packages directory.
Thx to PJE via PL
Friday, August 28, 2009
Wednesday, August 26, 2009
How to revert a file or directory in svn.
Revert a file to revision 854
svn merge -c -854 l3toks.dtx
Grabbed from stack overflow.
Revert a directory to revision 854
svn merge -rHEAD:854 .
Grabbed from some code monkey.
svn merge -c -854 l3toks.dtx
Grabbed from stack overflow.
Revert a directory to revision 854
svn merge -rHEAD:854 .
Grabbed from some code monkey.
Friday, August 7, 2009
Difficult errors to debug in Django for Django noobs..
Got this as an debug template page today:
After some digging around and frustration, I finally figured it out. I had created a new app for my project called `newsbin`, then created a model and views and set the views up in urls.py, but I had not yet added `newsbin` to the installed apps section of settings.py. Thus it gave the above error.
TemplateSyntaxError at /admin/
Caught an exception while rendering: name 'User' is not defined
After some digging around and frustration, I finally figured it out. I had created a new app for my project called `newsbin`, then created a model and views and set the views up in urls.py, but I had not yet added `newsbin` to the installed apps section of settings.py. Thus it gave the above error.
Subscribe to:
Posts (Atom)