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.5.tar.gz (32.4 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.5-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_hstl-0.5.tar.gz
  • Upload date:
  • Size: 32.4 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.5.tar.gz
Algorithm Hash digest
SHA256 e1677cdfbb9b63f91697c1e1b00933a1de9c2b1d8b542d3b22c55e450f2f7e5c
MD5 925969df9384c2bf8a5d713002f0b2dd
BLAKE2b-256 cf9799222787123b3d3242e27f7cd662ed4bfcbc58a65ebb5e1b5fa5c3098213

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_hstl-0.5-py3-none-any.whl
  • Upload date:
  • Size: 41.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d1902237fbb37ebe510b8d0c35026905347333ffb491e9169804316b30a14fbd
MD5 c26255ca6c1f664951867731b85a43cc
BLAKE2b-256 c0b617b5e1583310b49b06cace02b679c6c94b371cab2e101dd0cdbf0a0ea1c4

See more details on using hashes here.

Provenance

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