NWHACKS 2025, Next Tea Me
- Python 3.8 or higher
- pip (Python package installer)
- virtualenv or venv
- Clone the repository:
git clone <your-repository-url>
cd <project-name>- Create and activate virtual environment:
Windows:
python -m venv venv
venv\Scripts\activateMacOS/Linux:
python -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
- Copy
.env.exampleto.env - Update the values in
.envwith your configuration
- Start the development server:
python manage.py runserver- Open your browser and navigate to:
- Main site: http://127.0.0.1:8000/
- Admin panel: http://127.0.0.1:8000/admin/
- Create a new app in the
appsdirectory:
python manage.py startapp app_name apps/app_name- Add the app to
INSTALLED_APPSinconfig/settings/base.py:
INSTALLED_APPS = [
...
'apps.app_name',
]- Update
.envwith production settings - Collect static files:
python manage.py collectstatic- Set
DEBUG=Falsein production - Configure your web server (e.g., Nginx, Apache)