Local development for Acrylitec requires no external services and no environment variables. Django’s built-in development server (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/YonAnn99/Acrylitec/llms.txt
Use this file to discover all available pages before exploring further.
runserver) handles request serving, DEBUG = True surfaces full tracebacks in the browser, and the database is a local SQLite file that is created automatically on first migration. You can be up and running in under five minutes with nothing more than Python and a virtual environment.
Auto Database Switching
core/settings.py reads the DATABASE_URL environment variable at startup and branches on whether it is present:
DATABASE_URL is absent (the default in a fresh clone), Django automatically uses db.sqlite3 in the project root. You do not need to create or configure the file — Django creates it during the first migrate run.
Project Layout
Prerequisites
Install all dependencies fromrequirements.txt into a virtual environment:
Running Migrations
Django’s migration system creates and updates the SQLite schema automatically. Runmigrate once before starting the server, and again whenever you pull new migration files:
gestion/migrations/ — including products, materials, cost tabuladors, quotations, and sales — inside db.sqlite3 at the project root.
Creating Initial Data
After migration, create a superuser so you can log in to both the admin panel and the Acrylitec dashboard:/configuracion/ to optionally add the materials catalogue and a cost tabulador. These seed records are required before generating quotations.
Starting the Development Server
http://127.0.0.1:8000/ by default. The server automatically reloads when Python source files change. Template edits take effect on the next page refresh with no restart needed.
Media Files
Product photos uploaded through the product form are stored underMEDIA_ROOT:
DEBUG = True, Django’s development server serves the media/ directory through the URL patterns added by django.conf.urls.static.static(). No additional configuration is needed locally — uploaded files appear immediately at /media/<filename>.
Static Files
WhiteNoise (whitenoise.middleware.WhiteNoiseMiddleware) is included in the middleware stack and serves static assets in all environments. In local development the STATICFILES_DIRS setting tells Django where to find source assets:
collectstatic locally — runserver resolves static files from gestion/static/ directly. Run collectstatic only when preparing a production build.