nyergler / effective-django-tutorial Goto Github PK
View Code? Open in Web Editor NEWSource code for the Effective Django tutorial.
Home Page: http://effectivedjango.com
Source code for the Effective Django tutorial.
Home Page: http://effectivedjango.com
I got this error while loading admin page at 127.0.0.1:8000/admin
`
ImportError at /admin/
No module named 'forms'
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.5.1
Exception Type: ImportError
Exception Value:
No module named 'forms'
Exception Location: /home/arpit/Desktop/helloworld/effective-django-tutorial/contacts/views.py in , line 14
Python Executable: /usr/bin/python3
Python Version: 3.4.3
Python Path:
['/home/arpit/Desktop/helloworld/effective-django-tutorial',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/home/arpit/.local/lib/python3.4/site-packages',
'/usr/local/lib/python3.4/dist-packages',
'/home/arpit/src/facebook-sdk',
'/usr/local/lib/python3.4/dist-packages/git_remote_dropbox-0.2.2-py3.4.egg',
'/usr/local/lib/python3.4/dist-packages/PyGithub-1.28-py3.4.egg',
'/usr/local/lib/python3.4/dist-packages/pyarp-0.1.1-py3.4.egg',
'/usr/local/lib/python3.4/dist-packages/netifaces-0.10.5-py3.4-linux-x86_64.egg',
'/usr/local/lib/python3.4/dist-packages/django_annoying-0.10.3-py3.4.egg',
'/usr/lib/python3/dist-packages']
Server time: Tue, 25 Oct 2016 14:43:16 -0500
forms.py is in same directory with views.py but still i am getting this error
`
Hey,
Great tutorial. I ran into a problem in the 'Form Basics' section. There's an issue with the confirm_email = forms.EmailField("Confirm email",required=True,) statement in the forms.py.
To double check the code, I simply cloned the repo from Github, installed the db, and ran the Django server. Same error. Here's the error message from Django's debug page:
ValueError at /
invalid literal for int() with base 10: 'Confirm email'
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.6.1
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: 'Confirm email'
Exception Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/forms/fields.py in init, line 202
Python Executable: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Python Version: 2.7.6
Python Path:
['/Users/josephreis/Documents/Projects/django/effective-django-tutorial',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-1.3.1-py2.7.egg',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg',
'/Library/Python/2.7/site-packages/pydelicious-0.6-py2.7.egg',
'/Library/Python/2.7/site-packages/feedparser-5.1.3-py2.7.egg',
'/Library/Python/2.7/site-packages/pytz-2013b-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/Library/Python/2.7/site-packages']
Server time: Fri, 27 Dec 2013 22:59:48 -0600
Thanks,
Joe
*feature request *
port this project to django 1.9.x
It is a good tutorial for learning django. Try if you can update for django 1.9.x or later versions. It will be very good for the followers of the tutorial.
If anyone is interested in porting this then i can help in that
Thank you ๐
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.