Server error message when runserver #1675

Closed
jimpsterbasic opened this Issue Mar 27, 2013 · 7 comments

Projects

None yet

6 participants

@jimpsterbasic

Captura de pantalla de 2013-03-26 21:37:59
When I run the tutorial given to configure django-cms, on 127.0.0.1:8000 on web browser shows the following message: "A server error occurred. Please contact the administrator."
I used sqlite.

What can be the problem?

@bikeshedder
Contributor

Did you set DEBUG=True in your settings? Do you get at traceback or an error message on the console?

@jimpsterbasic

I have set DEBUG=True. I can't see errors, I past the console:

jimpsterbasic@ubuntu:$ cd PRUEBA
jimpsterbasic@ubuntu:
/PRUEBA$ python manage.py syncdb --all
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table cms_placeholder
Creating table cms_cmsplugin
Creating table cms_page_placeholders
Creating table cms_page
Creating table cms_pagemoderator
Creating table cms_pagemoderatorstate
Creating table cms_globalpagepermission_sites
Creating table cms_globalpagepermission
Creating table cms_pagepermission
Creating table cms_pageuser
Creating table cms_pageusergroup
Creating table cms_title
Creating table menus_cachekey
Creating table south_migrationhistory

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'jimpsterbasic'):
E-mail address: jimpsterbasic@gmail.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:

django.contrib.auth
django.contrib.contenttypes
django.contrib.sessions
django.contrib.sites
django.contrib.messages
django.contrib.staticfiles
cms
mptt
menus
south
sekizai

Not synced (use migrations):

(use ./manage.py migrate to migrate these)
jimpsterbasic@ubuntu:~/PRUEBA$ python manage.py migrate --fake
Running migrations for cms:

  • Migrating forwards to 0036_auto__add_field_cmsplugin_changed_date.

    cms:0001_initial
    (faked)
    cms:0002_auto_start
    (faked)
    cms:0003_remove_placeholder
    (faked)
    cms:0004_textobjects
    (faked)
    cms:0005_mptt_added_to_plugins
    (faked)
    cms:0006_apphook
    (faked)
    cms:0007_apphook_longer
    (faked)
    cms:0008_redirects
    (faked)
    cms:0009_added_meta_fields
    (faked)
    cms:0010_5char_language
    (faked)
    cms:0011_title_overwrites
    (faked)
    cms:0012_publisher
    (faked)
    cms:0013_site_copy
    (faked)
    cms:0014_sites_removed
    (faked)
    cms:0015_modified_by_added
    (faked)
    cms:0016_author_copy
    (faked)
    cms:0017_author_removed
    (faked)
    cms:0018_site_permissions
    (faked)
    cms:0019_public_table_renames
    (faked)
    cms:0020_advanced_permissions
    (faked)
    cms:0021_publisher2
    (faked)
    cms:0022_login_required_added
    (faked)
    cms:0023_plugin_table_naming_function_changed
    (faked)
    cms:0024_added_placeholder_model
    (faked)
    cms:0025_placeholder_migration
    (faked)
    cms:0026_finish_placeholder_migration
    (faked)
    cms:0027_added_width_to_placeholder
    (faked)
    cms:0028_limit_visibility_in_menu_step1of3
    (faked)
    cms:0029_limit_visibility_in_menu_step2of3_data
    (faked)
    cms:0030_limit_visibility_in_menu_step3of3
    (faked)
    cms:0031_improved_language_code_support
    (faked)
    cms:0032_auto__del_field_cmsplugin_publisher_public__del_field_cmsplugin_publis
    (faked)
    cms:0033_auto__del_field_title_publisher_is_draft__del_field_title_publisher_st
    (faked)
    cms:0034_auto__chg_field_title_language__chg_field_cmsplugin_language__add_fiel
    (faked)
    cms:0035_auto__add_field_globalpagepermission_can_view__add_field_pagepermissio
    (faked)
    cms:0036_auto__add_field_cmsplugin_changed_date
    (faked)
    Running migrations for menus:

  • Migrating forwards to 0001_initial.

    menus:0001_initial
    (faked)
    jimpsterbasic@ubuntu:~/PRUEBA$ python manage.py runserver
    Validating models...

0 errors found
Django version 1.4, using settings 'PRUEBA.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

@jimpsterbasic

And after entering on 127.0.0.1:8000/, the terminal shows this:

Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 67, in call
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 219, in call
self.load_middleware()
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 53, in load_middleware
mw_instance = mw_class()
TypeError: auth() takes exactly 1 argument (0 given)

@digi604
Member
digi604 commented Feb 10, 2014

not reproducable

@digi604 digi604 added this to the Some Day milestone Feb 10, 2014
@yakky
Contributor
yakky commented May 28, 2014

Looking like a configuration error in the middleware section
I'd vote to close this

@jhonnrock

have the same problem how to solve ??

@yakky
Contributor
yakky commented May 2, 2015

@jhonnrock please provide more information: django and django CMS versions, project settings and traceback

@evildmp evildmp closed this Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment