Skip to content

nanobox-quickstarts/nanobox-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django from scratch

Django from scratch

Run a Django app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-django.git

# cd into the django app
cd nanobox-django

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local django.dev

# Run django as you would normally, with Nanobox
nanobox run python manage.py runserver 0.0.0.0:8000

Check it out

Visit your app at django.dev:8000

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where python is installed,
python --version

# your packages are available,
pip list

# and your code is mounted
ls

Now What?

For more details about running django apps with nanobox visit guides.nanobox.io/python/django/