Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics What a View! Running the Server

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

Matching Django & Database version

What do I do if my Django is 2.0.1 version but the "real" database like SQLite does not support Django higher than 1.8.?

4 Answers

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

Henrik, thanks for your swift reply, however your reply breeds even more questions:

  1. How can I update SQLite to support versions higher than Django 1.8? Does such a version already exist? If yes, maybe you know a link? Because I have not found it...

  2. How do I install Django 1.8 if I already have Django 2.0 installed? Shall I uninstall the higher version first, or can I have both? If I can have both how do I know which one I'm running? Or, maybe there's some comand to indicate which one you're launching? Thanks in advance!

Henrik Christensen
seal-mask
.a{fill-rule:evenodd;}techdegree
Henrik Christensen
Python Web Development Techdegree Student 38,322 Points

To install django 1.8 (or any other specific version) you just type:

pip install django==1.8

I would recommend to do this in a virtual environment (if not doing it already)

About the SQLite I have no idea - I have never downloaded SQLite because django automaticly create a SQLite database for you when you run python manage.py migrate

you can change it. dont use sqlite instead. you can use mysql with the format and it will run great.

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

Thanks. But mySQL is considered to be for learners. Did you try it for real life applications with thousands or millions of users?

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

Thank you, Heinrik! I'll try it all! Good luck to you in everything you do!

yes, and it works fine