Skip to main content

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ä

Metadata

Release files for django-localhost-run 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-localhost-run 0.1
File Size Uploaded
django_localhost_run-0.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-localhost-run 0.1
File Interpreter ABI Platform
django_localhost_run-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / django_localhost_run-0.1.tar.gz

Download URL django_localhost_run-0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a4832631ee154da657ba99d2bafc6c9ed590ea67e1c5cc9eb270c8ea47b26f0
BLAKE2b-256 checksum
How to use checksums
0a8278818a086fac812d682aa01c22fea0a3fd8e362bdd100bbd13865d63eb7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.0

Release files / django_localhost_run-0.1-py3-none-any.whl

Download URL django_localhost_run-0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d921340d534c48ec4522d64a57b1a3dc0dbfb8171a480df9678d46f1323ff4e
BLAKE2b-256 checksum
How to use checksums
d0218ab2d069d4f07e599bbea2f7a1bd97cc12fdc953602d444610333fdd967e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page