How to pass dev_appserver parameters for django-nerel

I am using django-appengine and now I am trying to execute a project with django-nerel. Before I used a bash script to start a local server and pass parameters.

Django-nonrel docs say you should not run dev_appserver directly. Is there any way to pass these parameters?

/usr/bin/python2.5 ./dev_appserver.py \
        -p 9009 \
        -a 192.168.1.8 \
        --blobstore_path=/foo/gaedata/myapp/blobs \
        --datastore_path=/foo/gaedata/myapp/data \
        --enable_sendmail \
        $@ .
+3
source share
2 answers
  • IP address and port can be passed as the first argument (as Robert replied)
  • - enable_sendmail works as is
  • Data Warehouse Parameters Must Be Separated By Space, Not Equal

Working version:

/usr/bin/python2.5 ./manage.py runserver \
        192.168.1.8:9009 \
        --enable_sendmail \
        --blobstore_path /foo/django-nonrel/blobs \
        --datastore_path /foo/data \
        --history_path /foo/history
+1
source

, "192.168.1.8:9009" .

/, /management/commands/runserver.py . , blobstore django db.

, Waldemar, .

+1

Source: https://habr.com/ru/post/1776484/


All Articles