Both python and virtualenv are already installed
- Create a virtual environment:
virtualenv venv;source venv/bin/activate. - Install requirements:
pip install -r requirements.txt. - Create a project:
django-admin.py startproject project;cd project - Link the project (TODO: add a setup.py):
ln -s /path/to/firefox-profilemaker profilemaker. - Edit
project/settings.py(from the venvproject/project/settings.py)INSTALLED_APPS: Add'profilemaker', 'bootstrap3', 'jquery',
- Edit
project/urls.pyand replace by:
from django.conf.urls import include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
url(r'', include("profilemaker.urls")),
]
urlpatterns += staticfiles_urlpatterns()- Init db with
./manage.py migrate - Start with
./manage.py runserver - Optional: To avoid using bootstrap from a CDN add:
BOOTSTRAP3 = {'base_url': '/static/bootstrap/'}(and install bootstrap into theSTATIC_ROOT)
⚠️ Installation will removevenv&projectforlders
- Install the environment:
make install- Manually edit
project/settings.py(as mentionned during the install)
- Manually edit
- Run the server:
make run - Clean the project:
make remove
make build: build the docker imagemake up: run the containermake down: stop the containermake shell: open a shell on the running container
ℹ️ The addons should be placed in the
extensionsfolder as well