Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
/ django-lighttpd Public archive

A basic setup to use django with uwsgi and lighttpd

License

Notifications You must be signed in to change notification settings

fliphess/django-lighttpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-lighttpd

A basic setup to use django with uwsgi and lighttpd (Works on mac osx if you slightly change the requirements)

Requirements

  • python
  • virtualenv
  • build-essential
  • python-dev
  • virtualenv
  • git

Requires lighttpd version >= 1.4.42 for uwsgi support

Setup

git clone git@github.com:fliphess/django-lighttpd.git /opt/django
virtualenv /opt/django/.venv
source /opt/django/.venv/bin/activate
pip install -r /opt/django/requirements.txt

cd /opt/django
./manage.py migrate
./manage.py createsuperuser
echo yes | ./manage.py collectstatic

Start

  • bin/manage_uwsgi --start
  • bin/manage_lighttpd --start

Dockerize

Building:

git clone git@github.com:fliphess/django-lighttpd.git
cd django-lighttpd
docker build -t django/lighttpd .

Running:

docker run -i -t --rm --dns 8.8.4.4 -p 8080:8080 django/lighttpd

About

A basic setup to use django with uwsgi and lighttpd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published