Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Setting up a Python app

With Setup Python App you set up a Python application, for example with Django, Flask or FastAPI. Each app gets its own Python version and its own virtual environment (virtualenv), so you install packages per app.

Creating an app

  1. In DirectAdmin, under Extra Features, click Setup Python App.
  2. Click CREATE APPLICATION.
  3. Under Python version (1), choose the version. Choose a current 3 version that your app supports. The default is 2.7, which is outdated.
  4. Under Application root (2), enter the folder for your app, for example apps/myapp.
  5. Under Application URL (3), choose the domain and, if needed, a path.
  6. Under Application startup file (4), enter the startup file, usually passenger_wsgi.py.
  7. Under Application Entry point (5), enter the name of the WSGI object, usually application.
  8. Click CREATE.
The form for creating a Python app with the fields Python version, Application root, Application URL, Application startup file and Application Entry point
(1) the version, (2) the folder, (3) the address, (4) the startup file, (5) the entry point

DirectAdmin creates the folder, the virtual environment and an initial startup file. Open your app's address: you'll see a test page saying it's working.

Your own code and packages

  1. Upload your code to your app's folder.
  2. Put your packages in a file called requirements.txt in that folder.
  3. Edit the app in Setup Python App, enter requirements.txt under the configuration files and click Run Pip Install.
  4. Click Restart.

For Flask, you could put something like from app import app as application in passenger_wsgi.py. For Django, refer to your project's wsgi.py.

Working in the virtual environment

At the top of your app's screen, you'll find a command starting with source. Copy it and paste it into the Terminal or your SSH session (see Terminal in your browser). You'll then be working in your app's virtual environment, with the correct Python version, and you can use commands such as pip install or python manage.py migrate.

Frequently asked questions

I get "ModuleNotFoundError" or "No module named ...".
The package was installed outside your app's virtual environment. First activate the environment with the command from the screen and reinstall the package, or use Run Pip Install.

I've changed my code, but I still see the old version.
Click Restart for your app.

My app shows a 503 or 500 error.
Check your domain's error log (see Site summary & logs: the error log and the access log) and look in your app's folder for a log file with the error message. Usually the startup file or the entry point is incorrect, or a package is missing.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…