django import error - No module named core.management

Ok, I see plenty of these errors around. I have tried everything I know to do and have yet to figure this out. I am working on a development server running python 2.5 and Django 1.3. Django 1.3...

Mac OS X 10.6, Mysql, Mysql-Python, Django

UPDATE: I came across this post: https://stackoverflow.com/questions/5072066/python-mysqldb-on-mac-osx-10-6-not-working saw two options: Add MySQL client libraries to the...

Django Admin Using both Django Reversion and Django-Import-Export

I am trying to enable Django Reversion and Django-Import-Export for the same model... Not sure if my logic is correct or if I should be using multiple admin.py files etc I have tried the following...

Reverse foreign keys with django-import-export

I have the following models where each project has a specific set of permissions. class Bank(models.Model): name = models.CharField(max_length=255, unique=True) def __unicode__(self): ...

OSError: dlopen(libSystem.dylib, 6): image not found

Just updated my Mac to El Capitan 10.11. I am trying to run Django 1.6 with Celery 3.1 and I'm getting this error now: Unhandled exception in thread started by <function wrapper at...

Django import-export choices field

I have a model with choices list (models.py): class Product(models.Model): ... UNITS_L = 1 UNITS_SL = 2 UNITS_XL = 3 PRODUCT_SIZE_CHOICES = ( (UNITS_L, _('L')), ...

Django app defaults?

I'm looking for a way to have application defaults and settings that are easy to use, difficult to get wrong, and have little overhead.. Currently I have it organized as...

Django cookies are not getting saved on browser

I am making an application with react and Django. When i login with django i set token in cookie but Django response cookies are not set in browser. I trying to debug it hard but could not. Don't...

ModuleNotFoundError: No module named 'import_export'

I've used the following tutorial. I used the command pip install django-import-export, then added to the Installed Apps section. INSTALLED_APPS = [ 'django.contrib.admin', ...

"upstream prematurely closed connection while reading response header from upstream" Django, Ubuntu, Nginx, Gunicorn

I deployed a Django website using this tutorial https://jee-appy.blogspot.com/2017/01/deply-django-with-nginx.html The website can be accessed from the internet, www.simplesol.com When I try to...

ImportError: No module named 'config.settings'; 'config' is not a package

I'm trying to get my cookiecutter-django app running under Apache with mod_wsgi installed via pip. python3 manager.py runserver works. But after running it in Apache, I got an error saying Module...

Run Django on Oracle Application Container

I have an existing django project which I am trying to deploy to Oracle's cloud service, Application Container. I followed Oracle's guide to do this however there are some details missing from...

django-import-export keyerror, when using OneToOneField

My models.py file is from django.db import models class companyDetail(models.Model): short_code = models.CharField(primary_key=True, max_length=50) title =...

Import using 2 fields as id field

I have read the documentation for django import_export and noticed that we can import with import_id_fields which field to use as the import id. I was wondering if it is possible to use the...

docker-compose/django TypeError: expected str, bytes or os.PathLike object, not NoneType

I'm trying to set up my Django and postgres dev environment with docker so I can run it on other machines more easily as well as run everything from 1 terminal window (I'll be adding my react...

How to import django-taggit tag in django-import-export

I can't import Django-taggit tags using Django-import-export. This error is when the value is entered. Line number: 1 - invalid literal for int() with base 10: 'def' Also, this error is when the...

Why does Heroku has to install so many modules every time?

I am developing an app in Django and I am deploying it on Heroku. Why does, with each push, Heroku has to install all these modules? I know there is a way to prevent it from doing it all the...

Django-import-export post_save called twice

I created a custom user subclassed from AbstractUser and a post_save signal and a receiver that prints the new user's id. @receiver(post_save, sender=CustomUser,...

How to test material ui autocomplete with react testing library

I am using material-ui autocomplete component and am trying to test it using react-testing-library Component: /* eslint-disable no-use-before-define */ import TextField from...

Is there something wrong with making an http request in the ngOnInit of a component when using Angular Universal?

I have been running my Angular app via ng serve for development and was not experiencing any errors. When using SSR, however, I get an error in my server log whenever I load a component that makes...

openstack- horizon - Invalid credentials

I am installing openstack(Minimal deployment for Ussuri), I have installed Horizon, but I face invalid credential. below you may find the configuration: you may find the Horizon configuration,...

NameError: name '_mysql' is not defined after setting change to mysql

I have a running Django blog with sqlite3 db at my local machine. What I want is to convert sqlite3 db to mysql db change Django settings.py file to serve MySQL db Before I ran into the first...

Make mui autocomplete persist the input value after selection

After typing a value and selecting an option in Material-UI Autocomplete with Multiple, the entered value is cleared. Is there a way to make AutoComplete persist the typed value even after...

How to activate virtual envirooment for existing django project using pipenv in python 3.8

I developed a Django webapp project using Django 2.2.1 in python 3.7.2 in a pipenv version 2018.11.26 virtual environment in MacBook Air. After an unintentional update to python 3.8 using brew...

skip_unchanged and report_skipped in django import-export

The django import-export documentation says report_skipped= True Controls if the result reports skipped rows Default value is True skip_unchanged= False Controls if the import should skip...

Django error 'URLs with hostname components are not permitted'

I have deployed a django application which invokes a python file to send captured data on django form to a third party independent server. The problem is that when the python file is invoked from...

make Styles in material ui is not working

I'm just trying to learn material ui for react especially makeStyles. I've the following javascript code. import React from "react"; import MenuIcon from "@material-ui/icons/Menu"; import...

simple django channels app not running with daphne

I’m trying to get django channels running with daphne but I always end up with this x8/backback/mysite » daphne mysite.asgi:application ...

Why does my Environ import doesn't import .env variables?

I'm building a Django app but I've got an issue. I've imported the environ package in order to store all my variables in a .env file, but actually it seems my app doesn't read it and I can't get...

Building wheel for cffi (setup.py) ... error while installing the packages from requirements.txt in django

I am trying to install a new Django project from git, I created a new virtual envt using python3(version: 3.8.5). When I try to install the required libraries in the requirements.txt, I get the...