create a bash script with the following:
#!/bin/bash
exec ./manage.py runserver 0.0.0.0:<your_port>
save it as runserver in the same dir as manage.py
chmod +x runserver
and run it as
./runserver
More Related Contents:
- Check if a dictionary contain data true of false, then send a response back
- Iterate over model instance field names and values in template
- Django Passing Custom Form Parameters to Formset
- How to set environment variables in PyCharm?
- Using Django time/date widgets in custom form
- How do I access the request object or any other variable in a form’s clean() method?
- How to compare two JSON objects with the same elements in a different order equal?
- When to use get, get_queryset, get_context_data in Django?
- Best way to make Django’s login_required the default
- django template system, calling a function inside a model
- Best practices for adding .gitignore file for Python projects? [closed]
- How do I get the object if it exists, or None if it does not exist in Django?
- Find object in list that has attribute equal to some value (that meets any condition)
- django-rest-framework 3.0 create or update in nested serializer
- Django model inheritance: create sub-instance of existing instance (downcast)?
- Django – what is the difference between render(), render_to_response() and direct_to_template()?
- Django populate() isn’t reentrant
- How to make Django serve static files with Gunicorn?
- Change Django ModelChoiceField to show users’ full names rather than usernames
- django-debug-toolbar not showing up
- django apache configuration with WSGIDaemonProcess not working
- gunicorn.errors.HaltServer: django
- Override a form in Django admin
- Django Admin Page missing CSS
- How to get python-dev for windows?
- django excel xlwt
- Django ‘AnonymousUser’ object has no attribute ‘_meta’
- Add “django-admin.py” path to command line on Windows 7
- Django Multiple Databases – relation does not exist; LINE 1: SELECT COUNT(*) AS “__count” FROM
- How do I change the range of the x-axis with datetime?