2

I have a Django reusable app, and I am trying to distribute all the static content (html templates etc). After some googling I found out about MANIFEST.in files here.

I found a similar project here that I used for reference:

recursive-include allauth *.html *.txt *.xml *.po *.mo *.js

Here is the contents of my MANIFEST.in: recursive-include auth_backend *.html *.scss *.css *.jpg *.png *.js

I pushed it to Pypi and installed, but there are no static files. Here is the source.

What am I doing wrong?

Update: If I download the package as a zip file straight from pypi the templates are included, so it seems the problem is now with pip install...

Lee
  • 8,354
  • 14
  • 55
  • 90

1 Answers1

3

The answer is here https://stackoverflow.com/a/3597263/818951. What to distribute and what to install are done separate config steps.

I needed to include the following setting: include_package_data=True

to my setup.py file

Community
  • 1
  • 1
Lee
  • 8,354
  • 14
  • 55
  • 90