Skip to main content

Django send SMS using API(uz)

Quick start

  1. Create a new project

  2. pip install django-sms-uz==1.0.0, pip install djangorestframework and pip install requests

  3. Add the following to your settings.py file: INSTALLED_APPS = ( … ‘SMS’, … ) SMS_SETTINGS = {“SMS_URL”: “http://91.204.239.44/broker-api/send”,”SMS_LOGIN”: “LOGIN”,”SMS_PASSWORD”: “PASSWORD”} set in your settings.py file

  4. Add the following to your urls.py file:

    path(‘sms/’, include(‘SMS.urls’)),

  5. Run python manage.py migrate to create the database tables

  6. Start your Django development server python manage.py runserver and go to http://localhost:8000/sms/send_sms/

  7. Enter your phone number and message and click send

  8. Check your terminal for a response and Django admin will tell you if it was successful or not

  9. You could use call from SMS.sms_utils import SMS_Sender to get the SMS class and send sms using by the way SMS_Sender(phone_number, message).SendSmsOneContact() it returns a response

  10. Don’t forget to add SMS to your INSTALLED_APPS list and add SMS_SETTINGS = {“SMS_URL”: “http://91.204.239.44/broker-api/send”,”SMS_LOGIN”: “LOGIN”,”SMS_PASSWORD”: “PASSWORD”} set in your settings.py file

Metadata

Release files for django-sms-uz 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sms-uz 1.0.1
File Size Uploaded Provenance Actions
django-sms-uz-1.0.1.tar.gz 5.6 kB Without provenance Details for django-sms-uz-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sms-uz 1.0.1
File Interpreter ABI Platform Actions
django_sms_uz-1.0.1-py3-none-any.whl Python 3 none any Details for django_sms_uz-1.0.1-py3-none-any.whl

Total release size: 12.7 kB

Release files / django-sms-uz-1.0.1.tar.gz

Download URL django-sms-uz-1.0.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
452bd9abb5ccd86aa5cddf4f688497b22fde16dfe4f936e7fc9e4cee37a411ed
BLAKE2b-256 checksum
How to use checksums
36de2027a8e2b212a6f40a466f9e2be9bb7e605971f6738b990c4925894c7c1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / django_sms_uz-1.0.1-py3-none-any.whl

Download URL django_sms_uz-1.0.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04115b666e87447468b04cd7f192b94d86407740e45c66ba1441ff7616200647
BLAKE2b-256 checksum
How to use checksums
7172a1f2fb0a882c8e5cedd62c80914d7d18ba08c1069b81043a2d3ba0f888dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for django-sms-uz 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page