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.4b1.tar.gz (28.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_hstl-0.4b1-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file django_hstl-0.4b1.tar.gz.

File metadata

  • Download URL: django_hstl-0.4b1.tar.gz
  • Upload date:
  • Size: 28.6 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.4b1.tar.gz
Algorithm Hash digest
SHA256 5f7b24046c26600a0a5b818ddba780bad62faf21307e3230afcbe19dbd92e133
MD5 765b617cc63ee7f944c87550e9049d7b
BLAKE2b-256 c7b01e9e672baccf7ad403f5018d67b3ec1a39a2b41d149e0371f9def40c94ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstl-0.4b1.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.4b1-py3-none-any.whl.

File metadata

  • Download URL: django_hstl-0.4b1-py3-none-any.whl
  • Upload date:
  • Size: 34.5 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.4b1-py3-none-any.whl
Algorithm Hash digest
SHA256 65273b055d5534c82a526d92e22afe18453480876ed49997527d52a0d5e28d77
MD5 6da64420a804d75c59ea1c99b489e4ae
BLAKE2b-256 ac264e79345f1aeb65a883979d10e3ebf50f450ce194cd8aa6acd4bb650b08bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hstl-0.4b1-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