django-request / django-request

django-request is a statistics module for django. It stores requests in a database for admins to see, it can also be used to get statistics on who is online etc.

Home Page:https://django-request.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No table Error: requests_requests

jr177 opened this issue · comments

commented

Django version 2.2.3

Trying to run django-requests.

I followed the steps in the docs and the app installed. I ran manage.py migrate. However, when I try to now run my app, it seems that the app cannot find the tables, i.e. the request table was never built.

This is the error:
no such table: request_request

Here is my migrations:

Operations to perform:
  Apply all migrations: admin, auth, catalog, contenttypes, djcelery, sessions
Running migrations:
  No migrations to apply.

Here is my settings.py

INSTALLED_APPS = [
    'django.contrib.contenttypes',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'catalog',
    'requests',
    'djcelery',
]

MIDDLEWARE = [
    'django_bot_crawler_blocker.django_bot_crawler_middleware.CrawlerBlockerMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'request.middleware.RequestMiddleware'
]

You made a typo in INSTALLED_APPS. It should be 'request' instead of 'requests'.

commented

Thank you - I really appreciate it! Sorry I'm dyslexic.