Re: Tasty Pie in django

2015-07-29 Thread Avraham Serour
tastypie has a very good documentation, have you tried reading it to understand how it works? On Wed, Jul 29, 2015 at 6:19 AM, Anubhav Kaushik wrote: > If some one is having difficulty understanding my question. PLZ ASK. > > -- > You received this message because you are subscribed to the Google

Learning Django problems

2015-07-29 Thread Stas soroka
I'm currently reading a book "Learning Django Web Development". Even thoug I followed the book carefully, it says, that my page should look like this: When, in fact, my page looks like that

Best practice for two variants of a language

2015-07-29 Thread Raphael Michel
Hello, I develop an open source web application in Django that is available in multiple languages, translated using Django's gettext features. However, in my native language German (and many others, too), there are strong differences between formal and informal style (in German there is even a for

Re: Best practice for two variants of a language

2015-07-29 Thread Avraham Serour
I would create only one arrival locale and decide which one is the default, probably the de_de would be the formal and the new language weighs be for the informal. As for the error messages I would just copy over the po for from django On Wed, Jul 29, 2015, 12:58 PM Raphael Michel wrote: > Hell

Re: Learning Django problems

2015-07-29 Thread Avraham Serour
Clearly the book example is using CSS and got aren't, maybe they forgot to tell you to add or you aren't loading the static files On Wed, Jul 29, 2015, 12:44 PM Stas soroka wrote: > I'm currently reading a book "Learning Django Web Development". Even thoug > I followed the book carefully, it say

Re: Tasty Pie in django

2015-07-29 Thread Anubhav Kaushik
yes i did , still i got no clues why save function in model related to the resource gets called three times. On Tuesday, July 28, 2015 at 11:51:03 AM UTC+5:30, Anubhav Kaushik wrote: > > I am looking on code that someone else wrote , i am new to tasty pie , so > what i have understood that when

How to django with jquery-mobile

2015-07-29 Thread Kakar Nyori
Django provides many features for the template (extends, block content etc.) I am just learning jquery mobile, but so far when using jquery mobile, there's just one actual html page and inside it we have to create a page (data-role="page"). So, how can we utilize the django's templating features wi

Re: Tasty Pie in django

2015-07-29 Thread Anubhav Kaushik
yes i did , still i got no clues why save function in model related to the resource gets called three times. On Wednesday, July 29, 2015 at 12:45:01 PM UTC+5:30, Avraham Serour wrote: > > tastypie has a very good documentation, have you tried reading it to > understand how it works? > > On Wed,

Re: Learning Django problems

2015-07-29 Thread Roshan Pannase
sir i am a new learner can you send me the code of this application On Wed, Jul 29, 2015 at 11:33 AM, Stas soroka wrote: > I'm currently reading a book "Learning Django Web Development". Even thoug > I followed the book carefully, it says, that my page should look like this: > > >

Re: Learning Django problems

2015-07-29 Thread Robin Lery
Do u have static directory? And does it have the required resources? On 29 Jul 2015 16:50, "Roshan Pannase" wrote: > sir i am a new learner can you send me the code of this application > > On Wed, Jul 29, 2015 at 11:33 AM, Stas soroka > wrote: > >> I'm currently reading a book "Learning Django

Checking user permission denied in Django Selenium tests

2015-07-29 Thread Cherie Pun
On the local server that I start up, if the user does not have the required permission for a particular view, they will be redirected to the 403 page (I am using the permission_required decorator) However, in the selenium test, the PermissionDenied exception is thrown and the user is redirec

Re: How to django with jquery-mobile

2015-07-29 Thread Alex Heyden
You pretty much answered it yourself. >there's just one actual html page and inside it we have to create a page (data-role="page") Django's template helps you put together the response that gets to the client. It's unaware of what your CSS and Javascript frameworks will do with that response. Yo

About models validators location

2015-07-29 Thread durirompepc
I've searched for where to put the validators for my models, but I only found that they fit in *models.py*, outside the model class. Is that correct or I should create a specific file for them? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: About models validators location

2015-07-29 Thread felix
El 29/07/15 10:54, duriromp...@gmail.com escribió: I've searched for where to put the validators for my models, but I only found that they fit in *models.py*, outside the model class. Is that correct or I should create a specific file for them? I think that you can put validators in another fil

Getting a PageNotFound 404 Error

2015-07-29 Thread Александр Мусаров
Hi, folks! I'm new to Django, now I'm writing my first e-commerce in it, and now I'm having a mistake that I can not find in code myself. Please help me.. The code is the following: The trouble URL code line : url(r'^(?P[-/w]+)/$', views.category, name = 'category_detail'), The view code :

Re: Getting a PageNotFound 404 Error

2015-07-29 Thread James Schneider
Instead of /w you should use \w in your URL regex, right now all you are matching is literally - and / and w... -James On Jul 29, 2015 9:52 AM, "Александр Мусаров" wrote: > Hi, folks! I'm new to Django, now I'm writing my first e-commerce in it, > and now I'm having a mistake that I can not fin

Re: Getting a PageNotFound 404 Error

2015-07-29 Thread Александр Мусаров
Thanks a lot!!! Damned regexes... среда, 29 июля 2015 г., 19:56:46 UTC+3 пользователь James Schneider написал: > > Instead of /w you should use \w in your URL regex, right now all you are > matching is literally - and / and w... > > -James > On Jul 29, 2015 9:52 AM, "Александр Мусаров" > wrote:

Re: About models validators location

2015-07-29 Thread durirompepc
Yeah, I can put it whenever I want, and just import then, but it is good to know the exact way (as when following PEP 8). El miércoles, 29 de julio de 2015, 17:40:45 (UTC+2), felix escribió: > > El 29/07/15 10:54, durir...@gmail.com escribió: > > I've searched for where to put the validators

Want to change template based on full_name(request.user.username)

2015-07-29 Thread sarfaraz ahmed
Hello All, I am facing an issue in my first django project. I am newbie. So, please help me in detail. I don't want to use {{full_name}} in all the views. I saw few post which says {{user.is_authenticated}} can be used. I tried but it was not working. Passing {'full_name':request.user.username}

Re: Want to change template based on full_name(request.user.username)

2015-07-29 Thread Alex Heyden
{{user}} is implicitly sent in the request, so it might be worth trying to sort out what specifically went wrong when you say {{user.is_authenticated}} went wrong. Here's a fully functioning example of some things you can do with the user object: {% block header %} Home

Re: Allow users to submit django form once per day

2015-07-29 Thread Nkansah Rexford
Okay guys, After some days of thinking about the problem, I'm through with this approach, which is totally horrible, I guess, but works. The code snippet can be found here: https://gist.github.com/seanmavley/c9a4af36c2693d9b437a I'm posting back here because although the approach works, its no