Re: Static files not served

2013-06-28 Thread der_fenix
Is DEBUG is set to True or False? And can you open static files by paths that are present in page source? I.e. by path which generated from (for exampe) {% static "js/jquery.min.js" %}? > Hi @der_fenix, > > My STATIC_URL setting is as follows: STATIC_URL = '/stat

Re: Static files not served

2013-06-27 Thread der_fenix
Is there you main static dir in STATIC_URL in settings.py? > Update: removing the noscript tags around the css tags in the template > solves the issue. I am no clientside scripting expert, but it is my > understanding that noscript tags accommodate browsers with scripting turned > off, or legacy

Re: How to store site-wide application settings

2013-06-27 Thread der_fenix
Quick way is create one model with fields, that equals all params. I.e. for your example - field with welcome text, two fields with banners and 3 fields for links. So you'll have one record in table with all needed parametrs. Of course this way isn't acceptable if you'll have over hundred

Re: Unique image name with timestamp?

2013-06-22 Thread der_fenix
For timestamp in int you should use time() from time package (not datetime.time). It return float number, but can be easy convert to int. > Hello, > > I'm new to Django, and I have a question. > I have a ImageField() in my model, and I obviously want that each image has > a unique name in my

Re: 'SafeText' object has no attribute 'status_code'

2013-06-20 Thread der_fenix
Hello I have problem with render_to_string django it's showme this error message : 'SafeText' object has no attribute 'status_code' my view : def html(request): context = {'inf': Itype.objects.all()} return render_to_string('smg/owl.html',context) Views must return Response

Re: Calling Jquery or javascript function based on an if condition

2013-04-23 Thread der_FeniX
{% if condition %} some_function(params); {% endif %} Sarfraz ahmad wrote at 23 апреля 2013 13:30:38: Guys, is it possible to call a javascript function in django templates based on an if condition...?? What i want to do is that in django

Re: Sub-Query

2013-04-23 Thread der_FeniX
Just make like this: times = time_stamp.objects.all().order_by('-time_stamp')\ .values('user_id','game_id')[0] -- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to