Why i can reach my media files from my static url?

2011-04-19 Thread Mirat Bayrak
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

some teory help (sorry i couldnt find title for that question)

2009-08-28 Thread Mirat Bayrak
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?

That model works on doctests but...

2009-08-19 Thread Mirat Bayrak
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

i need your ideas

2009-08-16 Thread Mirat Bayrak
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

passing parameters in every view...

2009-08-16 Thread Mirat Bayrak
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?

Re: easy way of display an user bar?

2009-08-16 Thread Mirat Bayrak
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

Re: user.objects.create is not checking for duplicate emails

2009-08-07 Thread Mirat Bayrak
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,

Re: user.objects.create is not checking for duplicate emails

2009-08-07 Thread Mirat Bayrak
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

Re: user.objects.create is not checking for duplicate emails

2009-08-07 Thread Mirat Bayrak
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. --~--~-~--~~~---~--~~

Re: Django documentation site is SLOW

2009-08-07 Thread Mirat Bayrak
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

Re: Django documentation site is SLOW

2009-08-07 Thread Mirat Bayrak
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.

Re: My first Django project

2009-08-07 Thread Mirat Bayrak
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

user.objects.create is not checking for duplicate emails

2009-08-07 Thread Mirat Bayrak
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?

Re: Can i rise 404 from my middleware ?

2009-08-07 Thread Mirat Bayrak
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

Non html safe chars on urls,

2009-08-03 Thread Mirat Bayrak
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

Re: Can i add initial admin user?

2009-08-01 Thread Mirat Bayrak
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

Re: i need custom database behaviour, but i dont know how to do it

2009-07-31 Thread Mirat Bayrak
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

Re: i need custom database behaviour, but i dont know how to do it

2009-07-31 Thread Mirat Bayrak
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

Re: i need custom database behaviour, but i dont know how to do it

2009-07-31 Thread Mirat Bayrak
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"

Re: i need custom database behaviour, but i dont know how to do it

2009-07-31 Thread Mirat Bayrak
> > > 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

i need custom database behaviour, but i dont know how to do it

2009-07-31 Thread Mirat Bayrak
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 =

Re: too many values to unpack

2009-07-04 Thread Mirat Bayrak
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

Re: Pyjamas Django Tutorial at Europython09, Monday 29th June.

2009-07-04 Thread Mirat Bayrak
+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