Django and Bind jQuery Grid to MySql Database using PHP

72 views
Skip to first unread message

David Nides

unread,
Jan 8, 2014, 5:16:32 AM1/8/14
to django...@googlegroups.com
Greeting,

I am trying to bind a jQuery grid to MySql database using PHP and serve up using Django. I am a complete noob to web dev and Django. I followed the directions on JQuery's website to create the test database and three PHP files (i.e. connect.php, data.php, and index.php). Next I installed Django, I am using Windows. I know how to start the server using python manage.py runserver but how do I configure Django to serve up this JQuery demo? 

Any guidance is much appreciated.

Thanks!!

David Nides

Daniel Roseman

unread,
Jan 8, 2014, 12:36:02 PM1/8/14
to django...@googlegroups.com
What is PHP doing here? If you want to use Django, use Django; if you want to use PHP, use PHP. I don't understand why you're trying to use both.
-- 
DR. 

carlos

unread,
Jan 8, 2014, 2:45:19 PM1/8/14
to django...@googlegroups.com
Hi you not need the 3 flies you only need create the proyect and them 1 app this app is the data
you need create the views inside one function similar data.php but in python use impor json and them
create de index.html similar de index.php so

you replace this
connect.php == settings.py
data.php == views in your app
index.php == index.html in your templates

maybe you need first read the tutorial https://docs.djangoproject.com/en/1.6/intro/tutorial01/ for undestand django

Cheers


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7080150c-a0f4-4122-8cd3-2e433a7f2b9d%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

David Nides

unread,
Jan 8, 2014, 3:44:54 PM1/8/14
to django...@googlegroups.com
Daniel,

I was just looking at the JQuery demo. I guess I assumed it was needed but now understand this can all be done using Django. I just don't understand how :-)

Thanks!!
Reply all
Reply to author
Forward
0 new messages