Geodjango ... ImportError: No module named apps.AdminConfig - django

I have no idea why the app is crashing when I try to run:
python manage.py sqlall world
I am taking the django tutorial for geodjango, and my settings contain:
INSTALLED_APPS = (
'django.contrib.admin.apps.AdminConfig',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.gis',
'world',
)
As the tutorial teaches.
Does anyone has an idea of what might be happening?
I have already uninstalled Django 1.6.1 and installed again.
Thanks

You are not following the tutorial which matches the version of Django you have installed. 'django.contrib.admin.apps.AdminConfig' is only available on master (1.7dev).

Related

ImportError: No module named 'nested inline'

I´m using python 3.5.1 and django 2.0.1. I have a django app which I want to start but i get the following error message:
ImportError: No module named 'nested_inline'
Under settings.py I have in installed apps:
INSTALLED_APPS = [
'nested_inline',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'betonermüdung'
]
So.. I can´t understand where the problem could be... can anyone help??
Thank you in advance

ImportError: No module named threadedcommentsdjango_comments while use django-threadedcomments app

I am trying to use django-threadedcomments app to allow comments in my website following the configurations mentioned https://pypi.python.org/pypi/django-threadedcomments. my installed apps are
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# for comments
'threadedcomments'
'django_comments',
'django.contrib.sites',
# installed apps
# APPS
'debug_toolbar',
#related to debug_toolbar
'haystack_panel',
'whoosh',
'haystack',
'taggit',
'question',
]
COMMENTS_APP = 'threadedcomments'
After adding the 'threadedcomments' app in the settings.py I am gettting the error when I run python manage.py migrate or python manage.py runserver
ImportError: No module named threadedcommentsdjango_comments
Full Error Trace
however the code works fine without 'threadedcomments' and with 'django_comments'.
I am using django 1.8.8 and posgres9.5. please help.
note:
I have already installed 'threadedcomments' app in my venv.
OK, In your settings you are missing ','(comma):
'threadedcomments'
'django_comments',
===>
'threadedcomments',
'django_comments',
If you were accurate you can find that in your own screen:
No module named threadedcommentsdjango_comments
there is no split between two packages.

Django Celery installation Error

I'm been trying to install celery for a couple of days and the problem , I'm facing is . when I try to do manage.py syncd . I get the error message .
C:\o\17\mysite>manage.py syncdb
Error: No module named djcelery
When I already successfully installed the celery using easy_install
C:\o\17\mysite>easy_install django-celery
Searching for django-celery
Best match: django-celery 3.0.17
Processing django_celery-3.0.17-py2.6.egg
django-celery 3.0.17 is already the active version in easy-install.pth
Installing djcelerymon script to C:\Python26\Scripts
Installing djcelerymon-script.py script to C:\Python26\Scripts
Installing djcelerymon.exe script to C:\Python26\Scripts
Installing djcelerymon.exe.manifest script to C:\Python26\Scripts
Using c:\python26\lib\site-packages\django_celery-3.0.17-py2.6.egg
Processing dependencies for django-celery
Finished processing dependencies for django-celery
I already set up my broker which is the django database i'm using.
BROKER_URL = 'django://'
I added djcelery to installed_app
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'pet',
'kombu.transport.django',
'djcelery ',
)
I also added the following lines to my setting.py
import djcelery
djcelery.setup_loader()
I have experience in installing django plugins before , I just don't understand why this won't let me syncdb at cmd
What am I doing wrong? Can someone please help me :)
I think the problem is with a space char at the end of djcelery in INSTALLED_APPS. Try to remove it and run syncdb again. Hope that helps.
Try:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'pet',
'kombu.transport.django',
'djcelery ',
)

django gravatar not getting picked up as a module - what am i doing wrong?

so here is my problem - the gravatar app (from google projects - here! http://code.google.com/p/django-gravatar/) in my django project crashed everything on startup.
i get this error Error: No module named gravatar
this is my installed apps:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'dumpstown.dumpstownapp',
'bootstrap_toolkit',
'registration',
'gravatar'
)
and from the console when i run this:
>> import sys
>> print sys.path
['', 'C:\\development\\python\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg',
'C:\\development\\python\\lib\\site-packages\\pip-1.1-py2.7.egg', 'C:\\developm
ent\\PycharmProjects\\lib\\gravatar', 'C:\\Windows\\system32\\python27.zip', 'C:
\\development\\python\\DLLs', 'C:\\development\\python\\lib', 'C:\\development\\
python\\lib\\plat-win', 'C:\\development\\python\\lib\\lib-tk', 'C:\\development
\\python', 'C:\\development\\python\\lib\\site-packages']
what am i missing here?
UPDATE
huh, weird. I've checked the gravatar folder, and i have
templatetags dir
__init__.py
models.py
views.py
also, if i change the installed apps section to read:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'dumpstown.dumpstownapp',
'bootstrap_toolkit',
'registration',
'templatetags'
)
then the server starts up fine and runs. But i... i'm all confused now! Am i meant to import the templatetags? or something else? how do i refer to the gravatar stuff if i'm importing templatetags??
EDIT: Solved.
I just don't understand how python works, it would seem! I was totally adding the wrong item to the pythonpath - i was adding C:\\development\\PycharmProjects\\lib\\gravatar, where i should have really been adding C:\\development\\PycharmProjects\\lib
this solved the problem, and now i can use gravatar as i want. The settings.py entry is as above in my first example (that is, just 'gravatar') and the way i use it is i just {% load gravatar %}
hurrah!
Possibly you checked out the trunk folder and have a structure like ..\gravatar\gravatar? The setup.py script should install it somewhere your path but you could also try changing C:\developm ent\PycharmProjects\lib\gravatar to C:\developm ent\PycharmProjects\lib\gravatar\gravatar
Totally adding the wrong item to the pythonpath - i was adding C:\development\PycharmProjects\lib\gravatar, where i should have really been adding C:\development\PycharmProjects\lib

Jython, Django with Sqlite3

Now I create project by using jython 2.5.2b2 and django1.1.1 (lucid) , after download sqlitejdbc-v056.jar and do some syncdb task it's shown
"zxJDBC.Error: auth_permission.content_type_id may not be NULL [SQLCode: 0]"
but still can runserver, anyone has some great example for this situation?
Try to reorder django.contrib.auth in INSTALLED_APPS in settings.py
From
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
)
To
INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.auth',
)
I have recreated this error on OS X with Jython 2.5.2 and Django 1.1.1. However the documentation for the 'django-jython' package (which provide the glue between Django on Jython and various databases) has the following on SQLite3 support:
SQLite3
Experimental. By now, use it only if you are working on improving it.
Or if you are really adventurous.