In previous article How To Add Models To Django Admin Site, we have learned how to manage your Django app’s model data in Django project admin web site. But even we […]
We all know that one Django project can contain multiple applications, and all the applications should be activated in the Django project settings.py file INSTALLED_APPS section ( please read article […]
When you create a Django project and start the project built-in web server successfully, it also contains an admin website in this project. This admin website is the result of django.contrib.admin […]
Django model class is defined in models.py file in Django application folder, each model class will be mapped to a database table in the project backend database server. After you […]
When we develop Python programs, we always need to install and use a lot of third-party library packages. But if we develop same Python program on another new machine, we […]
We have learnt how to create and run unit test in Django project in previous article Django Unit Test Example. But that example mainly focus on Django application models test. […]
When you create website use Django, you should want to run unit test in it to verify website functions or models. This article will show you how to write and […]
When i write and run Django app models unit test, i meet an error like this django.contrib.auth.models.User.DoesNotExist: User matching query does not exist.
Python unittest library is used to run unit test for Python class and functions. It is a built-in library provided by Python, so you do not need to install any […]
When i use eclipse PyDev to open an exist python project, sometimes i meet invalid external source folder specified error like below. This article will tell you how to fix it.