python - Getting started with Django - base.py - ImportError: No module named blog -


i working through "getting started django", video series. have spend time googling , reviewing answers here , there.

i on first lesson , seeing issues importing module named "blog" when i:

python manage.py runserver 0.0.0.0:8000 

it seems me version of django have more recent (but still, stable version). base.py file, had found on github , loaded it. reviewed , same specified in tutorial.

here file using:

(blog-venv)vagrant@precise64:/vagrant/microblog$ cat microblog/settings/base.py import os  import dj_database_url  here = lambda * x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) project_root = here("..") root = lambda * x: os.path.join(os.path.abspath(project_root), *x)  debug = false template_debug = debug allowed_hosts = ['*']  admins = (     ("supreme master", "user@email.com"), )  managers = admins  databases = {     'default': dj_database_url.config() }  # local time zone installation. choices can found here: # http://en.wikipedia.org/wiki/list_of_tz_zones_by_name # although not choices may available on operating systems. # in windows environment must set system time zone. time_zone = 'america/chicago'  # language code installation. choices can found here: # http://www.i18nguy.com/unicode/language-identifiers.html language_code = 'en-us'  site_id = 1  # if set false, django make optimizations not # load internationalization machinery. use_i18n = true  # if set false, django not format dates, numbers , # calendars according current locale. use_l10n = true  # if set false, django not use timezone-aware datetimes. use_tz = true  # absolute filesystem path directory hold user-uploaded files. # example: "/home/media/media.lawrence.com/media/" media_root = root("..", "uploads")  # url handles media served media_root. make sure use # trailing slash. # examples: "http://media.lawrence.com/media/", "http://example.com/media/" media_url = ''  # absolute path directory static files should collected to. # don't put in directory yourself; store static files # in apps' "static/" subdirectories , in staticfiles_dirs. # example: "/home/media/media.lawrence.com/static/" static_root = root("..", "static")  # url prefix static files. # example: "http://media.lawrence.com/static/" static_url = '/static/'  # additional locations of static files staticfiles_dirs = (     root("..", "assets"), )  # list of finder classes know how find static files in # various locations. staticfiles_finders = (     'django.contrib.staticfiles.finders.filesystemfinder',     'django.contrib.staticfiles.finders.appdirectoriesfinder', #    'django.contrib.staticfiles.finders.defaultstoragefinder', )  # make unique, , don't share anybody. secret_key = 'create-your-own-secret-code'  # list of callables know how import templates various sources. template_loaders = (     'django.template.loaders.filesystem.loader',     'django.template.loaders.app_directories.loader', #     'django.template.loaders.eggs.loader', )  middleware_classes = (     'django.middleware.common.commonmiddleware',     'django.contrib.sessions.middleware.sessionmiddleware',     'django.middleware.csrf.csrfviewmiddleware',     'django.contrib.auth.middleware.authenticationmiddleware',     'django.contrib.messages.middleware.messagemiddleware',     'django.middleware.clickjacking.xframeoptionsmiddleware', )  root_urlconf = 'microblog.urls'  # python dotted path wsgi application used django's runserver. wsgi_application = 'microblog.wsgi.application'  template_dirs = (     root("templates"), )  django_apps = (     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.sites',     'django.contrib.messages',     'django.contrib.staticfiles',     'django.contrib.admin', )  third_party_apps = (     'south', )  local_apps = (     'blog', )  installed_apps = django_apps + third_party_apps + local_apps  # sample logging configuration. tangible logging # performed configuration send email # site admins on every http 500 error when debug=false. # see http://docs.djangoproject.com/en/dev/topics/logging # more details on how customize logging configuration. logging = {     'version': 1,     'disable_existing_loggers': false,     'filters': {         'require_debug_false': {             '()': 'django.utils.log.requiredebugfalse'         }     },     'handlers': {         'mail_admins': {             'level': 'error',             'filters': ['require_debug_false'],             'class': 'django.utils.log.adminemailhandler'         }     },     'loggers': {         'django.request': {             'handlers': ['mail_admins'],             'level': 'error',             'propagate': true,         },     } } 

if @ value "local_apps", blog there i'm not sure should happen here next or how can remedy situation through tutorial , learn how / why works does.

can offer advice?

did try:

python manage.py makemigrations python manage.py migrate

that in installed aps , created columns in database.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -