Skip to main content

Localhost.run-integraatio django-kehityspalvelimessa

Project description

django-localhost-run

Käyttöönotto

Järjestelmävaatimukset

  • SSH-pääteohjelmisto
  • Python 3.8 tai uudempi
  • Django 4.2.1 tai uudempi

Asennus

pip install django-localhost-run

Django-projektiasetukset

Lisää Django-projektiasetuksiin:

# projekti/asetukset.py
...
INSTALLED_APPS = [
  'localhost_run',  # ennen staticfiles-sovellusta
  ...
  'django.contrib.staticfiles', # tarvittaessa
  ...
]

Käyttö

Paketti periyttää runserver-komennon siten, että:

  • vipu python manage.py runserver --lhr ottaa Localhost.run-tunnelin käyttöön
  • kun vipu on päällä:
    • avataan tunneli ennen kehityspalvelimen käynnistymistä
    • tulostetaan tunnelin julkinen https-osoite konsoliin
    • asetetaan tämä https-osoite myös LOCALHOST_RUN-ympäristömuuttujaan käynnissä olevan palvelimen sisällä

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_localhost_run-0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_localhost_run-0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file django_localhost_run-0.1.tar.gz.

File metadata

  • Download URL: django_localhost_run-0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.0

File hashes

Hashes for django_localhost_run-0.1.tar.gz
Algorithm Hash digest
SHA256 3a4832631ee154da657ba99d2bafc6c9ed590ea67e1c5cc9eb270c8ea47b26f0
MD5 a5ecdc7bb92a46c0881ce6272894df0d
BLAKE2b-256 0a8278818a086fac812d682aa01c22fea0a3fd8e362bdd100bbd13865d63eb7f

See more details on using hashes here.

File details

Details for the file django_localhost_run-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_localhost_run-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d921340d534c48ec4522d64a57b1a3dc0dbfb8171a480df9678d46f1323ff4e
MD5 b5885236dcac8f383bc920763417788f
BLAKE2b-256 d0218ab2d069d4f07e599bbea2f7a1bd97cc12fdc953602d444610333fdd967e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page