Sunday, June 30, 2013

Re: Django for non web clients

Hi,
What about change-tastypie or django-restframework or something similar ?
As a part of my GSoC project [1] , I am implementing a project sharing web site with social features.
I need RESTful APIs so that the functionality of the site could be integrated into SugarLabs [2].

I am planing to use Django with one of the above rest frameworks to serve RESTful APIs  and a web client in backbone.js which will consume the APIs as well.

[1] - https://github.com/aregee/moksaya
[2] - http://sugarlabs.org

On Jun 30, 2013 12:13 PM, "zweb" <ashish8job@gmail.com> wrote:

I am writing an Python application which will expose REST API. It will be client agnostic. In future I will provide a Web client and a mobile client and may be a rich desktop client. These clients will connect to application using the REST api only.

Should I use Django for this? or is Django for Web based applications only as it is web framework. What advantage does Django brings in such a architecture.

Would it be much simpler if I use simple python with some python rest  web services framework on top of it instead of Django?

I am a big fan of Django but not sure if a Web framework such as django is good fit for REST Services based architecture. I not building a (monolithic) web application.

--
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+unsubscribe@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+unsubscribe@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.
 
 

Saturday, June 29, 2013

Django for non web clients


I am writing an Python application which will expose REST API. It will be client agnostic. In future I will provide a Web client and a mobile client and may be a rich desktop client. These clients will connect to application using the REST api only.

Should I use Django for this? or is Django for Web based applications only as it is web framework. What advantage does Django brings in such a architecture.

Would it be much simpler if I use simple python with some python rest  web services framework on top of it instead of Django?

I am a big fan of Django but not sure if a Web framework such as django is good fit for REST Services based architecture. I not building a (monolithic) web application.

--
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+unsubscribe@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.
 
 

django search query

Is there any search query in django which can ignore vowels like I want to make a query which displays all the clients name who writes their name as 'amanjit' or 'amanjeet'.
It should take take ee=i or anything like this. Please help me I have to finish my task asap.

--
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+unsubscribe@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: Help in finding how to learn Django

The best way to learn anything related to programming is by doing. Here are some great resources that teach and utilize examples. Code any examples yourself and understand how they work. Here's an order I recommend, where you can skip steps depending on your comfort level:

Step 1 - Essential Python

Google Python Class - covers most python you'll need and provides exercises w/ validation to help you learn

Lark's Guide to Python - Do a few

Step 2 - Basic Django

Chapters 1 - 7 from The Django Book

Getting started | Django

At this point you'll feel comfortable building some basic apps yourself. That makes for phenomenal practice and self-teaching. You may learn everything you need to know by getting the basics from the above steps and hacking your own apps together using references as needed. If you're an absolute programming / web development first-timer, I recommend more reading. Code and understand the examples!

Step 3 - Core Django

Chapters 8 - 12 from The Django Book

Django By Example - Pick apps similar in nature to what you wish to accomplish

References:

Django Documentation

Chapters 13 - 20 Django Book

Good luck - with your particular preexisting skill-set you'll probably start around Step 2. If you need more fundamental Python, go step 1. 

-grant

On Saturday, June 29, 2013 10:07:41 AM UTC-4, Nico Subs wrote:
Thank you Mike. Very helpful.

On Friday, June 28, 2013 9:49:20 AM UTC+2, Nico Subs wrote:
Hi all,

What is the best way to learn Django 1.5 thouroughly? I have been a .NET developer and have a really good understanding of OOP, HTML5, CSS and JavaScript. I also have an entry-level knowledge of Python. I am completely new to MVC (or MVT, in this case).

I have a need to build apps with Django that provide users with features such as finding each other based on geographical distance, upload pictures and edit them online, natural language search, etc... (just to highlight that I need to know more than how to build a poll app or a simple blog).

My understanding is that the entry point to learn Django is by completing the tutorial at the Django project site. Then, what? What path would you recommend? I have seen that lots of learning resources on the web target versions lower than 1.5 and I couldn't really find books on 1.5. When reading reviews on learning material on 1.4, I often see they are outdated and not really applying to 1.5.

Also, I briefly looked at what it takes to deploy a Django app. Virtualenv, git, pip, etc... are all things unknown to me and it looks a bit scary for a guy used to deploy apps by uploading the compiled binaries through FTP.

Help in defining a clear path to learn how to bend Django to my will would be invaluable!

Thank you for your time.

--
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+unsubscribe@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


On Sat, Jun 29, 2013 at 11:51 PM, Gamesbrainiac <gamesbrainiac@gmail.com> wrote:
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".

That comment is on the wiki. The wiki can be contributed by anybody, and isn't reviewed by the core team. As a result, the advice found there can often be wrong or misleading.

 Allow me to confirm that the advice that Django "doesn't support AJAX" is *incorrect*. I've just corrected the wiki page.

Yours,
Russ Magee %-)

--
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+unsubscribe@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: ANNOUNCE: Django 1.6 beta 1 released

On 06/28/2013 03:48 PM, Jacob Kaplan-Moss wrote:
> Hi folks --
>
> I'm pleased to announce that we've just released Django 1.6 beta 1,
> the second in our series of preview releases leading up to Django 1.6
> (due in August).
>
> More information can be found on our blog:
>
>
> https://www.djangoproject.com/weblog/2013/jun/28/django-16-beta-1-released/
>
> And in the release notes:
>
> https://docs.djangoproject.com/en/dev/releases/1.6/
Is there any hope to get https://code.djangoproject.com/ticket/6148
integrated int 1.6 ?

This is about using schemas in databases which support them well enough
(PostgreSQL, Oracle, ...)

Hannu Krosing

--
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+unsubscribe@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.

Change template block via AJAX

Hi,

I have an application containing a topbar and rest is content area.

In my 'base.html', I've defined two blocks -

<body>
  {% block topbar %}{% endblock topbar %}
  {% block page_content %}
        {% block sidebar %}
        {% endblock sidebar %}
                                  
        {% block main %}
        {% endblock main %}
    {% endblock page_content %}
</body>

These two blocks are then overridden by child templates.
The topbar contains a search input. The search query is sent via AJAX, and the results are loaded in respective child blocks through client-side templating.

Now, I want that whenever user enters a search query for a user via a radio button instead of default, The block 'page_content' should get overridden by another template 'user_results.html'. ( I'll know it client-side itself )
This can be done by redirecting to a path like '/search/user/', but that would involve reloading of the page.
Is this possible via an AJAX request, and then the server would load another template which will replace the 'page_content' block without page refresh ?

--
Regards,
Parin Porecha

say Kifflom! and look forward to 17.09.13 !

--
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+unsubscribe@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.