Comments (6)
Hi Vitor
Fortunately till step 3 everything works well in django version 2.
The problem was that I did not refactore views.py. In fact 'form':form were not added to
``return render(request, 'new_topic.html', {'board': board})
Just there was a small issue about boards/models.py that in django version 2 on_delete parameter should be determined for fields that are ForeignKey, like:
updated_by = models.ForeignKey(User, null=True, related_name='+', on_delete=models.DO_NOTHING)
After correction of models.py, just a migration command is needed to launch codes.
Here is corrected models.py file:
models.zip
Many thank for your attention.
from django-beginners-guide.
Could u post ur source code?
from django-beginners-guide.
I haven't checked yet, but probably a compatibility version with Django 2.0
I'm updating the tutorial series to use Django 2.0 and I will remove django-widget-tweaks and add django-crispy-forms as it's easier to work with
from django-beginners-guide.
I'm updating the tutorial series to use Django 2.0 and I will remove django-widget-tweaks and add django-crispy-forms as it's easier to work with
Thank you. I am waiting for this update.
Could u post ur source code?
The source code is the same as existing codes in this repository.
from django-beginners-guide.
This is the reason i want your souce code, cause It’s ok in my venv, I use django 2.03 too.
I replaced widget-tweaks with crispy-forms yesterday. It’s ok. But my issue is still there. I dont know what the error ‘boundfield found’ for and how to fix it.
from django-beginners-guide.
Hi INFINI7
Here is the source code that I use with django version 2.0.3.
I think after using "pip install django-widget-tweaks" command, django-widget-tweaks will be installed without a problem.
Just to render new page at least one board should be entered via admin control panel(In this source code it has already done).
django-beginners-guide-0.3-lw.zip
from django-beginners-guide.
Related Issues (20)
- Error during template rendering HOT 1
- django 2.0 or 1.11 for a beginner HOT 1
- getting an error while using LogoutView.as_view() in main urls.py file HOT 1
- Error during template rendering. no model name parse HOT 1
- thank you
- Test cases failing with 404 error HOT 1
- To Delete a Topic or Replies
- Adding Python 3 static type annotations ?
- NOT NULL constraint failed: boards_topic.starter_id HOT 2
- decouple.UndefinedValueError HOT 1
- Can you upgrade your guide to support django 2.1.*? HOT 1
- "TypeError" after running 'python manage.py migrate'
- Getting Error Generator expression in widgets.py
- Thanks
- missing 1 required positional argument: 'on_delete' in boards/models.py
- a question about the project
- django-widget-tweaks can't support django2.0 HOT 1
- why forms widget is not rendered in django version 2.0.3
- Still error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-beginners-guide.