Re: Urgent: django app got internal error: TemplateDoesNotExist: 500.html

2011-12-19 Thread huseyin yilmaz
It looks to me like you do not have 500.html file in your base
template directory. If you have a server error in production mode
(DEBUG = False), django will show 500.html to users. So users will not
see actual error message. But you will get that message by email.
Since you do not have 500.html it gives you template does not exist
error instead of actual error message. This will not help you to solve
your problem, but at least it will help you identify it.

On Dec 19, 9:24 pm, Ashkan Roshanayi 
wrote:
> I tried to live edit base.py template but now my app has internal error. I
> undo the changes but still get 500 error while accessing website. Tail -f
> of my application_name.log shows:
>
>
>
>
>
>
>
>
>
>
>
> >   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> > line 108, in __init__
> >     self.nodelist = compile_string(template_string, origin)
> >   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> > line 136, in compile_string
> >     return parser.parse()
> >   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> > line 237, in parse
> >     self.invalid_block_tag(token, command, parse_until)
> >   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> > line 291, in invalid_block_tag
> >     raise self.error(token, "Invalid block tag: '%s'" % command)
> > TemplateSyntaxError: Invalid block tag: '%20get_static_prefix%20'
>
> And tail -f of error.log shows:
>
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]     return
>
>
>
>
>
>
>
>
>
> > callback(request, **param_dict), referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
> > line 93, in _wrapped_view, referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]     response =
> > view_func(request, *args, **kwargs), referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/views/defaults.py",
> > line 30, in server_error, referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]     t =
> > loader.get_template(template_name) # You need to create a 500.html
> > template., referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> > line 157, in get_template, referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]     template,
> > origin = find_template(template_name), referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> > line 138, in find_template, referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]     raise
> > TemplateDoesNotExist(name), referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> > TemplateDoesNotExist: 500.html, referer:
> >http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6...
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] mod_wsgi
> > (pid=2688): Exception occurred processing WSGI script
> > '/home/jalala/projects/Hamkharid/bin/django.wsgi'.
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] Traceback
> > (most recent call last):
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py",
> > line 272, in __call__
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]     response =
> > self.get_response(request)
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> > "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
> > line 169, in get_response
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]     response =
> > self.handle_uncaught_exception(request, resolver, sys.exc_info())
> > [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> > 

Re: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
On 12/19/2011 05:52 PM, kenneth gonsalves wrote:
> On Tue, 2011-12-20 at 02:23 +1100, Alec Taylor wrote:
>> I am testing each of the ones thus far recommended (even though I hate
>> Eclipse with a vengeance :3). My results you'll find succeeding: [pun
>> intended!] 
> 
> could you put the results in the wiki as and when you test. I personally
> am getting a bit tired of the frequent threads on this subject (must
> have crossed a hundred by now). btw I vote for geany.

I started doing a fairly in depth comparison to try and find stuff I can
recommend to co-workers. Will be happy to post the results when it's
done but would also like to invite people to participate.

https://docs.google.com/spreadsheet/ccc?key=0Am9fdRd4qa9DdHI4UUdqbFI1cDFzTTI3cmkxcVY4V2c

Emacs, Vim etc are not on the list because those are too complicated for
GUI oriented folks, though I agree if you like either of those editors
or lots of keyboard shortcuts to explore those.

For the most part commercial editors are off the list too because many
of them are more than $100 a license per year which is too expensive for
a university lab of 20 people where most of the people only write short
scripts. If you code for a living in the tech world and get paid
decently I can see why PyCharm or WingIDE would be great options.

Thanks,
Alex

PS: email directly your gmail capable email address if you want to help
fill out the report.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
Code completion is subpar, actually one of the worst python editors for
that because you have to pregenerate the lists.

Enjoy,
Alex

On 12/19/2011 04:08 AM, Parisson wrote:
> Eric has a bad logo but does everything you need.
> It is written in Python / Qt and is far faster and lighter than PyCharm (Java
> based) here..
> http://eric-ide.python-projects.org/
> 
> Yomguy
> 
> On 19/12/2011 11:34, Alec Taylor wrote:
>> I'm looking for a Django IDE which incorporates the following features:
>> - Syntax-highlighting
>> - Projects (all code file of the project shown separated by directory
>> in a sidebar)
>> - Tabs (with close buttons on tab)
>> - Code-completion (with good introspection)
>> - Text-zoom support
>> - Start/stop Django server
>> - Run+restart Django server shell (manage.py shell) in project (i.e. below 
>> code)
>>
>> I program on Windows and Linux, so it would be great if the IDE is
>> supported on both platforms.
>>
>> Previously I was using Editra, but I requested an automatic import
>> into embedded interpreter feature in April, which they still haven't
>> integrated. So I am looking at alternatives :)
>>
>> Thanks for all suggestions,
>>
>> Alec Taylor
>>
> 

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Alex Mandel
On 12/19/2011 07:42 AM, Masklinn wrote:
> On 2011-12-19, at 16:30 , Andre Terra wrote:
>>
>> What do you mean by embedded Django interpreter? An instance of python
>> running within Aptana?
> 
> Django performs a bunch of setup which allow for easy import and manipulation 
> of the objects related to the instance, which is the reason why django has a 
> `shell` management command wrapping the Python shell.
> 

Yes it has that
http://pydev.org/manual_adv_django.html

Enjoy,Alex

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Vikas Ruhil
Go for Vim it is great for django  you really feel like a superuser , just
search Google Vim as python Modern IDE !!

On Tue, Dec 20, 2011 at 12:42 PM, huseyin yilmaz wrote:

> I was going to say emacs, but since you also use windows, Aptana would
> be a better fit.
>
>
> On Dec 19, 12:34 pm, Alec Taylor  wrote:
> > I'm looking for a Django IDE which incorporates the following features:
> > - Syntax-highlighting
> > - Projects (all code file of the project shown separated by directory
> > in a sidebar)
> > - Tabs (with close buttons on tab)
> > - Code-completion (with good introspection)
> > - Text-zoom support
> > - Start/stop Django server
> > - Run+restart Django server shell (manage.py shell) in project (i.e.
> below code)
> >
> > I program on Windows and Linux, so it would be great if the IDE is
> > supported on both platforms.
> >
> > Previously I was using Editra, but I requested an automatic import
> > into embedded interpreter feature in April, which they still haven't
> > integrated. So I am looking at alternatives :)
> >
> > Thanks for all suggestions,
> >
> > Alec Taylor
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 

Thanks & Regards,
Vikash Ruhil | CTO | Mob : +91-97174-82118 | Ph : +91-11-27581821  |
Website: www.ruasys.com
Connect With Me:  Twitter   ** Lin
kedIn 
**Tungle.me
  ** Blog RSS 
Contact me:  vikasru...@ruasys.com | [image: Skype/] vikas.ruhil |
vikasruhi...@gmail.com

[image: cid:image001.png@01CB7110.586FF9E0]



* Please do not print this email unless it is absolutely necessary. *

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.ruasys.com

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

<>

Re: Which IDE should I use for Django?

2011-12-19 Thread huseyin yilmaz
I was going to say emacs, but since you also use windows, Aptana would
be a better fit.


On Dec 19, 12:34 pm, Alec Taylor  wrote:
> I'm looking for a Django IDE which incorporates the following features:
> - Syntax-highlighting
> - Projects (all code file of the project shown separated by directory
> in a sidebar)
> - Tabs (with close buttons on tab)
> - Code-completion (with good introspection)
> - Text-zoom support
> - Start/stop Django server
> - Run+restart Django server shell (manage.py shell) in project (i.e. below 
> code)
>
> I program on Windows and Linux, so it would be great if the IDE is
> supported on both platforms.
>
> Previously I was using Editra, but I requested an automatic import
> into embedded interpreter feature in April, which they still haven't
> integrated. So I am looking at alternatives :)
>
> Thanks for all suggestions,
>
> Alec Taylor

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Coloring some particular lines in log files

2011-12-19 Thread himabindu
Hi,

  Iam developing an application in django where I have to color some
lines in a file based on some pattern and display the whole log file
in web page.

 Like if a line has "error" word, the line has to be displayed in red
color.
So far i was just reading the file and sending to html through ajax
call and displaying on the browser. Now while displaying i have to
differentiate the lines having a perticular keyword by colors, I want
to do the coloring at the python side and not at html side.
I am reading a file , identifying the line which has the keyword using
regular expression, now i have to color that line.

It will be very useful for me if anyone could solve my problem.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread cougar cougar
pycharm is good,but not free

you can try ulipad:
Ulipad is a wxPython powered, programmer oriented and flexible editor. It
has many features such as class browser, code auto-complete, html viewer,
directory browser, wizard and many others. The most interesting and
distinctive feature is the use of mixin technique which makes Ulipad an
easy-to-extend programming environment. You can write your own mixins,
plugins or simple scripts, and all of them can be integrated in Ulipad in a
seamless way.

2011/12/20 kenneth gonsalves 

> On Tue, 2011-12-20 at 02:23 +1100, Alec Taylor wrote:
> > I am testing each of the ones thus far recommended (even though I hate
> > Eclipse with a vengeance :3). My results you'll find succeeding: [pun
> > intended!]
>
> could you put the results in the wiki as and when you test. I personally
> am getting a bit tired of the frequent threads on this subject (must
> have crossed a hundred by now). btw I vote for geany.
> --
> regards
> Kenneth Gonsalves
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread kenneth gonsalves
On Tue, 2011-12-20 at 02:23 +1100, Alec Taylor wrote:
> I am testing each of the ones thus far recommended (even though I hate
> Eclipse with a vengeance :3). My results you'll find succeeding: [pun
> intended!] 

could you put the results in the wiki as and when you test. I personally
am getting a bit tired of the frequent threads on this subject (must
have crossed a hundred by now). btw I vote for geany.
-- 
regards
Kenneth Gonsalves

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How do I prevent messages getting cached?

2011-12-19 Thread nathan
Thanks Torsten. This seems to be what I was looking for.

On Dec 20, 12:11 am, Torsten Bronger 
wrote:
> Hall chen!
>
> Nathan Geffen writes:
> > I am using per-view caching in version 1.3 and would prefer to avoid
> > caching in my templates as far as possible. However, I've hit a snag.
> > If the messaging framework generates a message for a cached view, one
> > of two things happen:
>
> > 1. If the page is not yet in cache, the page gets cached with the
> > message in it. So next time a user goes to the page, they get an old
> > message.
>
> > 2. If the page is already in cache, the message isn't displayed.
>
> I thinkhttps://code.djangoproject.com/ticket/13894is related to
> this.
>
> Tsch ,
> Torsten.
>
> --
> Torsten Bronger    Jabber ID: torsten.bron...@jabber.rwth-aachen.de
>                                   orhttp://bronger-jmp.appspot.com

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How do I prevent messages getting cached?

2011-12-19 Thread Torsten Bronger
Hallöchen!

Nathan Geffen writes:

> I am using per-view caching in version 1.3 and would prefer to avoid
> caching in my templates as far as possible. However, I've hit a snag.
> If the messaging framework generates a message for a cached view, one
> of two things happen:
>
> 1. If the page is not yet in cache, the page gets cached with the
> message in it. So next time a user goes to the page, they get an old
> message.
>
> 2. If the page is already in cache, the message isn't displayed.

I think https://code.djangoproject.com/ticket/13894 is related to
this.

Tschö,
Torsten.

-- 
Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de
  or http://bronger-jmp.appspot.com

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How do I prevent messages getting cached?

2011-12-19 Thread Andres Reyes
You could use the cache template tag

https://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-caching

And cache only certain parts of your template and not all of it

2011/12/18 Nathan Geffen :
> Hi
>
> I am using per-view caching in version 1.3 and would prefer to avoid
> caching in my templates as far as possible. However, I've hit a snag.
> If the messaging framework generates a message for a cached view, one
> of two things happen:
>
> 1. If the page is not yet in cache, the page gets cached with the
> message in it. So next time a user goes to the page, they get an old
> message.
>
> 2. If the page is already in cache, the message isn't displayed.
>
> Is there a simple way to address this? Perhaps something I can put in
> a vary_on_headers decoration? Or is there a simple way to tell Django
> to put the message into a query string so that the page with the
> message is cached separately from the page without the message?
>
> Thanks.
>
> --
> 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 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Andrés Reyes Monge
armo...@gmail.com
+(505)-8873-7217

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Urgent: django app got internal error: TemplateDoesNotExist: 500.html

2011-12-19 Thread Nikolas Stevenson-Molnar
Also, your "undo" may not have been picked up by the app; I would also
try restarting your webserver.

_Nik

On 12/19/2011 11:24 AM, Ashkan Roshanayi wrote:
> I tried to live edit base.py template but now my app has internal
> error. I undo the changes but still get 500 error while accessing
> website. Tail -f of my application_name.log shows:
>
>
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 108, in __init__
> self.nodelist = compile_string(template_string, origin)
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 136, in compile_string
> return parser.parse()
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 237, in parse
> self.invalid_block_tag(token, command, parse_until)
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 291, in invalid_block_tag
> raise self.error(token, "Invalid block tag: '%s'" % command)
> TemplateSyntaxError: Invalid block tag: '%20get_static_prefix%20'
>
>
> And tail -f of error.log shows:
>
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> return callback(request, **param_dict), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
> line 93, in _wrapped_view, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> response = view_func(request, *args, **kwargs), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/views/defaults.py",
> line 30, in server_error, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] t
> = loader.get_template(template_name) # You need to create a
> 500.html template., referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> line 157, in get_template, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> template, origin = find_template(template_name), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> line 138, in find_template, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> raise TemplateDoesNotExist(name), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> TemplateDoesNotExist: 500.html, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> mod_wsgi (pid=2688): Exception occurred processing WSGI script
> '/home/jalala/projects/Hamkharid/bin/django.wsgi'.
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> Traceback (most recent call last):
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py",
> line 272, in __call__
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> response = self.get_response(request)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
> line 169, in get_response
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> response = self.handle_uncaught_exception(request, resolver,
> sys.exc_info())
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
> line 218, in handle_uncaught_exception
> [Mon Dec 19 

Re: Urgent: django app got internal error: TemplateDoesNotExist: 500.html

2011-12-19 Thread Nikolas Stevenson-Molnar
It looks like your changes weren't undone correctly, given the "Invalid
block tag" error. I would double check that tag, make sure it is
correct, and make sure than any required loading is done for that tag to
be available to the template.

The other error (TemplateDoesNotExist) is really related to the first
error: the first error would show a "500" page to the user, but since
you don't have a 500.html template defined, you get the
"TemplateDoesNotExist" instead.

_Nik

On 12/19/2011 11:24 AM, Ashkan Roshanayi wrote:
> I tried to live edit base.py template but now my app has internal
> error. I undo the changes but still get 500 error while accessing
> website. Tail -f of my application_name.log shows:
>
>
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 108, in __init__
> self.nodelist = compile_string(template_string, origin)
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 136, in compile_string
> return parser.parse()
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 237, in parse
> self.invalid_block_tag(token, command, parse_until)
>   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
> line 291, in invalid_block_tag
> raise self.error(token, "Invalid block tag: '%s'" % command)
> TemplateSyntaxError: Invalid block tag: '%20get_static_prefix%20'
>
>
> And tail -f of error.log shows:
>
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> return callback(request, **param_dict), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
> line 93, in _wrapped_view, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> response = view_func(request, *args, **kwargs), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/views/defaults.py",
> line 30, in server_error, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] t
> = loader.get_template(template_name) # You need to create a
> 500.html template., referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> line 157, in get_template, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> template, origin = find_template(template_name), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
> line 138, in find_template, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> raise TemplateDoesNotExist(name), referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]
> TemplateDoesNotExist: 500.html, referer:
> 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> mod_wsgi (pid=2688): Exception occurred processing WSGI script
> '/home/jalala/projects/Hamkharid/bin/django.wsgi'.
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> Traceback (most recent call last):
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py",
> line 272, in __call__
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]
> response = self.get_response(request)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File
> 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
> line 169, in get_response
> [Mon Dec 19 13:22:55 

Urgent: django app got internal error: TemplateDoesNotExist: 500.html

2011-12-19 Thread Ashkan Roshanayi
I tried to live edit base.py template but now my app has internal error. I 
undo the changes but still get 500 error while accessing website. Tail -f 
of my application_name.log shows:
>
>
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 108, in __init__
> self.nodelist = compile_string(template_string, origin)
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 136, in compile_string
> return parser.parse()
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 237, in parse
> self.invalid_block_tag(token, command, parse_until)
>   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/base.py",
>  
> line 291, in invalid_block_tag
> raise self.error(token, "Invalid block tag: '%s'" % command)
> TemplateSyntaxError: Invalid block tag: '%20get_static_prefix%20'


And tail -f of error.log shows:

[Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] return 
> callback(request, **param_dict), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
>  
> line 93, in _wrapped_view, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] response = 
> view_func(request, *args, **kwargs), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/views/defaults.py",
>  
> line 30, in server_error, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] t = 
> loader.get_template(template_name) # You need to create a 500.html 
> template., referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
>  
> line 157, in get_template, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] template, 
> origin = find_template(template_name), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/template/loader.py",
>  
> line 138, in find_template, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] raise 
> TemplateDoesNotExist(name), referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:28 2011] [error] [client 188.158.186.121] 
> TemplateDoesNotExist: 500.html, referer: 
> http://go.madmimi.com/redirects/5e9c3ec9b21e58257eadd15120210f5c?pa=6799748107
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] mod_wsgi 
> (pid=2688): Exception occurred processing WSGI script 
> '/home/jalala/projects/Hamkharid/bin/django.wsgi'.
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] Traceback 
> (most recent call last):
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py",
>  
> line 272, in __call__
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> self.get_response(request)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
>  
> line 169, in get_response
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> self.handle_uncaught_exception(request, resolver, sys.exc_info())
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
>  
> line 218, in handle_uncaught_exception
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] return 
> callback(request, **param_dict)
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206]   File 
> "/home/jalala/projects/Hamkharid/eggs/Django-1.3.1-py2.7.egg/django/utils/decorators.py",
>  
> line 93, in _wrapped_view
> [Mon Dec 19 13:22:55 2011] [error] [client 109.125.144.206] response = 
> view_func(request, *args, **kwargs)
> [Mon Dec 19 13:22:55 2011] [error] 

Re: auth.login function not working as expected

2011-12-19 Thread DrBloodmoney
On Sun, Dec 18, 2011 at 4:25 PM, Abraham Yusuf  wrote:
> Hi all,
> I'm trying to login a user using django's authentication backend with the 
> following:
> user=auth.authenticate(userid,pass)
> if user:
>   if user.is_active:
>      auth.login(request,user)
> I am getting TypeError login() takes exactly 1 argument (2 given). I've 
> checked the docs and i can't find any problem there. Pls any help will be 
> appreciated. Am using django 1.3.1, python 2.7 on ubuntu 11.04.

It sounds like you have solved your problem. In case you haven't, in
the auth.login() call above you have request  user instead of
request  user. That would also give you the same error.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ¿why put an input with the hash?

2011-12-19 Thread creecode
Hello,

It might help us to better answer your question if you explained why you 
need to see the raw password?

Toodle-lo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/05_hWvrb8eYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ¿why put an input with the hash?

2011-12-19 Thread Nikolas Stevenson-Molnar
The admin interface is just a view into your database, and the password
hash is what's in your database.

_Nik

On 12/19/2011 9:57 AM, zodman vr wrote:
> It is a dump ass question.
>
> But why on django admin/auth/user put the input with hash of the
> password ?¿
>
> this not make sense to me!
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/i6cR-LlvVNkJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



¿why put an input with the hash?

2011-12-19 Thread zodman vr
It is a dump ass question.

But why on django admin/auth/user put the input with hash of the password ?¿

this not make sense to me!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/i6cR-LlvVNkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Ovnicraft
On Mon, Dec 19, 2011 at 8:24 AM, Ozgur Vatansever  wrote:

> Emacs + django-mode works well.
> https://code.djangoproject.com/wiki/Emacs


Totally agree, emacs is faster, better and light.

Regards,

>
>
> On 19.12.2011 12:34, Alec Taylor wrote:
> > I'm looking for a Django IDE which incorporates the following features:
> > - Syntax-highlighting
> > - Projects (all code file of the project shown separated by directory
> > in a sidebar)
> > - Tabs (with close buttons on tab)
> > - Code-completion (with good introspection)
> > - Text-zoom support
> > - Start/stop Django server
> > - Run+restart Django server shell (manage.py shell) in project (i.e.
> below code)
> >
> > I program on Windows and Linux, so it would be great if the IDE is
> > supported on both platforms.
> >
> > Previously I was using Editra, but I requested an automatic import
> > into embedded interpreter feature in April, which they still haven't
> > integrated. So I am looking at alternatives :)
> >
> > Thanks for all suggestions,
> >
> > Alec Taylor
> >
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Cristian Salamea
@ovnicraft

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread william ratcliff
Wing IDE

Syntax highlighting
Command completion
Awesome debugging--I can put breakpoints not just on the server, but also
in templates!

It is paid, but for me is worth it for the productivity.
On Dec 19, 2011 12:20 PM, "Marcos Moyano"  wrote:

> emacs +1
>
> On Mon, Dec 19, 2011 at 1:46 PM, george  wrote:
>
>> emacs +1
>>
>> On Dec 19, 3:42 pm, Masklinn  wrote:
>> > On 2011-12-19, at 16:30 , Andre Terra wrote:
>> >
>> >
>> >
>> > > What do you mean by embedded Django interpreter? An instance of python
>> > > running within Aptana?
>> >
>> > Django performs a bunch of setup which allow for easy import and
>> manipulation of the objects related to the instance, which is the reason
>> why django has a `shell` management command wrapping the Python shell.
>>
>> --
>> 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
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> Some people, when confronted with a problem, think “I know, I'll use
> regular expressions.” Now they have two problems.
>
> Jamie Zawinski, in comp.emacs.xemacs
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Which IDE should I use for Django?

2011-12-19 Thread Marcos Moyano
emacs +1

On Mon, Dec 19, 2011 at 1:46 PM, george  wrote:

> emacs +1
>
> On Dec 19, 3:42 pm, Masklinn  wrote:
> > On 2011-12-19, at 16:30 , Andre Terra wrote:
> >
> >
> >
> > > What do you mean by embedded Django interpreter? An instance of python
> > > running within Aptana?
> >
> > Django performs a bunch of setup which allow for easy import and
> manipulation of the objects related to the instance, which is the reason
> why django has a `shell` management command wrapping the Python shell.
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Some people, when confronted with a problem, think “I know, I'll use
regular expressions.” Now they have two problems.

Jamie Zawinski, in comp.emacs.xemacs

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django + ajax waiting page, can not redirect to result page

2011-12-19 Thread Brett Epps
Change this:

def run_DHM(request):
xx = {'ok':'TRUE'}
#return HttpResponse("OK")
return xx

To this:

def run_DHM(request):
return HttpResponse("{'ok': true}")

You were getting that error because views should always return
HttpResponse objects.


Brett


On 12/16/11 5:18 PM, "yun li"  wrote:

>thanks for Denis' suggestion, I can see errors now. looks like there
>is an AttributeError. here is the error information:
>
>###
>AttributeError at /run_DHM
>
>'dict' object has no attribute 'status_code'
>
>Request Method:GET
>Request URL:   http://127.0.0.1:8000/run_DHM
>Django Version:1.3.1
>Exception Type:AttributeError
>Exception Value:
>
>'dict' object has no attribute 'status_code'
>###
>
>and here are all current codes.
>
>urls.py---
>--
>import mytest.views as views
>from django.shortcuts import render_to_response
>from django.conf.urls.defaults import patterns, include, url
>
># Uncomment the next two lines to enable the admin:
># from django.contrib import admin
># admin.autodiscover()
>
>urlpatterns = patterns('',
>   (r'^test$',views.test_form),
>   (r'^please_wait', views.please_wait),
>   url(r'^run_DHM$', views.run_DHM, name="run_DHM") ,
>   url(r'^displayDHM', views.display_DHM, name="displayDHM")
>)
>
>
>-
>views.py--
>---
>from django.shortcuts import render_to_response
>from django.core.context_processors import csrf
>from django.http import HttpResponse
>
>def test_form(request):
>   c = {}
>   c.update(csrf(request))
>   return render_to_response('test.html',c)
>
>def please_wait(request):
>   return render_to_response('please_wait.html')
>
>def run_DHM(request):
>   xx = {'ok':'TRUE'}
>   #return HttpResponse("OK")
>   return xx
>
>def display_DHM(request):
>   return render_to_response('display_DHM.html')
>
>
>-
>please_wait.html--
>---
>
>
>
>Please wait.
>
>http://code.jquery.com/jquery-1.7.1.min.js";>script>
>