Compare commits

..

3 Commits

3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,14 @@
from .settings import *
ALLOWED_HOSTS = [ u'avalon.aweirdimagination.net' ]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'avalon',
'USER': 'avalon',
'ATOMIC_REQUESTS': True,
}
}
STATIC_URL = '/static/'

View File

@ -10,7 +10,10 @@ from django.shortcuts import get_object_or_404, redirect, render
from django.views.decorators.http import require_safe,\ from django.views.decorators.http import require_safe,\
require_POST,\ require_POST,\
require_http_methods require_http_methods
from django.urls import reverse try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
from .forms import NewGameForm, JoinGameForm, StartGameForm from .forms import NewGameForm, JoinGameForm, StartGameForm
from .helpers import mission_size, mission_size_string from .helpers import mission_size, mission_size_string

12
uwsgi.ini Normal file
View File

@ -0,0 +1,12 @@
[uwsgi]
socket=127.0.0.1:8042
chdir=/home/anyoneeb/sites/apps/avalon/avalon-django/avalon
plugin=python3
module=avalon.wsgi:application
env=DJANGO_SETTINGS_MODULE=avalon.local_settings
master=True
pidfile=/tmp/avalon-master.pid
vacuum=True
max-requests=5000
uid=avalon
gid=avalon