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.4.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.4-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_hstl-0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 3ca90801265c4cede1ceb911c9601bdc42d20dc4f387b3b7a656ccfd92580e3d
MD5 73f2b8b284037139c69460975cead305
BLAKE2b-256 4793eac45aa6364463fc1634208567b1d51cd078e916d1feb2a037f23fc400a2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: django_hstl-0.4-py3-none-any.whl
  • Upload date:
  • Size: 34.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 61b9c473e3cbee14cf056c76c101793e873a9f8751f7ced4ce1daecbfdcf09aa
MD5 17223e3bf123a9fda3bebf3830476215
BLAKE2b-256 8e8668a2ce41b92e1c619d5fddce551cbef8eb9a3cdf7c1a9aadec2f66021ef9

See more details on using hashes here.

Provenance

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