-
Notifications
You must be signed in to change notification settings - Fork 2
Feat: Hackathon Django Plugin #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feat: Hackathon Django Plugin #5
Conversation
…and base HTML template
…ory handling and data refresh
…templates - Created initial plugin structure with __init__.py - Implemented Hackathon, HackathonPrize, and HackathonSponsor models - Developed forms for Hackathon, HackathonSponsor, and HackathonPrize - Added views for listing, creating, and updating hackathons - Implemented repository management features including refreshing data from GitHub - Created base HTML template for consistent layout - Defined URL patterns for hackathon-related views
…thon and GitHubIssue models
…ibuting guidelines.
… tag instead of inline template generation.
… with Bootstrap and Font Awesome
…ies for Chart.js and Font Awesome
Pritz395
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very Minor issues but can cause crash:
1 The GitHubIssue model has no state field
2 Wrong field name (views.py line 781), using url= but model expects github_url=
3 Missing contributor relationship (views.py line 748), the Repository has no contributor field
4 Admin references non-existent fields (admin.py lines 42-55) , fieldsets include theme, location, is_online, etc. that don't exist in Hackathon model
5 Not a blocker but too many debug prints all over the repo, could probably fix this
Fixes: #4
Quick Testing Guide for BLT Hackathon Plugin
Test video
2025-11-27.00-00-16_compressed.mp4
This guide will help you quickly test the Django Hackathon plugin in under 5 minutes.
Prerequisites
Step 1: Create a Test Django Project
Step 2: Install the Hackathon Plugin
# Install from TestPyPI pip install -i https://test.pypi.org/simple/ blt-hackathon==0.1.1Latest Version: Check https://test.pypi.org/project/blt-hackathon for the newest version.
Step 3: Configure Django Settings
Edit
testproject/settings.py:Step 4: Configure URLs
Edit
testproject/urls.py:Step 5: Create Base Template (Required for Charts)
Create directory and file:
testproject/templates/base.htmlCreate
templates/base.html:Update
testproject/settings.pyto include templates directory:Step 6: Run Migrations and Create Superuser
Step 7: Start Server and Test
# Start development server python manage.py runserverStep 8: Access and Test Features
Quick Test Checklist:
Visit Hackathon List: http://127.0.0.1:8000/hackathons/
Create Test Hackathon:
Test Detail Page:
Test Admin Interface: http://127.0.0.1:8000/admin/
Success Indicators
Troubleshooting
Charts Not Displaying?
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>{% block scripts %}{% endblock %}Icons Not Displaying?
<head>section500 Server Errors?
python manage.py migrateblt_hackathonis inINSTALLED_APPSNext Steps
Total setup time: ~5 minutes