I have a Django app which I need to distribute to other teams for testing, but I don't want to share the code. The structure of a Django project is -
- parentfolder
- djangoproject
- djangoapp
- db.sqlite3
- manage.py
I need to password protect djangoproject
and djangoapp
, because running a Django app requires one to go to the above directory (parentfolder
) and run manage.py
.
All the options I've looked at so far either
Zip the folder and password-protect it - This doesn't work, because once zipped, the Django app doesn't work, since it can't work with zipped folders.
Hide the folder - This obviously doesn't work, since Django can't see them.
I'd like to protect the folders under a password, such that they still remain visible to other applications and also the user. But if the user wants to peer inside the folders, he'd have to enter a password.
.pyc
back to.py