do we need MEDIA_ROOT and MEDIA_URL anymore?

2010-11-17 Thread MiratCanBayrak
Hi, I understood that in new version of django we are using STATICFILES_ROOT and STATICFILES_URL instead OF MEDIA_ROOT and MEDIA_URL. But when i look at settings.py i see both of them. When do we use MEDIA? when do we use STATICFILES ? Note: pls dont give link to docs i already read them --

Login screen is always shown, i dont like it :/

2009-08-04 Thread MiratCanBayrak
hi, i am using django.contrib.auth.views.login view at /account/login url, to show login screen ( as explained here : http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login) But, when user already logged in, form is not showing any error. Displaying a login form to

Building a widget from zero

2009-06-16 Thread MiratCanBayrak
Hi i wrote an application called category. As you guess it an application to hold categories. Than i wanted to use it on my site. I wrote a function that builds html code for displaying categories, but now i want to use that view as widget. How can i do it? how can i build a widget ? That is

Re: Getting id of item before it recorded (or something else to solve my problem)

2009-04-05 Thread MiratCanBayrak
any ideas ? solutions? --~--~-~--~~~---~--~~ 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

Getting id of item before it recorded (or something else to solve my problem)

2009-04-05 Thread MiratCanBayrak
here, i have a function that used as a upload_to parameter in my model. But i records my pic as screenshot_None.gif. Becouse id is appearing when it is recorded. How can i record my images as screenshot_id.gif ?? thanks for your response from os.path import join, exists from os import remove