Re: Pyjamas Django Tutorial at Europython09, Monday 29th June.
+1 2009/7/4 chefsmart > > Would it be possible to upload your talk to slideshare or suchlike? Or > am I asking for too much? > > Regards, > CM. > > On Jun 20, 7:36 pm, lkcl wrote: > > In case you're not already aware I thought I'd mention that there is a > > tutorial forpyjamason 29th June at Europython in birmingham. as > > you're django users, you will have a much easier time getting set up > > than other attendees. Pyjamasis a port of GWT to python: it is for > > the development of pure Web 2.0 AJAX applications where you need not > > write a single line of javascript code in order to develop > > applications, and users need nothing more than any standard modern > > javascript-capable web browser. > > > > Bothpyjamasand GWT turn web development completely on its head: a > > declarative programming style is used to write applications - as real > > desktop-widget-like applications. Pyjamasis near-identical to and > > has more in common with pygtk2 and pyqt4 programming than it does with > > traditional web development. > > > > For those people who may be concerned thatpyjamasis somehow > > "complex": it most definitely is not. We get a disproportionately > > large number of people on thepyjamaslist who have never done U.I > > interface design before, let alone web development of any kind - and, > > with a little encouragement and pointing in the right direction, > > they're off. > > > > So if you've started web development recently and are intimidated by > > CSS incompatibilities, browser incompatibilities and the steep AJAX > > learning curve; or if you've been doing web development for ages and > > are sick to the back teeth of the same, do consider coming to > > EuroPython to learn aboutPyjamas, and how to best use it with the > > Django Framework. > > > > l. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: too many values to unpack
check your paranthesis when i see that error it is usually about paranthessis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
i need custom database behaviour, but i dont know how to do it
I am working on a *Categories* application for my project. The model that i need to categorize ise *Announces*.. i descibed category in announces like this class Category ... ... path = models.CharField class Announce: ... ... ... category = models.ForeignKey(Category) So my question, This* Announce model saves id of category* on database and calls with id when it needed, but *i want to make it save Category.path * can i do it easly? or should i override something ? any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: i need custom database behaviour, but i dont know how to do it
> > > Do you mean you want the foreign key value to be the 'path' field of > the Category model? You could do this, but why would you want to? If > you ever want to refer to the category path from an Announce instance, > you just do: > announce.category.path > > hmm i have to explain more i think lets think that i have a category tree like that All '--- Animals ' '---Dogs ' '---Cats ' '---Fishes ' '--- Computers '--- Laptops '--- Desktops '--- Accessories and that category items has path property like : All = "all" Animals = "all/animals" Dogs = "all/animals/dogs" Cats = "all/animals/cats" Fishes = "all/animals/fishes" Now, that is important part, lets think that i am selected Animals category, than announces that is in Dogs, Cats and Fishes category must be shown.. İ tried doing it with loops before but at the result i see that i am making too much database queries than i found a method... later, i found that, if i wrote category path on announces, and write a custom manager, i can make a query like *Announce.objects.GetByCategory("/all/animals")* that makes a querty on database *select * from announces where category startswith 'all/animals' * (i dont know sql well ill research later) than it will result all announces whichs category is Dogs or Cats or Fishes or *Announce.objects.GetByCategory("/all/")* will return all announces that is categorized with Animals or Computers or Laptops or Cats My english is very bad, i wish i explained well my stiuation. After that problem solved i think i can publish my category applicaton. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: i need custom database behaviour, but i dont know how to do it
i am little confused, may be i only create category_path on announce model and write path of selected category to there... it should work and simple :\ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: i need custom database behaviour, but i dont know how to do it
thank you a lot, i am reading now --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: i need custom database behaviour, but i dont know how to do it
i read it but i want to try my method, can anybody has idea how can i implement it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Can i add initial admin user?
hmm it works thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Non html safe chars on urls,
Hi i have an account system that you have to validate your email after you created an account. My validation url is lik : www.foo.com/account/confirm/* username/keyyy* But there is a problem, sometimes username contains non html safe chars for example : *â*lice, or s*ü*leyman cant go that adress... So, what should i do? should i restrict usuable characters on usernames or is there another solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Can i rise 404 from my middleware ?
2009/8/5 Malcolm Tredinnick > > On Wed, 2009-08-05 at 09:29 +0300, Mirat Can Bayrak wrote: > > On Tue, 4 Aug 2009 16:47:37 -0500 > > Alex Gaynor wrote: > [...] > > > > Right now there is a bug in django's middleware where it doesn't > > > correct catch exceptions: http://code.djangoproject.com/ticket/6094. > > > > than... what should i do? > > Don't raise an exception. A 404 exception is eventually turned into an > HttpResponse with the appropriate status code, so construct one manually > and return that from the middleware. Once you return a response, no > further processing happens (for request middleware). That's one of the > major points about middleware. > > Regards, > Malcolm > > > > > > > Thank you, i did it the way you said. It's little weird but working, thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
user.objects.create is not checking for duplicate emails
User.object.create is checking for username for duplicate usernames but not checking for emails.. can i force him to make users emails unique ? (becouse on else case i want to show i forgot my password screen to user i mean if mail is already taken) what should i do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: My first Django project
Hi, i liked you project look slike simple cv center. May be you can think about usability. For example creating items has too much steps. May be you can put all that forms into one page. Or may be forms can by dynamicaly shown above *create another foo item* with jquery. In other sides i liked it.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django documentation site is SLOW
i am not expert but i thought that it can be about javascripts, can you disable javascript support and retry it? i think you have to try opera too --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Django documentation site is SLOW
without javascript ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: user.objects.create is not checking for duplicate emails
i did it but django raises exception in this case, i want to re show form page with a note *"hey this email taken"* as other errors. When you give username that already taken you dont see exception page, you see it as form error. I want this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: user.objects.create is not checking for duplicate emails
hmm you mean to use it on form? nice ill try it :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: user.objects.create is not checking for duplicate emails
no i am talking about User model in django! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: easy way of display an user bar?
I have that problem too, is there any other solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
passing parameters in every view...
Hi i am working on a website and i am passing *request.user* and a *region*object to every template by manually in my every view. Can i do it by using some other method? i mean i dont want to pass them in every view can django do it automatically? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
i need your ideas
Hi, i am working on a website, to explain it basically i can say that it's works like twitter but every entry should have confirmed by admins. at that point i am little confused, should i write that confirmation screens on admin page or should i write a complatelyn new page? becouse i dont know anything about adding views to admin page, its looks more easy to write it as a normal page... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
That model works on doctests but...
http://dpaste.com/82737/ < here is models.py , as you see i wrote doctests for every model and they are working well. But when i try to create GeneralProperties or AccomodationProperties from admin page, when i press save button it gives that error : http://dpaste.com/82736/ Do you see what i am missing? Thank you a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
some teory help (sorry i couldnt find title for that question)
Hi, i am trying to build a site thats like twitter (but not same). Users can delete or edit their entries in my site but i coulndt find how can i show options. I want to list entries and if an entry is users (logged user i mean) i want to show edit end delete options. How can i do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Why i can reach my media files from my static url?
Hi, i started a project (with django1.3). I made settings for my media files and static files. After that i realized that : i can reach /myproject/media/foo.txt from localhost:8000/static/foo.txt . 1. Why i can reach that from there? 2. That looks like i don't need to add serve media view to my urls.py? 3. May be i can make my MEDIA_URL same with STATIC_URL than use both from /static/? Thanks for your all responses. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.