Django app for surveys
mkdir SurveySite
cd SurveySite/
virtualenv -p /usr/bin/python3 .
. bin/activate
pip install django pytz openpyxl
django-admin startproject MySite
mv MySite/ src
cd src
git clone https://github.com/Lapin-Blanc/django_survey.git
vim MySite/settings.py
add django_survey app, adjust localization
vim MySite/urls.py
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^survey/', include('django_survey.urls')),
]
urlpatterns += staticfiles_urlpatterns()
./manage.py makemigrations
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver 0.0.0.0:8000
setsebool -P httpd_can_network_connect on