pathway / ed-questionnaire Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eldest-daughter/ed-questionnaire
License: BSD 3-Clause "New" or "Revised" License
This project forked from eldest-daughter/ed-questionnaire
License: BSD 3-Clause "New" or "Revised" License
Thanks for supporting django-1.10!
Following the README for branch django-1.10, I got an error at the step:
python manage.py makemigrations
Error: NameError: name 'generate_run' is not defined
This can be fixed by importing the needed views in the main site's urls.py, i.e. adding following lines to mysite/urls.py
:
from questionnaire.views import generate_run, set_language
from questionnaire.page.views import page, langpage
So the complete (initial) mysite/urls.py looks like this:
[mysite/urls.py]
from django.conf.urls import include, url
from django.contrib import admin
from questionnaire.views import generate_run, set_language
from questionnaire.page.views import page, langpage
admin.autodiscover()
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
# questionnaire urls
url(r'q/', include('questionnaire.urls')),
url(r'^take/(?P<questionnaire_id>[0-9]+)/$', generate_run, name='generate_run'),
url(r'^$', page, {'page_to_render' : 'index'}, name='page'),
url(r'^(?P<lang>..)/(?P<page_to_trans>.*)\.html$', langpage, name='langpage'),
url(r'^(?P<page_to_render>.*)\.html$', page, name='page'),
url(r'^setlang/$', set_language, name='set_language'),
]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.