Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues running on Windows #7

Closed
john-aws opened this issue Oct 25, 2013 · 2 comments
Closed

Issues running on Windows #7

john-aws opened this issue Oct 25, 2013 · 2 comments

Comments

@john-aws
Copy link

Ran into a couple of issues running this on Windows:

  1. demo/wsgi.py loads activate_this.py from venv/bin/ but it is actually found in venv/scripts/
  2. using the demo UI, you cannot delete uploaded files. In demo/photos/views.py, the call to os.unlink() fails with "The process cannot access the file because it is being used by another process". Basically the uploaded JPG/PNG is locked by the Python process and cannot be deleted. Not sure if that is your demo code, or the underlying jquery file uploader failing to close a file handle, or otherwise unlock the file.
@john-aws
Copy link
Author

Also thought it worth documenting Windows versions of the demo setup and run scripts in case it's helpful to anyone:

setup.cmd:

virtualenv venv
venv\scripts\activate
pip install django
pushd ..
python setup.py install
popd
mkdir media
mkdir static
python manage.py syncdb
python manage.py collectstatic
echo "Setup Complete."

run.cmd:

venv\scripts\activate
python manage.py runserver

@john-aws john-aws reopened this Oct 26, 2013
@Alem
Copy link
Owner

Alem commented Dec 22, 2013

Hello.
Unfortunately, I do not own any machines running Windows so this complicated the investigation of your issue.
I've added the Windows batch files you graciously shared and I suspect the latest commit will resolve the file-locking issue.

Best Regards,
Z.

@Alem Alem closed this as completed Dec 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants