hi i am new to this group
i have installed apache2 and django 0.96 with mysql. i have a small
application installed with this setup. now when i start admin page it
shows plain page without any look and feel. i can see it with django
internal server. i read previous article on it and made some changes
but still does not work.  other things are working just fine. my
configuration is as follows:

lines added in httpd.conf file

Alias /media/ "/usr/local/lib/python2.5/site-packages/django/contrib/
admin/media/"

<Directory /usr/local/lib/python2.5/site-packages/django/contrib/admin/
media/>
        Order Deny,Allow
        Allow from all
</Directory>

remaining is same

settings.py and urls.py is set according to django official guide as
things are working with django internal server

access_log shows
127.0.0.1 - - [23/May/2007:07:09:55 -0500] "GET /admin HTTP/1.1" 301
-     this line appears only once when i make some change in
httpd.conf
127.0.0.1 - - [23/May/2007:07:09:55 -0500] "GET /admin/ HTTP/1.1" 200
1620
127.0.0.1 - - [23/May/2007:07:09:56 -0500] "GET /media/css/login.css
HTTP/1.1" 404 2647

yes one more thing i would like to add is previous http status code
was of access denied  unauthorized access 401 before i made above
changes to httpd.conf. if it was unauthorized then how come it went
missing after these changes and if i comment above changes it still
shows 404 instead of 401.

i have also have dojo installed and when i called dojo without any
changes to httpd.conf it was showing 401. now after those changes it
is saying 200 OK. also if i remove those changes from httpd.conf it
still says 200 OK. very strange. i am restarting apache all the time i
make changes. even i tried restarting computer but nothing.

i am using dojo as follows:

<html>
  <head>
    <title></title>
    <meta content="">
    <style></style>
<script type="text/javascript" src="media/js/dojo/dojo.js"></script>
    <!-- SECTION 2 -->
    <script type="text/javascript">
      dojo.require("dojo.event.*");
      dojo.require("dojo.widget.*");
      dojo.require("dojo.widget.Button");

      function helloPressed()
      {
        alert('You pressed the button');
      }

      function init()
      {
        var helloButton = dojo.widget.byId('helloButton');
        dojo.event.connect(helloButton, 'onClick', 'helloPressed')
      }

      dojo.addOnLoad(init);
    </script>

  </head>
  <body>
<button dojoType="Button" widgetId="helloButton">Hello World!</button>
    </body>
</html>

with
Alias /media/ "/usr/local/lib/python2.5/site-packages/django/contrib/
admin/media/"
in httpd.conf

it is loading but not working having following error in javascript
console
No. 1
Error: missing } in XML expression
Source File: http://localhost/test/media/js/dojo/dojo.js
            alert ('You pressed the button');
and No 2
Error: dojo is not defined
Source File: http://localhost/test/

help on these above topics is required as soon as possible

thanks in advance

Dushyant


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to