Main (#1) - [SOLVED]Problem with access to django admin page (#13) - Message List

[SOLVED]Problem with access to django admin page
 unsolved

Step 1.1.14

First, no graphic design is shown in the screenshot

 http://src.lgg.ru/wp-content/uploads/2011/12/django_admin_problem.png

I typed login django(DATABASE_USER = 'django') , and password (DATABASE_PASSWORD = 'fruit') from file settings.py, but don't open django admin page.

  • Message #31

    Step 1.1.14 First, no graphic design is shown in the screenshot  http://src.lgg.ru/wp-content/uploads/2011/12/django_admin_problem.png

    The simlink /path/to/openPLM/media/admin is certainly broken, it should link to /path/to/django/contrib/admin/media/

    I typed login django(DATABASE_USER = 'django') , and password (DATABASE_PASSWORD = 'fruit') from file settings.py, but don't open django admin page.

    You need to connect as the django superuser (created at step 1.1.6. Create the database), not the database user. If you don't remember its credentials, you can create another one with the command ./manage.py createsuperuser

    • Message #32

      Ок, I created new superuser, and admins page was shown.

      But simlink was true:

      ls -all /var/django/openPLM/trunk/openPLM/media/admin lrwxrwxrwx 1 root root 56 Янв 2 02:39 /var/django/openPLM/trunk/openPLM/media/admin -> /usr/lib/pymodules/python2.6/django/contrib/admin/media/

      And the localhost/ page looks like:

      """

      It works!

      This is the default web page for this server.

      The web server software is running but no content has been added, yet.

      """

      • Message #33

        Can you run ls -H /var/django/openPLM/trunk/openPLM/media/admin ? by default, ls does not check that the target exists.

        Maybe there is a problem in your apache configuration. You can try another url:  http://localhost/home/ or  http://localhost/object/create/?type=Part

        • Message #34

          Thank you!

          My distr. Debian 7.0 "Wheezy", link to admin module:

          ln -s /usr/lib/python2.6/dist-packages/django/contrib/admin/media/ /var/django/openPLM/trunk/openPLM/media/admin

          And openplm homepage is located at : localhost/login/

Attachments

No attachments created.