import os
import sys
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'd*d9q(5zn)6uv9ep$-qjsh3e&o^63=n64j%s&*w#*1voa3+e$x'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
IMPORT_EXPORT_USE_TRANSACTIONS = True
# Application definition
INSTALLED_APPS = [
'archive',
'import_export',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap3',
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'archive.settings'
Hi,
The most likely explanation is that your settings file has the wrong name or location. It should be "settings.py", and it should be in the "archive" directory.
"archive" should not normally be in INSTALLED_APPS, unless you really know what you are doing, which you probably don't (yet). By default Django has a "project" subdirectory and "apps" directories; settings.py in in the "project" subdirectory and the "apps" directories are apps that are specified in INSTALLED_APPS.
Regards,
Antonis
Antonis Christofides http://djangodeployment.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/60c53c4a-3b34-4564-8bbf-b3e292ea16b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.