aaaab190da32e1b0e86a59450bb4129742cd2bd2
- Event model: added is_featured, is_top_event BooleanFields - Migration 0007 applied to DB - EventForm: checkboxes for both new fields - EventAdmin: list_display, list_editable, list_filter for both flags - FeaturedEventsAPI: POST /api/events/featured-events/ -> is_featured=True events - TopEventsAPI: POST /api/events/top-events/ -> is_top_event=True events
Eventify - Django
This repository contains a production-oriented Django project skeleton for the Eventify application.
Features
- Custom
Usermodel - EventType (categories), Event, EventImages models
- CRUD for EventType, Event, and Users
- Bootstrap-based templates and navigation
- Settings prepared to use environment variables for production
Quick start (development)
- Create a virtualenv and activate it
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Run migrations and create superuser
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Production notes
- Set
DJANGO_SECRET_KEY,DJANGO_DEBUG, andDJANGO_ALLOWED_HOSTSenvironment variables - Collect static files with
python manage.py collectstatic - Serve via uWSGI/gunicorn + nginx or any WSGI server
Description
Languages
Python
91.8%
HTML
8.1%