This guide walks you through getting a fully functional local copy of the NAMETS Website running on your machine. You will clone the repository, create a Python virtual environment, install all dependencies fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Muhammadbugaje/NAMETS_Website/llms.txt
Use this file to discover all available pages before exploring further.
requirements.txt, configure the required environment variables, run database migrations, create an admin superuser, and launch the Django development server — all in under ten minutes.
Clone the Repository
Clone the NAMETS Website repository from GitHub and navigate into the project directory.
Create and Activate a Virtual Environment
Create an isolated Python virtual environment and activate it to keep dependencies scoped to this project.On Windows, activate with:
Install Dependencies
Install all required Python packages from the project’s
requirements.txt. This includes Django 6.0, Django REST Framework, Cloudinary, WhiteNoise, Gunicorn, and all other dependencies.Configure Environment Variables
Create a
.env file in the project root and populate it with the required environment variables. The application reads these at startup via python-dotenv.| Variable | Description |
|---|---|
SECRET_KEY | Django secret key — use a long random string in production |
DEBUG | Set True for local development; never True in production |
DATABASE_URL | Full PostgreSQL connection string (Neon recommended) |
CLOUDINARY_CLOUD_NAME | Your Cloudinary account cloud name |
CLOUDINARY_API_KEY | Cloudinary API key for media uploads |
CLOUDINARY_API_SECRET | Cloudinary API secret |
N8N_WEBHOOK_URL | Webhook endpoint URL for n8n event automation |
WEBHOOK_SECRET | Shared secret to validate incoming webhook requests |
N8N_API_TOKEN | Bearer token for authenticating n8n API calls |
ALLOWED_HOSTS | Comma-separated list of allowed hostnames |
Run Database Migrations
Apply all Django database migrations to initialize the schema across all installed apps (
core, communications, events, academics, lostfound, community, gallery, namets_notifications, api).Create a Superuser
Create an admin superuser account. You will use these credentials to log in to the Django admin panel.Follow the prompts to set a username, email address, and password.
Collect Static Files
Gather all static assets (CSS, JavaScript, images) into the
staticfiles/ directory so WhiteNoise can serve them correctly.Once the server is running, open http://127.0.0.1:8000 in your browser to view the public-facing site. Access the admin panel at http://127.0.0.1:8000/admin/ using the superuser credentials you created in Step 6.