Hi All,
my development files are in
/home/nitin/project/index.py
I have unzipped my jquery and jquery-ui in
/home/nitin/project/jquery
I am not able to use auto-complete feature with uWSGI+nginx.
my Nginx+uWSGI conf file
nitin@nitin:~/finhealth$ cat nginx-uwsgi.conf
server {
listen 81 default_server;
server_name localhost;
root /home/nitin/project/;
# location / {
# index index.py index.html index.htm;
# }
location /project/ {
include uwsgi_params;
uwsgi_pass 127.0.0.1:9090;
autoindex on;
}
}
My project.ini file
nitin@nitin:~/project$ cat project.ini
[uwsgi]
http-socket = :9090
# plugin = python
wsgi-file = /home/nitin/project/index.py
process = 3
master = yes
thunder-lock = yes
enable-threads = yes
exit-on-reload = true
I already did
# chown -R nitin:www-data project/
# chmod 0755 -R project/
In my Python file :
""" </head><body bgcolor=aquamarine>
<link type="text/css" rel="stylesheet"
href="http://localhost:9090/jquery/jquery-ui-1.11.1.custom/jquery-ui.css">
<script type="text/javascript"
src="http:/localhost:9090/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript"
src="http://localhost:9090/jquery/jquery-ui-1.11.1.custom/jquery-ui.js"></script>
<script>
$(function() {
var availableTags = [
"DrinkingWater",
"TeaNsnaks",
"Travelling",
];
$( ".uname1" ).autocomplete({
source: availableTags
});
});
</script>
"""
/// Line where auto-complete is called.
Account of :<input type="text" id="uname1" name="uname1" size="75">
Please, I have been trying to get this working for long now.
Need HELP !!! ...
Thanks
Nitin
On 16 September 2014 13:05, Mikko Ohtamaa <[email protected]> wrote:
> Hi Nitin,
>
> I suggest you first apply general JavaScript debugging techniques
>
> - Check your web browser console
>
> - Try to access jQuery .js files with direct URL.
>
> There is nothing special in jQuery files - they are served like all other
> static media assets (images and such). First figure out that everything
> loads correctly from the static folder of your site.
>
> Thanks,
> Mikko
>
> On 16 September 2014 07:36, nitin chandra <[email protected]> wrote:
>>
>> Hello All,
>>
>> I am trying to configure jQuery with uWSGI + nginx on localhost.
>>
>> But it is not working, and I wish to develop an application for my
>> office over intranet.
>>
>> jQuery folder and jQuery-ui folder are in a home/ user directory.
>>
>> I am trying to use autocomplete feature of jQuery.
>>
>> OS : Debian 7.6
>> Webserver : Nginex
>> WSGI : uWSGI
>> Dev. Language : Python 2.7.x
>>
>> Need some suggestion, how to resolve this issue.
>>
>> Thanks
>>
>> Nitin
>> _______________________________________________
>> uWSGI mailing list
>> [email protected]
>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
>
>
>
> --
> Mikko Ohtamaa
> http://opensourcehacker.com
> http://twitter.com/moo9000
>
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi