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.4b0.tar.gz (28.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.4b0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_hstl-0.4b0.tar.gz
  • Upload date:
  • Size: 28.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.4b0.tar.gz
Algorithm Hash digest
SHA256 58376a8766691aea4137a276b6d4e157b831ba32cec65a9d9d5c410e3371eacc
MD5 7580b5a8247b6ce71629b45c6e2bd045
BLAKE2b-256 67d031df9541300b6704582f697960c3616e5dbf6735367f39fd1bcc7145c39d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_hstl-0.4b0-py3-none-any.whl
  • Upload date:
  • Size: 34.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.4b0-py3-none-any.whl
Algorithm Hash digest
SHA256 733e2feb05ae5fc0061bafd3eee8286f8efab1a415a6e45a8a40414dcb2bb2a1
MD5 ddc25055e2cdf9a0c2d00d858b8b8ba0
BLAKE2b-256 1ad8e80251c5ef2b808774bc4a4d7fdd39207bb69fee7b75749da75deb0a019d

See more details on using hashes here.

Provenance

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