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
--
Yo
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 alr
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 fun
thanks, i made it that, it is working fine now :)
def screenshot_path(instance = None, filename = None):
filepath = join("products", "images", instance.product.type,
instance.product.slug, "screenshot_" + str(instance.order) + ".gif")
if exists(join(MEDIA_ROOT,filepath)):
remove(
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
django-use
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
def
6 matches
Mail list logo