
Gmaps.js – google map not loading
If gmaps.js is failing to load google map in your application and you are getting any of below errors: Uncaught TypeError: Cannot read property ‘prototype’ of undefined gmaps.js TypeError: undefined […]
If gmaps.js is failing to load google map in your application and you are getting any of below errors: Uncaught TypeError: Cannot read property ‘prototype’ of undefined gmaps.js TypeError: undefined […]
Django does not serve static contents, such as CSS, by itself. it delegates the task to the webserver. This sometimes creates problems for developers when trying to deploy their Django […]
To create a unique email field in your Django User model, so that only one user can be associated with an email address, add below to your model:
By default, when objects containing file fields such as FileField or ImageField are deleted, Django does not delete the attached files, leaving you with a lot of orphaned files on […]
This is for situations you want to display only a filename without the entire path in your template. This solution is portable, allowing you to apply it to several apps […]
Django by default will look for the ‘templates’ folder under each app. For example below template folders will be located by default: However, Django will throw an django.template.exceptions.TemplateDoesNotExist when you […]
This took me a lot of digging through the internet to figure it out and I hope it will help someone out there. After several trials, the solution here worked […]
You are trying to add a non-nullable field ‘owner’ to submission without a default; we can’t do that (the database needs something to populate existing rows). Please select a fix: […]
After creating your Django project, you will need an admin account (Superuser account in Django terms) to administer your project. Follow below instructions to create a superuser account: 1. Activate […]
Django shell gives you an idea of what goes on behind your Django project. It is a great tool for testing and troubleshooting your project. To start Django Shell, type […]
Copyright © 2021 | WordPress Theme by MH Themes