Django tutorial polls app
divio / django-polls Goto Github PK
View Code? Open in Web Editor NEWDjango tutorial's polls app
License: BSD 3-Clause "New" or "Revised" License
Django tutorial's polls app
License: BSD 3-Clause "New" or "Revised" License
Please provide more information in the README file
I runned "python setup.py install" and it installed with success.
But I got a template error.
I noticed that the template hasn't been copied.
When running through the django CMS tutorial, I found I had to make some changes to the django-polls app used to allow it to work with Django 2.2 and forked to put a pull request in for my changes but in doing that, I noted that @NeodarZ had put in #7 for essentially the same changes.
I wanted to create this issue to flag their PR for merge/review to eliminate the need for jerry-rigging 2.x support.
The documents on the following link suggest installation of this repo's application:
http://docs.django-cms.org/en/latest/introduction/plugins.html#integrate-the-polls-cms-integration-application
i.e.
pip install -e git+http://[email protected]/divio/django-polls.git#egg=polls
However, following those instructions does not cause the __init__.py
file from this repo to be included for some reason (perhaps it's not included in the build?). This causes the entire tutorial to fail.
It took some debugging to realise that this was the problem and we had to manually create the __init__.py
file before our polls_cms_integration
app could work. Without it we were getting this error:
poll = models.ForeignKey(Poll)
NameError: name 'Poll' is not defined
Receiving the following error attempting to download via powershell:
(env) PS C:\users\jclarke\tutorial-project> pip install -e git+https://[email protected]/divio/django-polls.git#egg=django-polls
Obtaining django-polls from git+https://[email protected]/divio/django-polls.git#egg=django-polls
Cloning https://[email protected]/divio/django-polls.git to c:\users\jclarke\env\src\django-polls
Error [Error 2] The system cannot find the file specified while executing command git clone -q https://[email protected]/divio/django-polls.git c:\users\jclarke\env\src\django-polls
Cannot find command 'git'
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.