Skip to content

Page Not found + Nginx #9

@bartmika

Description

@bartmika

I manage to get this library working on desktop, but when I try in a FreeBSD 10.2 environment with gunicorn and nginx, I keep getting a 404 error.

Page not found (404)
Request Method: GET
Request URL:    http://luchacomics.com/en/
Raised by:  cms.views.details
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

Inside my console screen I get the following output:

/usr/home/django/djangocms-cloudmasterstudios/env/lib/python3.4/site-packages/multisite/hacks.py:19: RuntimeWarning: 'default' cache is LocMemCache, which may cause stale caches.
  site_cache = SiteCache()

/usr/home/django/djangocms-cloudmasterstudios/env/lib/python3.4/site-packages/multisite/hacks.py:19: RuntimeWarning: 'default' cache is LocMemCache, which may cause stale caches.
  site_cache = SiteCache()

/usr/home/django/djangocms-cloudmasterstudios/env/lib/python3.4/site-packages/multisite/hacks.py:19: RuntimeWarning: 'default' cache is LocMemCache, which may cause stale caches.
  site_cache = SiteCache()

   New revision!!!! RELOAD!
      3f8b3e18-dd1e-4af7-8096-c5b9c125862a (<class 'str'>)
   -> None (<class 'NoneType'>)
reverse('my_test_app_view'): Reverse for 'my_test_app_view' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
reverse('my_test_app_view'): Reverse for 'my_test_app_view' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

My nginx looks like follows:

server {
        server_name luchacomics.com;

        access_log off;

        gzip on;  # Requires 'HTTP_GUNZIP_FILTER' module.

        client_max_body_size 0;  # Unlimited Upload File Size

        location / {
            proxy_pass_header Server;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Scheme $scheme;
        proxy_connect_timeout 10;
        proxy_read_timeout 10;
        proxy_pass http://localhost:8001/;
        }
  }

My gunicorn is:

command = '/usr/home/django/djangocms-cloudmasterstudios/env/bin/gunicorn'
pythonpath = '/usr/home/django/djangocms-cloudmasterstudios'
bind = '127.0.0.1:8001'
workers = 3

I don't understand why I am getting this problem and am wondering if you get something similar? I get this error when I want to try this out in a server environment.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions