Operations manual

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.

Local developmentFirst boot3 min readReviewed November 2026

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.

EditionWhere to buyWhere to downloadWhat you receive
Dakid Arts Regulardakidarts.com/shop/perfumzThe purchase confirmation and Dashboard → Licenses → Official releasesRelease ZIP, license key and this manual.
Codester RegularCodesterThe Codester purchase confirmation and Downloads pageRelease 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-dev and build-essential on 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.

VariableLocal valueNotes
DJANGO_SECRET_KEYA long random stringNever reuse the production secret.
DJANGO_DEBUG1Production settings force DEBUG=False regardless.
POSTGRES_DBLeave blank for SQLiteSet the PostgreSQL values to use PostgreSQL locally.
SITE_URLhttp://127.0.0.1:8000Canonical origin for emails and affiliate links.
SETUP_ENABLED1 in debugBrowser first-run wizard; turn off after setup.
SHORTLINK_DOMAINLeave blankUse /i/<code>/ locally.
DJANGO_EMAIL_BACKENDSMTP or consoleThe settings default to SMTP; use the console backend for offline work.

Create the schema and content

  1. Apply migrations
    python manage.py migrate

    Creates the custom user model, catalog, commerce, CMS, marketing, affiliate, support, security and notification tables.

  2. Run the first-run installer
    python manage.py setup_store

    The 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 --check at any time for a read-only readiness check.

  3. Or use the browser wizard
    SETUP_ENABLED=1 python manage.py runserver

    Open http://127.0.0.1:8000/setup/ while the store is uncompleted. If a superuser already exists, sign in first. Turn SETUP_ENABLED off after setup.

  4. Optional demo content
    python manage.py seed_perfumz --pages-only
    python manage.py seed_perfumz --catalogue-only

    The installer can add both for you. --pages-only creates the built-in CMS pages without commerce data. --catalogue-only creates the five fragrances, collections, bundles, reviews, images and shipping methods without demo users, customers or orders.

  5. Refresh staff roles
    python manage.py sync_staff_roles

    Re-applies the curated permission sets to every staff profile.

Start the development server

python manage.py runserver 127.0.0.1:8000
SurfaceLocal URLPurpose
Public storefronthttp://127.0.0.1:8000/Home, shop, collections, product pages, journal, cart and checkout.
Staff dashboardhttp://127.0.0.1:8000/dashboard/Orders, catalog, content, marketing, analytics and settings.
Content Studiohttp://127.0.0.1:8000/dashboard/editor/Visual section and theme editor.
Django adminhttp://127.0.0.1:8000/dashboard/manage/Model-level fallback administration.
Affiliate programmehttp://127.0.0.1:8000/affiliates/Public programme page and terms.
Documentationhttp://127.0.0.1:8000/documentations/This manual.
Healthhttp://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.py

The 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

SymptomCauseFix
ModuleNotFoundError: psycopgRequirements were not installed in the active environment.source .venv/bin/activate then pip install -r requirements.txt.
connection refused on 5432PostgreSQL is not running or the host/port is wrong.Start PostgreSQL and verify POSTGRES_HOST/POSTGRES_PORT.
password authentication failedThe role password does not match .env.Reset the role password or correct POSTGRES_PASSWORD.
Port 8000 already in useAnother server is running.Stop it or use runserver 127.0.0.1:8010.
Static CSS is missingDevelopment serves static automatically; production needs Nginx or collectstatic.Run python manage.py collectstatic and check the Nginx alias.
Email does not arriveNo SMTP host or the console backend is active.Check the runserver output or configure SMTP in .env.
Perfumz Operations Manual · English reference · Reviewed November 2026