I am packing my first Django application and I want to leave the settings_local.py file from the egg. Ideally, I'm looking for a way to just make everything in my .gitignore file also excluded from the egg.
I tried the following options in the MANIFEST.in file (one at a time trying to create an egg):
prune project_name settings_local.py
prune project_name/settings_local.py
exclude project_name settings_local.py
exclude project_name/settings_local.py
I also tried adding the following line to the startup.py file (as recommended by a friend):
exclude_package_data= {'': 'settings_local.py'},
Any suggestions would be much appreciated.
source
share