Answer the question
In order to leave comments, you need to log in
Git: What should I add to gitignor when working with Django?
Hello
The situation is this: there is a small project (created for educational purposes) in django and there is an environment folder that is located in the project folder. On the one hand, as far as I understand, my environment should not be in Gita and it is added to gitignor, on the other hand, Django itself is located in the environment folder, in which I also made changes (the Users application, for example).
Enlighten me on how to act correctly in such a situation and correct me if I'm wrong? Thank you!
Answer the question
In order to leave comments, you need to log in
Putting anything into the environment folders is a bad idea. For example, your User model can be wonderfully overridden or inherited without touching the django environment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question