Set up · 01
Local installation
A clean local install starts with the release ZIP from your purchase, then takes a Python environment, a database, one seed command and a staff account. This page covers the supported path and the checks that prove it worked.
Get the release package
Perfumz is sold as a downloadable source release. Buyers do not receive access to a private Git repository, and the product does not require a Git remote to install or update.
| Edition | Where to buy | Where to download | What you receive |
|---|---|---|---|
| Dakid Arts Regular | dakidarts.com/shop/perfumz | The purchase confirmation and Dashboard → Licenses → Official releases | Release ZIP, license key and this manual. |
| Codester Regular | Codester | The Codester purchase confirmation and Downloads page | Release ZIP and this manual. |
Download the ZIP to your workstation, keep the SHA-256 sidecar next to it, and verify the archive before uploading or extracting it. When your edition includes a license key, treat it as a secret.
The private source repository used to maintain Perfumz is not part of the purchase. The marketplace ZIP is the supported installation source.
Prerequisites
- Python 3.11–3.14. The project is tested on Python 3.14 and supports the 3.11–3.14 range.
- The purchased Perfumz release ZIP. No Git client, repository invitation or developer checkout is required.
- A database. SQLite is the zero-friction default; PostgreSQL is supported locally and required for the VPS deployment.
- Build tools for native packages:
python3-dev,libpq-devandbuild-essentialon Debian/Ubuntu. On macOS, the Xcode command-line tools are enough.
SQLite is fine for local development. Use PostgreSQL for production and for any work that needs production parity.
Extract the release and create the environment
unzip perfumz-<edition>-<version>.zip
cd perfumz
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
The archive contains a top-level perfumz/ directory. The runtime requirements include Django 5.2, Pillow, cryptography, pywebpush, Gunicorn and the PostgreSQL adapter. requirements-dev.txt adds the local QA stack and pytest tooling.
Create a local environment
cp .env.example .env
The base settings load .env from the application root. Real environment variables always win, so systemd can override the file in production without editing it. For a first local boot, change only the values that are intentionally blank or environment-specific.
| Variable | Local value | Notes |
|---|---|---|
DJANGO_SECRET_KEY | A long random string | Never reuse the production secret. |
DJANGO_DEBUG | 1 | Production settings force DEBUG=False regardless. |
POSTGRES_DB | Leave blank for SQLite | Set the PostgreSQL values to use PostgreSQL locally. |
SITE_URL | http://127.0.0.1:8000 | Canonical origin for emails and affiliate links. |
SETUP_ENABLED | 1 in debug | Browser first-run wizard; turn off after setup. |
SHORTLINK_DOMAIN | Leave blank | Use /i/<code>/ locally. |
DJANGO_EMAIL_BACKEND | SMTP or console | The settings default to SMTP; use the console backend for offline work. |
Create the schema and content
- Apply migrations
python manage.py migrateCreates the custom user model, catalog, commerce, CMS, marketing, affiliate, support, security and notification tables.
- Run the first-run installer
python manage.py setup_storeThe interactive installer sets the store name, contact details, owner account and optional demo content. It creates the first superuser, marks the setup complete and prints an environment report. Use
setup_store --checkat any time for a read-only readiness check. - Or use the browser wizard
SETUP_ENABLED=1 python manage.py runserverOpen
http://127.0.0.1:8000/setup/while the store is uncompleted. If a superuser already exists, sign in first. TurnSETUP_ENABLEDoff after setup. - Optional demo content
python manage.py seed_perfumz --pages-only python manage.py seed_perfumz --catalogue-onlyThe installer can add both for you.
--pages-onlycreates the built-in CMS pages without commerce data.--catalogue-onlycreates the five fragrances, collections, bundles, reviews, images and shipping methods without demo users, customers or orders. - Refresh staff roles
python manage.py sync_staff_rolesRe-applies the curated permission sets to every staff profile.
Start the development server
python manage.py runserver 127.0.0.1:8000| Surface | Local URL | Purpose |
|---|---|---|
| Public storefront | http://127.0.0.1:8000/ | Home, shop, collections, product pages, journal, cart and checkout. |
| Staff dashboard | http://127.0.0.1:8000/dashboard/ | Orders, catalog, content, marketing, analytics and settings. |
| Content Studio | http://127.0.0.1:8000/dashboard/editor/ | Visual section and theme editor. |
| Django admin | http://127.0.0.1:8000/dashboard/manage/ | Model-level fallback administration. |
| Affiliate programme | http://127.0.0.1:8000/affiliates/ | Public programme page and terms. |
| Documentation | http://127.0.0.1:8000/documentations/ | This manual. |
| Health | http://127.0.0.1:8000/health/ready/ | Database and cache readiness. |
Verify the install
python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py test
.venv/bin/python scripts/audit_ui_translations.pyThe full suite covers the storefront, dashboard, Studio, commerce, affiliates, email studio, i18n and deployment checks. The translation audit reports zero residual English UI chunks for French, Spanish, Portuguese and Arabic.
Common first-boot failures
| Symptom | Cause | Fix |
|---|---|---|
ModuleNotFoundError: psycopg | Requirements were not installed in the active environment. | source .venv/bin/activate then pip install -r requirements.txt. |
connection refused on 5432 | PostgreSQL is not running or the host/port is wrong. | Start PostgreSQL and verify POSTGRES_HOST/POSTGRES_PORT. |
password authentication failed | The role password does not match .env. | Reset the role password or correct POSTGRES_PASSWORD. |
| Port 8000 already in use | Another server is running. | Stop it or use runserver 127.0.0.1:8010. |
| Static CSS is missing | Development serves static automatically; production needs Nginx or collectstatic. | Run python manage.py collectstatic and check the Nginx alias. |
| Email does not arrive | No SMTP host or the console backend is active. | Check the runserver output or configure SMTP in .env. |