<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>Howto/Django</title><revhistory><revision><revnumber>1</revnumber><date>2024-10-27 15:02:23</date><authorinitials>independence</authorinitials></revision></revhistory></articleinfo><section><title>Django</title><para>To run a Django site on Blinkenshell you need a <ulink url="http://ipv6.blinkenshell.org/wiki/Howto/Django/wiki/Info/Supporter#">Info/Supporter</ulink> account. </para><para>To get started with a new site run the following commands on the buildserver: </para><screen><![CDATA[cd ~
python3 -m venv django
cd django/
source bin/activate
python3 -m pip install Django
django-admin startproject myappname]]></screen><para>In your settings.py: <code>ALLOWED_HOSTS = [&quot;username.blinkenshell.org&quot;]</code> </para><para>Contact independence after you created the project and include what url path you want the app to run on like /blog/ for ex, some configuration needs to be added to web server </para><para>To reload config: <code>touch --no-dereference ~/django/myappname/reload</code> </para></section></article>