Code Monkey home page Code Monkey logo

Comments (6)

javadadabi avatar javadadabi commented on July 21, 2024 1

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.

infini7 avatar infini7 commented on July 21, 2024

Could u post ur source code?

from django-beginners-guide.

vitorfs avatar vitorfs commented on July 21, 2024

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.

javadadabi avatar javadadabi commented on July 21, 2024

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.

infini7 avatar infini7 commented on July 21, 2024

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.

javadadabi avatar javadadabi commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.