Re: How does it all work
@Russell: Thanks. That is what I wanted since WSGI is what most people use these days. Thanks, I will have a look at that. On 11 June 2013 04:59, Russell Keith-Magee wrote: > Hi Nafiul, > > One place to start would be to read the WSGI specification. WSGI is the > interface between your web server (say, Apache) and Python as a language. > The WSGI spec - also known as PEP 333 - gives a brief overview before it > gets into the fine details. However, one of the advantages of WSGI as an > interface is that there aren't actually that many fine details anyway -- > for such a significant specification, it's remarkably readable. > > http://www.python.org/dev/peps/pep-0333/ > > This will show you the interaction between web server and code that a > website developer would need to write; from there, it's a matter of looking > at what tasks the website developer needs to do often, and finding > abstractions and APIs to make that job easier. That's where Django, and > it's libraries for URL routing, database interaction, form processing and > so on comes in. If you try and write a non-trivial website to the "bare > metal" of WSGI, you'll very quickly see what Django (or any other web > framework, for that matter) is providing for you. > > Yours, > Russ Magee %-) > > On Mon, Jun 10, 2013 at 10:10 PM, Nafiul Islam wrote: > >> Hi! >> >> I've been using django for a little bit, and I gotta say I love the >> framework. But here's the thing, I don't know how it works. How everything >> fits together. So, what I wanted to ask is how does it all work? Say you >> have a server, and you have Python installed on it. How would you go about >> making a simple hello world web page, without django? >> >> I would be grateful to any link to a comprehensive resource, that shows >> you how to make a simple Hello World webpage, from how you install software >> that you need to writing pure python (without a framework) that can handle >> requests, and work with databases. >> >> I guess, what I'm asking is how do you make a very very basic website >> using Python, from start to finish on a server? >> >> -- >> 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+unsubscr...@googlegroups.com. >> >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/VHvM1uOGmio/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Kind Regards, Quazi Nafiul Islam -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How does it all work
@Eraldo: Thanks for the reply. I've read that part of the Django book, but it does little to explain how Django itself works, because it uses WSGI not CGI. After this excursion, I plan to see how Django handles connections and such, so I'll be diving into the Django libraries. Thanks for this, I appreciate it. On 11 June 2013 07:44, Eraldo Helal wrote: > I think.. I found what you are looking for: > http://www.djangobook.com/en/2.0/chapter01.html > Under the heading "The MVC Design Pattern".. > there is a nice example of a simple CGI script using python (no django). > > Greetings from Linz (Austria) > Eraldo > > On Monday, June 10, 2013 4:10:51 PM UTC+2, Nafiul Islam wrote: >> >> Hi! >> >> I've been using django for a little bit, and I gotta say I love the >> framework. But here's the thing, I don't know how it works. How everything >> fits together. So, what I wanted to ask is how does it all work? Say you >> have a server, and you have Python installed on it. How would you go about >> making a simple hello world web page, without django? >> >> I would be grateful to any link to a comprehensive resource, that shows >> you how to make a simple Hello World webpage, from how you install software >> that you need to writing pure python (without a framework) that can handle >> requests, and work with databases. >> >> I guess, what I'm asking is how do you make a very very basic website >> using Python, from start to finish on a server? >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/VHvM1uOGmio/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Kind Regards, Quazi Nafiul Islam -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Ajax
Then why does itsay on the website that Django does not support Ajax natively? On Jun 29, 2013 12:03 PM, "Russell Keith-Magee" wrote: > > I'm not sure what you mean. Django completely supports AJAX right now. > > Django is a server-side framework, and the only part of AJAX that is > server-side is the API call. > > An API call is just a view that returns JSON/XML instead of HTML. You can > write that right now in Django. > > If you want a library to make it even easier, there are several options, > including TastyPie and Django-REST-Framework. > > The client-side part of the AJAX problem is outside the domain of Django. > There are plenty of good client-side frameworks; pick one, and you'll find > it can talk perfectly well with Django. > > Yours, > Russ Magee %-) > > On Sat, Jun 29, 2013 at 1:52 PM, Nafiul Islam wrote: > >> In which version, will Django natively support Ajax? I'm curious because >> you need Ajax for almost any site these days, and Django not supporting it >> natively has become a bit of a hindrance for me. >> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/2oaiisZw_ZY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Ajax
Sorry, was on a mobile phone. Let me give you exact link, please excuse me being a little stupid. https://code.djangoproject.com/wiki/AJAX -> First line, "Django does not natively support Ajax". Now, this was weird, because I've seen others use Ajax with Django, for example in this tutorial: https://racingtadpole.com/blog/django-ajax-and-jquery/. Now, I tried to replicate it, and it worked fine. However, since I don't know all that much about Ajax, I thought there was more to it than what was described in that website, since it says that Django does not natively support Ajax. So, what was meant by this statement, and what does it mean to 'natively' support Ajax. Thanks, and Kind Regards as always. On 29 June 2013 16:05, Russell Keith-Magee wrote: > > Can you provide a little more direction than "The website"? "The website" > is a kinda big placeā¦ :-) > > Yours, > Russ Magee %-) > > > On Sat, Jun 29, 2013 at 2:08 PM, Gamesbrainiac wrote: > >> Then why does itsay on the website that Django does not support Ajax >> natively? >> On Jun 29, 2013 12:03 PM, "Russell Keith-Magee" >> wrote: >> >>> >>> I'm not sure what you mean. Django completely supports AJAX right now. >>> >>> Django is a server-side framework, and the only part of AJAX that is >>> server-side is the API call. >>> >>> An API call is just a view that returns JSON/XML instead of HTML. You >>> can write that right now in Django. >>> >>> If you want a library to make it even easier, there are several options, >>> including TastyPie and Django-REST-Framework. >>> >>> The client-side part of the AJAX problem is outside the domain of >>> Django. There are plenty of good client-side frameworks; pick one, and >>> you'll find it can talk perfectly well with Django. >>> >>> Yours, >>> Russ Magee %-) >>> >>> On Sat, Jun 29, 2013 at 1:52 PM, Nafiul Islam >>> wrote: >>> >>>> In which version, will Django natively support Ajax? I'm curious >>>> because you need Ajax for almost any site these days, and Django not >>>> supporting it natively has become a bit of a hindrance for me. >>>> >>>> -- >>>> 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+unsubscr...@googlegroups.com. >>>> To post to this group, send email to django-users@googlegroups.com. >>>> Visit this group at http://groups.google.com/group/django-users. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Django users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/django-users/2oaiisZw_ZY/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> django-users+unsubscr...@googlegroups.com. >>> >>> To post to this group, send email to django-users@googlegroups.com. >>> Visit this group at http://groups.google.com/group/django-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- >> 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+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/2oaiisZw_ZY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Kind Regards, Quazi Nafiul Islam -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: Creating a Node in Django ORM
Thanks for answering, but is there a simple way that does not use a third-party library? I'd like to have as much control over this as possible. On 9 July 2013 19:11, Elliot Bradbury wrote: > Check out django-mptt for creating parent/child (tree) relationships > between models. https://github.com/django-mptt/django-mptt > > > On Tue, Jul 9, 2013 at 9:07 AM, Nafiul Islam wrote: > >> How would you create a node using Django's ORM. This is what I mean: >> https://dpaste.de/JG52c/ >> >> Now, what I am basically trying to create is a liked list with nodes here. >> >> -- >> 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+unsubscr...@googlegroups.com. >> >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/wvXc7VehovQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Kind Regards, Quazi Nafiul Islam -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.