Convert your Django application to a static website that can be hosted anywhere without requiring Python or Django.
pip install requests beautifulsoup4python manage.py runserverIn a new terminal window:
# Basic version (predefined pages only)
python generate_static.py
# Advanced version (discovers all pages automatically)
python generate_static_advanced.pyThe static site will be generated in the static_site/ directory:
- ✅ Crawls predefined important pages
- ✅ Downloads all media files
- ✅ Simple and fast
- ✅ Good for testing
- ✅ Automatically discovers all pages from CSV data
- ✅ Crawls every individual sculpture and jewelry item
- ✅ Generates comprehensive site index
- ✅ Better error handling and progress reporting
- ✅ Complete static site with all content
Once generated, you can host the static site GitHub Pages.
# After generating static site
cd static_site
git init
git add .
git commit -m "Static site"
git branch -M gh-pages
git remote add origin YOUR_REPO_URL
git push -u origin gh-pagesFor static sites, you can use:
- Formspree: External form service
- EmailJS: Client-side email sending
- Google Forms: Embed Google Forms
When you make changes:
- Update CSV data or templates
- Start Django server:
python manage.py runserver - Regenerate:
python generate_static_advanced.py - Upload new
static_site/contents to your host
- Make sure Django server is running on http://localhost:8000
- Check that all required packages are installed
- Some URLs might not exist - this is normal
- Check CSV data for invalid
key_namevalues
- Ensure
media/directory exists with images - Check file permissions
- Static site uses relative paths
- Test locally by opening
static_site/index.html
- The advanced generator can create 100+ pages
- Large CSV files will generate more pages
- Generation takes 1-2 minutes for full site
- Use basic generator for quick testing