Skip to main content

A Hostel Mannagement WEB APP

Project description

Hostel Management WebApp using django

Pre-requisite: git, python

Quick start

  1. Install app.
    pip install django-hstl
    
  2. Modify settings.py such that
    AUTH_USER_MODEL = 'django_hstl.MyUser'
    
    # Add the app in your INSTALLED_APPS
    INSTALLED_APPS = [
    	# ...,
    	"django_hstl",
    ]
    
    # Basic Session related settings
    SESSION_COOKIE_AGE = 300
    SESSION_SAVE_EVERY_REQUEST = True
    SESSION_EXPIRE_AT_BROWSER_CLOSE = True
    
    # Advance Session related settings
    SESSION_COOKIE_SECURE = True
    CSRF_COOKIE_SECURE = True
    SECURE_SSL_REDIRECT = True
    SESSION_COOKIE_HTTPONLY = True
    
  3. Include the app URLconf in your project urls.py like this
    path("hstl/", include("django_hstl.urls")),
    
  4. Run python manage.py migrate to create the models.
  5. Create Superuser manage.py createsuperuser
  6. Visit the /hstl/ URL to explore the WEB APP.

Getting Started

  1. Create a directory and cd into it.
    mkdir ./hstl/
    cd ./hstl
    
  2. Create a virtual environment and activate it.
    • LINUX / MAC
    python3 -m venv .venv
    source ./.venv/bin/activate
    
    • WINDOWS
    python -m venv .venv
    .\.venv\Scripts\activate
    
  3. Install app.
    pip install django-hstl
    
  4. Create a django project
    django-admin startproject MyApp .
    
  5. Modify "MyApp/setting.py" such that
    AUTH_USER_MODEL = 'django_hstl.MyUser'
    
    # Add the app in your INSTALLED_APPS
    INSTALLED_APPS = [
    	# ...,
    	"django_hstl",
    ]
    
    # Basic Session related settings
    SESSION_COOKIE_AGE = 300
    SESSION_SAVE_EVERY_REQUEST = True
    SESSION_EXPIRE_AT_BROWSER_CLOSE = True
    
  6. Include the app URLconf in "MyApp/urls.py" like this
    path("hstl/", include("django_hstl.urls")),
    
  7. Run python manage.py migrate to create the models.
  8. Create Superuser manage.py createsuperuser and start development server manage.py runserver
  9. Visit the /hstl/ URL to explore the WEB APP.

Project details


Download files

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

Source Distribution

django_hstl-0.6.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

django_hstl-0.6-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file django_hstl-0.6.tar.gz.

File metadata

  • Download URL: django_hstl-0.6.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_hstl-0.6.tar.gz
Algorithm Hash digest
SHA256 dffd61fdb1291fcfc3c56562a2da268deca04585af7931a9fec2d7c44660846c
MD5 14a4348f639973e9dd7f7447166eb596
BLAKE2b-256 ffb67d01c3b57ccc259c8ee2961fd4bd09eaa362555c9a10bbb287d22c892dec

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstl-0.6.tar.gz:

Publisher: publish.yml on dev-ShivamSingh-Github/hstl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_hstl-0.6-py3-none-any.whl.

File metadata

  • Download URL: django_hstl-0.6-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_hstl-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1287b8c51ae9ac0c57a10f16f2cf71310053fa0b38b425d3e2b6e2c8d4dd44ca
MD5 19d95be1733bd6cff2a98d6aa435bc87
BLAKE2b-256 cf1619b9dae4bb8ad9e26b9d2842dba0a003947d7ebc698c3842ac5d2ebab619

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstl-0.6-py3-none-any.whl:

Publisher: publish.yml on dev-ShivamSingh-Github/hstl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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