project

Simple password validator using regex

Simple password validator using regex Question: As my first Python project, I am trying to create a program that will have you enter a password and check if it meets the requirements using regex. The password I used, "Apples20!", prompted the program to say that I was missing a special character, even though I have …

Total answers: 1

Why is my python file not working outside of VS Code?

Why is my python file not working outside of VS Code? Question: I’m trying to run a python script as an executable and when I open it, the first input comes up and it just closes after any input. I tried running the .exe file, the .py file and both have this result. Here’s a …

Total answers: 1

Django ViewSet ModuleNotFoundError: No module named 'project name'

Django ViewSet ModuleNotFoundError: No module named 'project name' Question: I’m trying to use the ModelViewSet to display Users, but for some reason Django does not seem to like the UserViewSet import in project/urls.py. Seems like a pretty silly error, but I’ve been stuck on this for a while and it’s frustrating. I don’t have any …

Total answers: 2

Should I commit /bin directory when working with virtualenv?

Should I commit /bin directory when working with virtualenv? Question: I am starting my first actual python project. I follow “Learn Python the Hard Way” to make an initial Python skeleton and I am using virtualenv too. Now I want to use git to do the version control. According to some previous questions in SO, …

Total answers: 2

How do I import/add an existing Python file to a PyCharm project?

How do I import/add an existing Python file to a PyCharm project? Question: How do I import/add an existing Python file to a PyCharm project? Asked By: LostMohican || Source Answers: I’m not sure if I get what you want, but there’s way you can add existing source into project: File -> Settings -> Project …

Total answers: 5

Where in a virtualenv does the custom code go?

Where in a virtualenv does the custom code go? Question: What sort of directory structure should one follow when using virtualenv? For instance, if I were building a WSGI application and created a virtualenv called foobar I would start with a directory structure like: /foobar /bin {activate, activate.py, easy_install, python} /include {python2.6/…} /lib {python2.6/…} Once …

Total answers: 4