Jasmin SMS Web Interface for Jasmin SMS Gateway
In your terminal for Unix (Linux/Mac)
pip install virtualenv
git clone https://github.com/101t/jasmin-web-panel --depth 1
cd jasmin-web-panel/
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
cp -rf Sample.env .env
./load_data.sh --init
In Command Prompt for Windows
python -m pip install virtualenv
git clone https://github.com/101t/jasmin-web-panel --depth 1
cd jasmin-web-panel/
virtualenv env
env/Scripts/activate
pip install -r requirements.txt
copy Sample.env .env
load_data_win.bat --init
Note: the
admin
user automatically added to project as default administrator user, the credentials authentication is Username:admin
, Password:secret
.
Adding translation made easy by this commands
cd jasmin-web-panel/main/
django-admin makemessages -l en
django-admin compilemessages
Note: make sure you have
gettext
installed in yourUnix
Environment
# using gettext in ubuntu or macOS
msgunfmt [django.mo] > [django.po]
To run your celery in development
celery worker -A main.taskapp -l debug
To run channels in development as ASGI
using daphne
daphne config.asgi:application -b 0.0.0.0 -p 9000
To run django in development as HTTP
python manage.py runserver 0.0.0.0:8000
Here the following examples how to upgrade some packages
pip install -U django
pip install -U channels
pip install -U celery
pip install -U djangorestframework markdown django-filter
Note: be careful about sub-packages compatibility and dependencies conflict while upgrading