I have followed the celery documentation. yesterday i am able to update the Djcelery models in my Django admin. But today i am not able to update those models. I installed Django toolbar yesterday does it have any impact on functionality
Below is the Django admin screen shot with DDT included in settings.py
Below is the screenshot of Django admin without DDT included in setting.py
Installed Apps
INSTALLED_APPS = (
# django stuff
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# plugins
'precompressed', # https://github.com/jhmaddox/django-precompressed
'social.apps.django_app.default', # http://python-social-auth.readthedocs.org/en/latest/configuration/django.html
'rest_framework', # https://github.com/tomchristie/django-rest-framework
'djcelery', # https://github.com/celery/django-celery
'celery_admin', # https://github.com/mattcaldwell/django-celery-admin-ext
'taggit', # https://github.com/alex/django-taggit
'south', # http://south.readthedocs.org/en/latest/
'storages', # http://django-storages.readthedocs.org/en/latest/
'redactor', # https://github.com/douglasmiranda/django-wysiwyg-redactor
'haystack', # http://django-haystack.readthedocs.org/en/latest/toc.html
'boomers.apps.djangoratings', #https://github.com/dcramer/django-ratings
'crowdsourcing',
# apps
'apps',
'apps.billing.chase',
'apps.billing.paypal',
'apps.billing.amazon',
'apps.config',
'apps.users',
'apps.learn',
'apps.community',
'api.careerbuilder',
'apps.care',
'apps.go',
'apps.play',
'apps.plan',
'apps.uplus',
'apps.billing',
'apps.googleanalytics',
)
and i have appended this INSTALLED_APPS += ('debug_toolbar',)
Related
Hello everyone.
This is the first time I ask for help on StackOverflow, so please forgive me if my question here is clear enough... I will gladly provide anything you ask me for in order to have a better understanding of this issue
I have Django project that is not importing a model from an app that is registered on my settings.
This app has been working good until 2 day ago, but I haven't made any changes related to models.
I have tried many things to fix this issue but still giving me the same error...
I can't import anything coming from the models on any of my apps...
This is very frustrating. Please some advise
INSTALLED_APPS = (
# Django Applications
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.sitemaps',
# 'satchmo_store.shop',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'django.contrib.messages',
'django_comments',
'django.contrib.humanize',
# Reorder admin apps
'admin_reorder',
# Third Party Django Applications
## 'django_extensions',
'photologue',
'sorl.thumbnail',
'filebrowser',
'widget_tweaks',
'snowpenguin.django.recaptcha2',
'tinymce',
'django_extensions',
'model_utils',
'cart',
'anymail',
'rest_framework',
'storages',
# 'django_s3_storage',
'my_project.libs.chunks',
'my_project.apps.definition',
'my_project.apps.makeaword',
'my_project.apps.tellinstories',
'my_project.apps.wordsearch',
'my_project.libs.payflowpro',
# Project Applications
'my_project.apps.accounts',
'my_project.apps.book',
'my_project.apps.general',
'my_project.apps.illustrate',
'my_project.apps.write',
'my_project.apps.pressroom',
'my_project.apps.images',
'my_project.apps.comic',
'my_project.apps.library',
'my_project.apps.reports',
'my_project.apps.orders',
'my_project.apps.gift_cards',
'my_project.apps.stationary',
'my_project.apps.invoices',
'my_project.apps.cart_itt',
)
Import like:
from general.models import GiftCardOrders
I want to have admin module available to tenants (using django-tenant-schema).
My apps section of settings.py:
# Application definition
SHARED_APPS = (
'tenant_schemas', # mandatory, should always be before any django app
'customers', # you must list the app where your tenant model resides in
# 'django.contrib.sites',
# everything below here is optional
)
TENANT_APPS = (
'django.contrib.contenttypes',
# your tenant-specific apps
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
INSTALLED_APPS = (
'tenant_schemas', # mandatory, should always be before any django app
'customers',
# 'django.contrib.sites', #using this will cause error - see my stackoverflow question
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
I have set up 2 schemas (tenant1 and public). Created superuser and can see that superuser is created within tenant1 schema. However when trying to log in at tenant1.domain.com/admin, getting login screen but after entering credentials keep getting:
ProgrammingError at /admin/login/ relation "auth_user" does not exist
Looks like it is not picking up my tenant1 schema?
What I have to change in configuration?
Make sure tenant middleware is installed.
It's responsible for negotiating which tenant is called and connecting to the right schemas.
I have a trouble with plugging recently created app called pages into a django project.
My pages apps.py
from django.apps import AppConfig
class PagesConfig(AppConfig):
name = 'pages'
My settings.py, installed apps:
INSTALLED_APPS = [
'pages.apps.PagesConfig' # pages.apps.pages fails too
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
ImportError: No module named 'pages.apps.PagesConfigdjango';
'pages.apps' is not a package
Does anyonw knows what is wrong there? I did everything according the docs, but django still cannot to plug my app. Any insights appreciated.
You are missing a comma after your entry.
'pages.apps.PagesConfig',
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.
I'm following the Django-CMS introductory tutorial and have got everything working up to the point where I can run my server and access the admin interface.
However, when I add a page, I cannot select any plugin, it just says No Plugins present. Add a plugin to this placeholder-slot.
In my settings.py file I have:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'cms',
'mptt',
'menus',
'south',
'sekizai',
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
)
What am I doing wrong here?
Plugins in django-cms are being discovered by looking for cms_plugins module inside each of INSTALLED_APPS. Plugins shipped with the CMS are stored in several separate modules so you should add a line for each of your desired plugins:
INSTALLED_APPS = (
...
'cms.plugins.flash',
'cms.plugins.googlemap',
...
)